[jbossws-commits] JBossWS SVN: r8520 - stack/metro/branches/jbossws-metro-3.0.4/modules/server/src/main/java/org/jboss/wsf/stack/metro.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Fri Oct 17 06:05:41 EDT 2008


Author: richard.opalka at jboss.com
Date: 2008-10-17 06:05:41 -0400 (Fri, 17 Oct 2008)
New Revision: 8520

Modified:
   stack/metro/branches/jbossws-metro-3.0.4/modules/server/src/main/java/org/jboss/wsf/stack/metro/WsgenWrapperGenerator.java
Log:
Making sure Metro integration is cross platform

Modified: stack/metro/branches/jbossws-metro-3.0.4/modules/server/src/main/java/org/jboss/wsf/stack/metro/WsgenWrapperGenerator.java
===================================================================
--- stack/metro/branches/jbossws-metro-3.0.4/modules/server/src/main/java/org/jboss/wsf/stack/metro/WsgenWrapperGenerator.java	2008-10-15 16:09:58 UTC (rev 8519)
+++ stack/metro/branches/jbossws-metro-3.0.4/modules/server/src/main/java/org/jboss/wsf/stack/metro/WsgenWrapperGenerator.java	2008-10-17 10:05:41 UTC (rev 8520)
@@ -153,9 +153,9 @@
       if (!tempJBossWSDir.exists())
          tempJBossWSDir.mkdir();
       String archivePath = archiveUrl.getPath();
-      if (archivePath.endsWith(File.separator))
+      if (archivePath.endsWith("/"))
          archivePath = archivePath.substring(0, archivePath.length() - 1);
-      String archiveName = archivePath.substring(archivePath.lastIndexOf(File.separator));
+      String archiveName = archivePath.substring(archivePath.lastIndexOf("/"));
       File tempDir = new File(tempJBossWSDir, archiveName + "-" + new Date().getTime());
       if (!tempDir.exists())
          tempDir.mkdir();




More information about the jbossws-commits mailing list