You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jb...@apache.org on 2004/09/25 23:19:32 UTC
svn commit: rev 47216 - geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment
Author: jboynes
Date: Sat Sep 25 14:19:31 2004
New Revision: 47216
Modified:
geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
Log:
Handle configId generation correctly on Windows
Modified: geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
==============================================================================
--- geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java (original)
+++ geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java Sat Sep 25 14:19:31 2004
@@ -222,17 +222,14 @@
String id = application.getId();
if (id == null) {
// TODO this name is not necessairly the original name specified on the command line which is what we want
- id = module.getName();
- if (id.endsWith("!/")) {
- id = id.substring(0, id.length() - 2);
- }
+ File fileName = new File(module.getName());
+ id = fileName.getName();
if (id.endsWith(".ear")) {
id = id.substring(0, id.length() - 4);
}
if (id.endsWith("/")) {
id = id.substring(0, id.length() - 1);
}
- id = id.substring(id.lastIndexOf('/') + 1);
}
gerApplication.setConfigId(id);