Question about JarJarTask

25 views
Skip to first unread message

David

unread,
Oct 11, 2010, 9:21:31 AM10/11/10
to jarjar
I'm having a problem with the task: while the program does indeed
rename the classes I depend on using the rule I have established, it
also includes the unrenamed classes as well (or at least their
folders). Can this be avoided?

Also, I'm going through a series of JAR files, each containing a META-
INF/LICENSE.txt file. What I'd love to be able to do is define a
rename pattern that uses the name of the current JAR file (something
like a @-1 variable, I suppose). Is there any way to accomplish this?
The idea would be duplicate files could be resolved by appending the
name of their original JAR as a part of the file name (META-INF/
LICENSE.txt -> META-INF/commons-lang-2.5-LICENSE.txt).

Great tool - I'm just hoping to help make it even better!

David Sills

David

unread,
Oct 11, 2010, 9:28:28 AM10/11/10
to jarjar
I suppose one question might be why is it that jarjar is even trying
to combine the various contents of META-INF directories? That has to
be dangerous territory, since the only code for rules assumes that the
pattern is a package pattern (or at least that's what it looks like to
me) and META-INF is obviously not a valid package name.
Reply all
Reply to author
Forward
0 new messages