mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 06:15:02 -05:00
56edac666c
* removed create panel (merged into list panel) * stuff for future subtitle support * lots of flag icons
96 lines
2.7 KiB
XML
96 lines
2.7 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<project name="FileBot" basedir="." default="fatjar">
|
|
|
|
<property name="title" value="${ant.project.name}" />
|
|
<property name="version" value="1.6" />
|
|
|
|
<property name="source" location="${basedir}/source" />
|
|
<property name="build" location="${basedir}/build" />
|
|
<property name="lib" location="${basedir}/lib" />
|
|
|
|
<property name="executable" location="${build}/${title}.jar" />
|
|
|
|
<property name="lib.xerces" value="xercesImpl.jar" />
|
|
<property name="lib.nekohtml" value="nekohtml-1.9.6.1.jar" />
|
|
<property name="lib.simmetrics" value="simmetrics_jar_v1_6_2_d07_02_07.jar" />
|
|
<property name="lib.xmlrpc" value="xmlrpc-client-1.1.jar" />
|
|
|
|
|
|
|
|
<target name="jar" depends="build">
|
|
<jar destfile="${executable}" duplicate="fail">
|
|
<fileset dir="${build}" />
|
|
|
|
<manifest>
|
|
<attribute name="Built-By" value="${user.name}" />
|
|
<attribute name="Main-Class" value="Main" />
|
|
<attribute name="Version" value="${version}" />
|
|
</manifest>
|
|
|
|
<!-- include libs if fatjar is set -->
|
|
<zipfileset src="${lib}/${lib.xerces}">
|
|
<include if="fatjar" name="**/*.class" />
|
|
<include if="fatjar" name="**/*.properties" />
|
|
<exclude if="fatjar" name="**/*Test*" />
|
|
</zipfileset>
|
|
<zipfileset src="${lib}/${lib.nekohtml}">
|
|
<include if="fatjar" name="**/*.class" />
|
|
<include if="fatjar" name="**/*.properties" />
|
|
<exclude if="fatjar" name="**/*Test*" />
|
|
</zipfileset>
|
|
<zipfileset src="${lib}/${lib.simmetrics}">
|
|
<include if="fatjar" name="**/*.class" />
|
|
<include if="fatjar" name="**/*.properties" />
|
|
<exclude if="fatjar" name="**/*Test*" />
|
|
</zipfileset>
|
|
<zipfileset src="${lib}/${lib.xmlrpc}">
|
|
<include if="fatjar" name="**/*.class" />
|
|
<include if="fatjar" name="**/*.properties" />
|
|
<exclude if="fatjar" name="**/*Test*" />
|
|
</zipfileset>
|
|
</jar>
|
|
</target>
|
|
|
|
|
|
<target name="fatjar">
|
|
<antcall target="jar">
|
|
<param name="fatjar" value="true" />
|
|
</antcall>
|
|
</target>
|
|
|
|
|
|
<target name="build" depends="clean">
|
|
<!-- create build dir -->
|
|
<mkdir dir="${build}" />
|
|
|
|
<!-- compile -->
|
|
<javac srcdir="${source}" destdir="${build}">
|
|
<classpath>
|
|
<fileset dir="${lib}" includes="*.jar" />
|
|
</classpath>
|
|
</javac>
|
|
|
|
<!-- copy resources -->
|
|
<copy todir="${build}">
|
|
<fileset dir="${source}">
|
|
<include name="**/*.png" />
|
|
<include name="**/*.gif" />
|
|
<include name="**/*.xml" />
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
|
|
|
|
<target name="clean">
|
|
<delete dir="${build}" />
|
|
<delete file="${executable}" verbose="true" />
|
|
</target>
|
|
|
|
|
|
<target name="run" depends="fatjar">
|
|
<java jar="${executable}" fork="true" />
|
|
</target>
|
|
|
|
</project>
|