Re: Pull multiple .class files from multiple .jars into one .jar

2011-03-01 Thread Scot P. Floess
Sorry, my example is slightly wrong... I mean: Jar 1 - Foo.class (inherits Bar.class) Bar.class Jar 2 - Alpha.class (inherits Beta.class) Beta.class New Jar --- Foo.class Alpha.class On Tue, 1 Mar 2011, Scot P. Floess wrote: You can certainly unjar all the jars...apply your p

Re: Pull multiple .class files from multiple .jars into one .jar

2011-03-01 Thread Scot P. Floess
You can certainly unjar all the jars...apply your patternset for those class files and jar those into the new jar... However, should you want to use this jar file by itself (meaning without the original jar files), you may find yourself getting ClassNotFoundException's... For example, assu

Pull multiple .class files from multiple .jars into one .jar

2011-03-01 Thread Vilius Vaivada
Hi all, I'm new to ant, so I might be missing something fairly obvious. My problem: * I have a lib/ directory full of .jar files * I have 2 patternsets for some .class files that I want to put into two new jar files. After a bit of googling I have this: