Bugs item #456467, was opened at 2001-08-29 03:26
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=456467&group_id=22866
Category: JBossServer
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 3
Submitted By: Peter Antman (pra)
Assigned to: Andreas Schaefer (schaefera)
Summary: Add in URLWizzard fails for top files
Initial Comment:
The add() method in URLWizzard, used to download and
pack directorys into a jar file fails with files in the
top directory.
For example the directory structure
META-INF/jboss.xml
MyClass.class
Will in the resulting jar-file look:
META_INF/jboss.xml
/MyClass.class
An extra "/" is appended for all files in the top dir.
The following line does the jobb:
_jout.putNextEntry (new ZipEntry(_prefix +
"/" + content[i].getName ()));
But for files in the top dir _prefix will be blank, and
the extra "/" will destroy the possibility of looking
it up in the classpath.
One possible solution is:
String sep = (_prefix.equals("") ? "" : "/");
jout.putNextEntry (new ZipEntry(_prefix + sep +
content[i].getName ()))
But someone wich knows the ins and outs of the deployer
stuff should probably fix it.
//Peter
----------------------------------------------------------------------
>Comment By: Andreas Schaefer (schaefera)
Date: 2001-11-20 12:51
Message:
Logged In: YES
user_id=70434
Fixed on the current CVS Head as well as on Branch 2.4.4.
Andy
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=456467&group_id=22866
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development