You are viewing a plain text version of this content. The canonical link for it is here.
Posted to droids-commits@incubator.apache.org by rf...@apache.org on 2011/06/16 15:00:50 UTC
svn commit: r1136473 - in /incubator/droids/branches/0.1.x: ./ droids-core/
droids-core/src/main/java/org/apache/droids/
droids-core/src/main/java/org/apache/droids/api/
droids-core/src/main/java/org/apache/droids/exception/
droids-core/src/main/java/o...
Author: rfrovarp
Date: Thu Jun 16 15:00:47 2011
New Revision: 1136473
URL: http://svn.apache.org/viewvc?rev=1136473&view=rev
Log:
Fixing SVN properties which fixes DROIDS-145.
Thanks to Sebb for finding the problems and contributing the patch.
Modified:
incubator/droids/branches/0.1.x/NOTICE (props changed)
incubator/droids/branches/0.1.x/droids-core/pom.xml (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/AbstractDroid.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/LinkTask.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/AdvancedManagedContentEntity.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/ContentEntity.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/ManagedContentEntity.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/PausableTaskMaster.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionHandler.java (contents, props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionResult.java (contents, props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskMaster.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskValidator.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/WorkMonitor.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/exception/ContentFormatViolationException.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/exception/InvalidLinkException.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/exception/InvalidTaskException.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/helper/FileUtil.java (contents, props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/DefaultTaskExceptionHandler.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/MaxDepthTaskValidator.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/MultiThreadedTaskMaster.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/SequentialTaskMaster.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/SimpleTaskQueueWithHistory.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/monitor/SimpleWorkMonitor.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/monitor/WorkBean.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java (contents, props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/AdvancedHttpContentEntity.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/AdvancedHttpProtocol.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/DroidsHttpClient.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/DroidsRequestRetryHandler.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/HttpClientContentLoader.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/HttpContentEntity.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/HttpProtocol.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/NoAuthHandler.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/robot/walker/FileTask.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/robot/walker/FileWorker.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/robot/walker/SimpleWalkingDroid.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/robot/walker/WalkingDroid.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/validator/ChainTaskValidator.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/DroidsFactory.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/delay/TestDelay.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/examples/handler/ExceptionReportHandler.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/examples/handler/ReportHandler.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/examples/package-info.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/ExceptionCrawlingDroid.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/ReportCrawlingDroid.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/SaveCrawlingDroid.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/SysoutCrawlingDroid.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/TestSimpleDroid.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/TestSimpleQueue.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/TestSimpleTaskQueueWithHistory.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/localserver/LocalHttpServer.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/localserver/ResourceHandler.java (props changed)
incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/robot/crawler/TestCrawlingWorker.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/pom.xml (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/AbstractRule.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/AllowedRule.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/ContentLoader.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/DisallowedRule.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/NoRobotClient.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/NoRobotException.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/Rule.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/RulesEngine.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/SimpleContentLoader.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/package.html (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/test/java/org/apache/droids/norobots/TestNorobotsClient.java (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/bad/robots.txt (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/basic/robots.txt (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/disallow-empty/robots.txt (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/order-reverse/robots.txt (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/order/robots.txt (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/rfc/robots.txt (props changed)
incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/ua-case-insensitive/robots.txt (props changed)
incubator/droids/branches/0.1.x/droids-solr/example/conf/protwords.txt (props changed)
incubator/droids/branches/0.1.x/droids-solr/example/conf/schema.xml (props changed)
incubator/droids/branches/0.1.x/droids-solr/example/conf/solrconfig.xml (props changed)
incubator/droids/branches/0.1.x/droids-solr/example/conf/stopwords.txt (props changed)
incubator/droids/branches/0.1.x/droids-solr/example/conf/synonyms.txt (props changed)
incubator/droids/branches/0.1.x/droids-solr/forrest.properties (props changed)
incubator/droids/branches/0.1.x/droids-solr/pom.xml (props changed)
incubator/droids/branches/0.1.x/droids-solr/src/main/java/org/apache/droids/solr/AdvancedSolrHandler.java (props changed)
incubator/droids/branches/0.1.x/droids-solr/src/test/java/org/apache/droids/solr/AdvancedSolrHandleTest.java (props changed)
incubator/droids/branches/0.1.x/droids-solr/src/test/java/org/apache/droids/solr/MockContentEntity.java (props changed)
incubator/droids/branches/0.1.x/droids-spring/default.properties (props changed)
incubator/droids/branches/0.1.x/droids-spring/forrest.properties (props changed)
incubator/droids/branches/0.1.x/droids-spring/lib/readme.txt (props changed)
incubator/droids/branches/0.1.x/droids-spring/pom.xml (props changed)
incubator/droids/branches/0.1.x/droids-spring/src/test/java/org/apache/droids/dynamic/DroidsConfigTest.java (props changed)
incubator/droids/branches/0.1.x/droids-spring/src/test/java/org/apache/droids/dynamic/TestSimpleDroid.java (props changed)
incubator/droids/branches/0.1.x/droids-spring/src/test/resources/droids-core-test-context.xml (props changed)
incubator/droids/branches/0.1.x/droids-spring/src/test/resources/droids-core.properties (props changed)
incubator/droids/branches/0.1.x/droids-tika/pom.xml (props changed)
incubator/droids/branches/0.1.x/droids-tika/src/main/java/org/apache/droids/tika/EchoHandler.java (props changed)
incubator/droids/branches/0.1.x/droids-tika/src/main/java/org/apache/droids/tika/TikaDocumentParser.java (props changed)
incubator/droids/branches/0.1.x/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java (props changed)
incubator/droids/branches/0.1.x/droids-tika/src/test/java/org/apache/droids/tika/TikaHtmlParserTest.java (contents, props changed)
incubator/droids/branches/0.1.x/droids-wicket/forrest.properties (props changed)
incubator/droids/branches/0.1.x/droids-wicket/pom.xml (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/app/BaseDroidsApplication.java (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/app/DroidsApplication.java (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/app/IndexPage.html (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/app/IndexPage.java (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/component/CollectionDataProvider.java (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/component/DroidPanel.html (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/component/DroidPanel.java (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/component/WorkBeanDataProvider.java (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/java/readme.txt (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/application.properties (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/applicationContext.xml (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/log4j.properties (contents, props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/main/webapp/WEB-INF/web.xml (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/test/java/org/apache/droids/wicket/app/BaseDroidsApplicationTest.java (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/test/java/org/apache/droids/wicket/app/DroidsApplicationForTesting.java (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/test/java/org/apache/droids/wicket/app/MockContext.java (props changed)
incubator/droids/branches/0.1.x/droids-wicket/src/test/java/org/apache/droids/wicket/app/StartDroidsApp.java (props changed)
Propchange: incubator/droids/branches/0.1.x/NOTICE
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/AbstractDroid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/LinkTask.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/AdvancedManagedContentEntity.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/ContentEntity.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/ManagedContentEntity.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/PausableTaskMaster.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionHandler.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionHandler.java?rev=1136473&r1=1136472&r2=1136473&view=diff
==============================================================================
--- incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionHandler.java (original)
+++ incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionHandler.java Thu Jun 16 15:00:47 2011
@@ -1,24 +1,24 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.droids.api;
-
-public interface TaskExceptionHandler
-{
-
- TaskExceptionResult handleException(Exception ex);
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.droids.api;
+
+public interface TaskExceptionHandler
+{
+
+ TaskExceptionResult handleException(Exception ex);
+
+}
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionResult.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionResult.java?rev=1136473&r1=1136472&r2=1136473&view=diff
==============================================================================
--- incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionResult.java (original)
+++ incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionResult.java Thu Jun 16 15:00:47 2011
@@ -1,24 +1,24 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.droids.api;
-
-public enum TaskExceptionResult
-{
-
- IGNORE, WARN, FATAL
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.droids.api;
+
+public enum TaskExceptionResult
+{
+
+ IGNORE, WARN, FATAL
+
+}
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskExceptionResult.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskMaster.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/TaskValidator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/api/WorkMonitor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/exception/ContentFormatViolationException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/exception/InvalidLinkException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/exception/InvalidTaskException.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/helper/FileUtil.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/helper/FileUtil.java?rev=1136473&r1=1136472&r2=1136473&view=diff
==============================================================================
--- incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/helper/FileUtil.java (original)
+++ incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/helper/FileUtil.java Thu Jun 16 15:00:47 2011
@@ -1,45 +1,45 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.droids.helper;
-
-import java.io.File;
-import java.io.IOException;
-
-/**
- * This is an utility class for file related operations.
- */
-public final class FileUtil {
-
- private FileUtil() {
- throw new AssertionError();
- }
-
- public static void createFile(File cache) throws IOException {
- if (!cache.isDirectory() && !cache.getAbsolutePath().endsWith("/")) {
- try {
- cache.createNewFile();
- } catch (IOException e) {
- // if we cannot create a file that means that the parent path
- // does not exists
- final File path = new File(cache.getParent());
- path.mkdirs();
- cache.createNewFile();
- }
- }
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.droids.helper;
+
+import java.io.File;
+import java.io.IOException;
+
+/**
+ * This is an utility class for file related operations.
+ */
+public final class FileUtil {
+
+ private FileUtil() {
+ throw new AssertionError();
+ }
+
+ public static void createFile(File cache) throws IOException {
+ if (!cache.isDirectory() && !cache.getAbsolutePath().endsWith("/")) {
+ try {
+ cache.createNewFile();
+ } catch (IOException e) {
+ // if we cannot create a file that means that the parent path
+ // does not exists
+ final File path = new File(cache.getParent());
+ path.mkdirs();
+ cache.createNewFile();
+ }
+ }
+ }
+
+}
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/helper/FileUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/DefaultTaskExceptionHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/MaxDepthTaskValidator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/MultiThreadedTaskMaster.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/SequentialTaskMaster.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/impl/SimpleTaskQueueWithHistory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/monitor/SimpleWorkMonitor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/monitor/WorkBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java?rev=1136473&r1=1136472&r2=1136473&view=diff
==============================================================================
--- incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java (original)
+++ incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java Thu Jun 16 15:00:47 2011
@@ -1,217 +1,217 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.droids.parse.html;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.droids.LinkTask;
-import org.apache.droids.api.Link;
-import org.xml.sax.Attributes;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
-public class LinkExtractor extends DefaultHandler
-{
-
- /**
- * Name of element that may contain base URI
- */
- private static final String BASE_ELEMENT = "base";
-
- /**
- * Name of attribute for base URI
- */
- private static final String BASE_ATTRIBUTE = "href";
-
- protected final Log log = LogFactory.getLog(this.getClass());
-
- /**
- * Base url for host reference
- */
- private final Link base;
-
- /**
- * Map with the pair label-attribute for the accepted items
- */
- private final Map<String, String> elements;
-
- /**
- * List of links
- */
- private ArrayList<Link> links = new ArrayList<Link>();
-
- /**
- * Set of URIs visited yet
- */
- private Set<String> history = null;
-
- /**
- * Base URI for resolving
- */
- private URI baseUri = null;
-
- /**
- * Check for base elements
- */
- private boolean checkBase = true;
-
- /**
- * The parsed link
- */
- private URI link = null;
-
- /**
- * Anchor text
- */
- private StringBuilder anchorText = new StringBuilder();
-
- public LinkExtractor(Link base, Map<String, String> elements) {
- super();
- this.base = base;
- this.elements = elements;
- this.baseUri = base.getURI();
- }
-
- @Override
- public void startDocument() throws SAXException {
- history = new HashSet<String>();
- history.add(base.getURI().toString());
- }
-
- @Override
- public void startElement(String uri, String loc, String raw, Attributes att) throws SAXException
- {
- if(checkBase && BASE_ELEMENT.equalsIgnoreCase(loc) && att.getValue(BASE_ATTRIBUTE) != null) {
- try {
- baseUri = new URI(att.getValue(BASE_ATTRIBUTE));
- log.debug("Found base URI: " + baseUri);
- checkBase = false;
- }
- catch ( URISyntaxException e) {
- log.error("Base URI not valid: " + att.getValue(BASE_ATTRIBUTE));
- }
- }
-
- Iterator<String> it = elements.keySet().iterator();
- String elem, linkAtt;
- while (it.hasNext()) {
- elem = it.next();
- linkAtt = elements.get(elem);
- if (elem.equalsIgnoreCase(loc) && att.getValue(linkAtt) != null) {
- link = getURI(att.getValue(linkAtt));
- log.debug("Found element: " + elem + " with link: " + link);
- if (link != null) {
- addOutlinkURI(link.toString());
- link = null;
- anchorText = new StringBuilder();
- }
- }
- }
- }
-
- @Override
- public void characters(char[] ch, int start, int length) {
- anchorText.append(ch, start, length);
- }
-
- @Override
- public void endElement(String uri, String loc, String raw) {
- Iterator<String> it = elements.keySet().iterator();
- String elem;
- while (it.hasNext()) {
- elem = it.next();
- if (elem.equalsIgnoreCase(loc)) {
- addAnchorText(anchorText.toString());
- }
- }
- }
-
-
- @Override
- public void endDocument() throws SAXException
- {
- history = null;
- log.debug("Found " + links.size() + " outliks");
- }
-
- /**
- * Setting Anchor text of last added anchor
- * @param anchorText Text to be added
- */
- private void addAnchorText(String anchorText) {
- if(links.size() > 0) {
- LinkTask l = (LinkTask) links.get(links.size() - 1);
- l.setAnchorText(anchorText.replaceAll("\\s+", " ").trim());
- log.debug("Adding anchor: " + l.getAnchorText() + " on link: " + l);
- }
- }
-
-
- /**
- * Add the outlink to the {@code links} list if the value is a valid URI.
- * @param value the outlink.
- */
- public void addOutlinkURI(String value) {
- if (history == null)
- history = new HashSet<String>();
- if (links == null)
- links = new ArrayList<Link>();
- if (history.add(link.toString())) {
- links.add(new LinkTask(base, link, base.getDepth() + 1));
- log.debug("Added outlink: " + link + " with depth: " + base.getDepth() + 1);
- }
- }
-
- public Collection<Link> getLinks() {
- return links;
- }
-
- public Map<String, String> getElements() {
- return elements;
- }
-
- /**
- * Transform a String into an URI.
- * @param target the URI in String format.
- * @return the URI or null if the URI is not valid.
- */
- private URI getURI(String target) {
- target = target.replaceAll("\\s", "%20");
- try {
- if (!target.toLowerCase().startsWith("javascript")
- && !target.contains(":/")) {
- return baseUri.resolve(target.split("#")[0]);
- }
- else if (!target.toLowerCase().startsWith("javascript")) {
- return new URI(target.split("#")[0]);
- }
- }
- catch (Exception e) {
- log.error("URI not valid: " + target);
- }
- return null;
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.droids.parse.html;
+
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.droids.LinkTask;
+import org.apache.droids.api.Link;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.DefaultHandler;
+
+public class LinkExtractor extends DefaultHandler
+{
+
+ /**
+ * Name of element that may contain base URI
+ */
+ private static final String BASE_ELEMENT = "base";
+
+ /**
+ * Name of attribute for base URI
+ */
+ private static final String BASE_ATTRIBUTE = "href";
+
+ protected final Log log = LogFactory.getLog(this.getClass());
+
+ /**
+ * Base url for host reference
+ */
+ private final Link base;
+
+ /**
+ * Map with the pair label-attribute for the accepted items
+ */
+ private final Map<String, String> elements;
+
+ /**
+ * List of links
+ */
+ private ArrayList<Link> links = new ArrayList<Link>();
+
+ /**
+ * Set of URIs visited yet
+ */
+ private Set<String> history = null;
+
+ /**
+ * Base URI for resolving
+ */
+ private URI baseUri = null;
+
+ /**
+ * Check for base elements
+ */
+ private boolean checkBase = true;
+
+ /**
+ * The parsed link
+ */
+ private URI link = null;
+
+ /**
+ * Anchor text
+ */
+ private StringBuilder anchorText = new StringBuilder();
+
+ public LinkExtractor(Link base, Map<String, String> elements) {
+ super();
+ this.base = base;
+ this.elements = elements;
+ this.baseUri = base.getURI();
+ }
+
+ @Override
+ public void startDocument() throws SAXException {
+ history = new HashSet<String>();
+ history.add(base.getURI().toString());
+ }
+
+ @Override
+ public void startElement(String uri, String loc, String raw, Attributes att) throws SAXException
+ {
+ if(checkBase && BASE_ELEMENT.equalsIgnoreCase(loc) && att.getValue(BASE_ATTRIBUTE) != null) {
+ try {
+ baseUri = new URI(att.getValue(BASE_ATTRIBUTE));
+ log.debug("Found base URI: " + baseUri);
+ checkBase = false;
+ }
+ catch ( URISyntaxException e) {
+ log.error("Base URI not valid: " + att.getValue(BASE_ATTRIBUTE));
+ }
+ }
+
+ Iterator<String> it = elements.keySet().iterator();
+ String elem, linkAtt;
+ while (it.hasNext()) {
+ elem = it.next();
+ linkAtt = elements.get(elem);
+ if (elem.equalsIgnoreCase(loc) && att.getValue(linkAtt) != null) {
+ link = getURI(att.getValue(linkAtt));
+ log.debug("Found element: " + elem + " with link: " + link);
+ if (link != null) {
+ addOutlinkURI(link.toString());
+ link = null;
+ anchorText = new StringBuilder();
+ }
+ }
+ }
+ }
+
+ @Override
+ public void characters(char[] ch, int start, int length) {
+ anchorText.append(ch, start, length);
+ }
+
+ @Override
+ public void endElement(String uri, String loc, String raw) {
+ Iterator<String> it = elements.keySet().iterator();
+ String elem;
+ while (it.hasNext()) {
+ elem = it.next();
+ if (elem.equalsIgnoreCase(loc)) {
+ addAnchorText(anchorText.toString());
+ }
+ }
+ }
+
+
+ @Override
+ public void endDocument() throws SAXException
+ {
+ history = null;
+ log.debug("Found " + links.size() + " outliks");
+ }
+
+ /**
+ * Setting Anchor text of last added anchor
+ * @param anchorText Text to be added
+ */
+ private void addAnchorText(String anchorText) {
+ if(links.size() > 0) {
+ LinkTask l = (LinkTask) links.get(links.size() - 1);
+ l.setAnchorText(anchorText.replaceAll("\\s+", " ").trim());
+ log.debug("Adding anchor: " + l.getAnchorText() + " on link: " + l);
+ }
+ }
+
+
+ /**
+ * Add the outlink to the {@code links} list if the value is a valid URI.
+ * @param value the outlink.
+ */
+ public void addOutlinkURI(String value) {
+ if (history == null)
+ history = new HashSet<String>();
+ if (links == null)
+ links = new ArrayList<Link>();
+ if (history.add(link.toString())) {
+ links.add(new LinkTask(base, link, base.getDepth() + 1));
+ log.debug("Added outlink: " + link + " with depth: " + base.getDepth() + 1);
+ }
+ }
+
+ public Collection<Link> getLinks() {
+ return links;
+ }
+
+ public Map<String, String> getElements() {
+ return elements;
+ }
+
+ /**
+ * Transform a String into an URI.
+ * @param target the URI in String format.
+ * @return the URI or null if the URI is not valid.
+ */
+ private URI getURI(String target) {
+ target = target.replaceAll("\\s", "%20");
+ try {
+ if (!target.toLowerCase().startsWith("javascript")
+ && !target.contains(":/")) {
+ return baseUri.resolve(target.split("#")[0]);
+ }
+ else if (!target.toLowerCase().startsWith("javascript")) {
+ return new URI(target.split("#")[0]);
+ }
+ }
+ catch (Exception e) {
+ log.error("URI not valid: " + target);
+ }
+ return null;
+ }
+}
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/AdvancedHttpContentEntity.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/AdvancedHttpProtocol.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/DroidsHttpClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/DroidsRequestRetryHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/HttpClientContentLoader.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/HttpContentEntity.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/HttpProtocol.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/protocol/http/NoAuthHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/robot/walker/FileTask.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/robot/walker/FileWorker.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/robot/walker/SimpleWalkingDroid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/robot/walker/WalkingDroid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/main/java/org/apache/droids/validator/ChainTaskValidator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/DroidsFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/delay/TestDelay.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/examples/handler/ExceptionReportHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/examples/handler/ReportHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/examples/package-info.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/ExceptionCrawlingDroid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/ReportCrawlingDroid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/SaveCrawlingDroid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/SysoutCrawlingDroid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/TestSimpleDroid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/TestSimpleQueue.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/impl/TestSimpleTaskQueueWithHistory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/localserver/LocalHttpServer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/localserver/ResourceHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-core/src/test/java/org/apache/droids/robot/crawler/TestCrawlingWorker.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/AbstractRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/AllowedRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/ContentLoader.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/DisallowedRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/NoRobotClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/NoRobotException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/Rule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/RulesEngine.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/SimpleContentLoader.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/main/java/org/apache/droids/norobots/package.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/test/java/org/apache/droids/norobots/TestNorobotsClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/bad/robots.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/basic/robots.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/disallow-empty/robots.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/order-reverse/robots.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/order/robots.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/rfc/robots.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-norobots/src/test/resources/data/ua-case-insensitive/robots.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/protwords.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/protwords.txt
('svn:executable' removed)
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/schema.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/schema.xml
('svn:executable' removed)
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/solrconfig.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/solrconfig.xml
('svn:executable' removed)
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/stopwords.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/stopwords.txt
('svn:executable' removed)
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/synonyms.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/example/conf/synonyms.txt
('svn:executable' removed)
Propchange: incubator/droids/branches/0.1.x/droids-solr/forrest.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/src/main/java/org/apache/droids/solr/AdvancedSolrHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/src/test/java/org/apache/droids/solr/AdvancedSolrHandleTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-solr/src/test/java/org/apache/droids/solr/MockContentEntity.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-spring/default.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-spring/forrest.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-spring/lib/readme.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-spring/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-spring/src/test/java/org/apache/droids/dynamic/DroidsConfigTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-spring/src/test/java/org/apache/droids/dynamic/TestSimpleDroid.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-spring/src/test/resources/droids-core-test-context.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-spring/src/test/resources/droids-core.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-tika/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-tika/pom.xml
('svn:executable' removed)
Propchange: incubator/droids/branches/0.1.x/droids-tika/src/main/java/org/apache/droids/tika/EchoHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-tika/src/main/java/org/apache/droids/tika/TikaDocumentParser.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java
('svn:executable' removed)
Modified: incubator/droids/branches/0.1.x/droids-tika/src/test/java/org/apache/droids/tika/TikaHtmlParserTest.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.1.x/droids-tika/src/test/java/org/apache/droids/tika/TikaHtmlParserTest.java?rev=1136473&r1=1136472&r2=1136473&view=diff
==============================================================================
--- incubator/droids/branches/0.1.x/droids-tika/src/test/java/org/apache/droids/tika/TikaHtmlParserTest.java (original)
+++ incubator/droids/branches/0.1.x/droids-tika/src/test/java/org/apache/droids/tika/TikaHtmlParserTest.java Thu Jun 16 15:00:47 2011
@@ -1,28 +1,28 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.droids.tika;
-
-import junit.framework.TestCase;
-
-public class TikaHtmlParserTest extends TestCase {
-
- public void testSomething() throws Exception
- {
- // TODO -- test stuff!
- assertTrue( true );
- }
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.droids.tika;
+
+import junit.framework.TestCase;
+
+public class TikaHtmlParserTest extends TestCase {
+
+ public void testSomething() throws Exception
+ {
+ // TODO -- test stuff!
+ assertTrue( true );
+ }
}
\ No newline at end of file
Propchange: incubator/droids/branches/0.1.x/droids-tika/src/test/java/org/apache/droids/tika/TikaHtmlParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-tika/src/test/java/org/apache/droids/tika/TikaHtmlParserTest.java
('svn:executable' removed)
Propchange: incubator/droids/branches/0.1.x/droids-wicket/forrest.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/app/BaseDroidsApplication.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/app/DroidsApplication.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/app/IndexPage.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/app/IndexPage.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/component/CollectionDataProvider.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/component/DroidPanel.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/component/DroidPanel.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/java/org/apache/droids/wicket/component/WorkBeanDataProvider.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/java/readme.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/application.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/log4j.properties?rev=1136473&r1=1136472&r2=1136473&view=diff
==============================================================================
--- incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/log4j.properties (original)
+++ incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/log4j.properties Thu Jun 16 15:00:47 2011
@@ -1,25 +1,25 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-log4j.rootLogger=INFO, stdout
-
-log4j.logger.java.sql.Statement=DEBUG
-log4j.logger.java.sql.PreparedStatement=DEBUG
-log4j.logger.java.sql.ResultSet=DEBUG
-
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%d %p %c - %m%n
-
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+log4j.rootLogger=INFO, stdout
+
+log4j.logger.java.sql.Statement=DEBUG
+log4j.logger.java.sql.PreparedStatement=DEBUG
+log4j.logger.java.sql.ResultSet=DEBUG
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d %p %c - %m%n
+
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/resources/log4j.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/test/java/org/apache/droids/wicket/app/BaseDroidsApplicationTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/test/java/org/apache/droids/wicket/app/DroidsApplicationForTesting.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/test/java/org/apache/droids/wicket/app/MockContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/droids/branches/0.1.x/droids-wicket/src/test/java/org/apache/droids/wicket/app/StartDroidsApp.java
------------------------------------------------------------------------------
svn:eol-style = native