Browse Source

zips and jars use / as separator, so weblogicdeploymenttool may fail on Windows. PR 35649

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@805423 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
9244de5a11
2 changed files with 7 additions and 1 deletions
  1. +4
    -0
      WHATSNEW
  2. +3
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java

+ 4
- 0
WHATSNEW View File

@@ -432,6 +432,10 @@ Fixed bugs:
NullPointerException. NullPointerException.
Bugzilla Report 47623. Bugzilla Report 47623.


* WeblogicDeploymentTool could fail on platforms with a file
separator other than "/".
Bugzilla Report 35649.

Other changes: Other changes:
-------------- --------------
* The get task now also follows redirects from http to https * The get task now also follows redirects from http to https


+ 3
- 1
src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java View File

@@ -762,7 +762,9 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
if (genericEntry.getName().endsWith(".class")) { if (genericEntry.getName().endsWith(".class")) {
//File are different see if its an object or an interface //File are different see if its an object or an interface
String classname String classname
= genericEntry.getName().replace(File.separatorChar, '.');
= genericEntry.getName()
.replace(File.separatorChar, '.')
.replace('/', '.');


classname = classname.substring(0, classname.lastIndexOf(".class")); classname = classname.substring(0, classname.lastIndexOf(".class"));




Loading…
Cancel
Save