How to use .jar files stored inside a .zip file
Here is an example were all the .jar files contained in the BIRT .war files are used for compilation.
Code Block |
---|
BIRT_WAR = artifact("org.eclipse.birt:birt-webapp:war:2.3.0") task :unzip_birt => unzip(_("target/birt") => BIRT_WAR) do compile.with Dir[_("target/birt/WEB-INF/lib") + "/*.jar"] end task :compile => :unzip_birt |
The BIRT .war file is first downloaded (if not available locally), then unzipped and all .jar files contained under the WEB-INF/lib directory are added to the compilation classpath.