I have following target in mz ant script to build my java application
<target name="jar" depends="compile" description="generate jar">
<jar jarfile="${build.dir}/jar/final.jar" basedir="${build.dir}/classes">
<manifest>
<attribute name="Main-Class" value="my.package.Main" />
</manifest>
</jar>
</target>
What I need is to somehow include log4j into the jar, as it throws a NoClassDefFoundError when running with
java -jar final.jar
What is the best way to achieve that?
Best,
Will
I could solve my problem with zipgroupfileset