ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r805423 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
Date Tue, 18 Aug 2009 14:13:28 GMT
Author: bodewig
Date: Tue Aug 18 14:13:27 2009
New Revision: 805423

URL: http://svn.apache.org/viewvc?rev=805423&view=rev
Log:
zips and jars use / as separator, so weblogicdeploymenttool may fail on Windows.  PR 35649

Modified:
    ant/core/trunk/WHATSNEW
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java

Modified: ant/core/trunk/WHATSNEW
URL: http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=805423&r1=805422&r2=805423&view=diff
==============================================================================
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Tue Aug 18 14:13:27 2009
@@ -432,6 +432,10 @@
    NullPointerException.
    Bugzilla Report 47623.
 
+ * WeblogicDeploymentTool could fail on platforms with a file
+   separator other than "/".
+   Bugzilla Report 35649.
+
 Other changes:
 --------------
  * The get task now also follows redirects from http to https

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java?rev=805423&r1=805422&r2=805423&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
Tue Aug 18 14:13:27 2009
@@ -762,7 +762,9 @@
                             if (genericEntry.getName().endsWith(".class")) {
                                 //File are different see if its an object or an interface
                                 String classname
-                                    = genericEntry.getName().replace(File.separatorChar,
'.');
+                                    = genericEntry.getName()
+                                    .replace(File.separatorChar, '.')
+                                    .replace('/', '.');
 
                                 classname = classname.substring(0, classname.lastIndexOf(".class"));
 



Mime
View raw message