Author: richard.opalka(a)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();
Show replies by date