You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2006/04/04 15:40:50 UTC
svn commit: r391308 -
/lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/search/crawler/CrawlerConfiguration.java
Author: michi
Date: Tue Apr 4 06:40:49 2006
New Revision: 391308
URL: http://svn.apache.org/viewcvs?rev=391308&view=rev
Log:
return null if local robots has not been specified within crawler config
Modified:
lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/search/crawler/CrawlerConfiguration.java
Modified: lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/search/crawler/CrawlerConfiguration.java
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/search/crawler/CrawlerConfiguration.java?rev=391308&r1=391307&r2=391308&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/search/crawler/CrawlerConfiguration.java (original)
+++ lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/search/crawler/CrawlerConfiguration.java Tue Apr 4 06:40:49 2006
@@ -240,7 +240,12 @@
public String getRobotsFileResolved() {
log.debug(robots_file);
- return resolvePath(robots_file);
+ if (robots_file != null) {
+ return resolvePath(robots_file);
+ } else {
+ log.warn("No local robots file specified!");
+ return null;
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org