[Yanel-commits] rev 26211 -
public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils
simon at wyona.com
simon at wyona.com
Mon Jul 23 11:37:18 CEST 2007
Author: simon
Date: 2007-07-23 11:37:18 +0200 (Mon, 23 Jul 2007)
New Revision: 26211
Modified:
public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/TomcatContextHandler.java
Log:
replace file.separator with slash because there is always a slash in the contect file now matter which OS.
Modified: public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/TomcatContextHandler.java
===================================================================
--- public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/TomcatContextHandler.java 2007-07-23 09:34:08 UTC (rev 26210)
+++ public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/TomcatContextHandler.java 2007-07-23 09:37:18 UTC (rev 26211)
@@ -97,7 +97,7 @@
}
line = line.replaceAll("[ ]+", " ");
line = line.replaceAll("\"/>", "");
- webapp = line.split(File.separator)[line.split(File.separator).length -1 ];
+ webapp = line.split("/")[line.split("/").length -1 ];
if (!new File( webappsDirectoryPath + webapp ).exists()) {
return null;
More information about the Yanel-commits
mailing list