Child pages
  • How to use .jar files stored inside a .zip file
Skip to end of metadata
Go to start of metadata

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.

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.

  • No labels