--- a/build.xml
+++ b/build.xml
@@ -76,46 +76,10 @@
<jar jarfile="${dist}/${jarfile}" basedir="${build}" manifest="META-INF/MANIFEST.MF" />
</target>
- <target name="dist-standalone" depends="dist" description="Build a single jar containing also the full classpath">
- <!-- We want to exclude some files from the generated jar, namely individual MANIFEST, LICENSE and README files -->
- <!-- Otherwise, if we merge MANIFEST files, we might end up with an invalid main class set (one from the other JAR files) -->
-
- <!-- It seems this it is not possibly to exclude specific files in a ZIP/JAR file when using zipgroupfileset -->
- <!-- Thus, employing workaround described at http://stackoverflow.com/questions/1274879/ant-exclude-files-from-merged-jar-file -->
- <!-- First, bundle all external libraries in a fat jar external-libs -->
- <jar jarfile="${dist}/external-libs.jar" filesetmanifest="skip">
- <zipgroupfileset dir="${lib}" includes="**/*.jar" />
- </jar>
- <sleep seconds="1" />
-
- <!-- Then merge with our jar, excluding everything in /META-INF in the external-libs fat jar -->
- <jar destfile="${dist}/${jarfileFat}" filesetmanifest="merge">
- <manifest>
- <attribute name="Class-Path" value="${libs.project}" />
- <section name="Referenced Libs">
- <attribute name="Info" value="Additional libraries are provided as-is, and might fall under different licenses." />
- </section>
- </manifest>
- <zipgroupfileset file="${dist}/${jarfile}" />
- <zipfileset src="${dist}/external-libs.jar">
- <exclude name="META-INF/**" />
- </zipfileset>
- </jar>
- </target>
-
<target name="clean" description="clean up">
<delete dir="${build}" />
<delete dir="${dist}" />
<delete file="${jarfile}" />
- </target>
-
- <target name="doc" depends="build">
- <delete dir="${doc}" />
- <mkdir dir="${doc}" />
- <mkdir dir="${doc}/api" />
- <javadoc windowtitle="Taverna2Archi API" sourcepath="${src}" destdir="${doc}/api" packagenames="*" package="yes">
- <classpath refid="classpath" />
- </javadoc>
</target>
<target name="TavernaExtractor" depends="build" description="Runs the TavernaExtractor">