diff options
Diffstat (limited to 'net-p2p/vuze/files/build.xml')
-rw-r--r-- | net-p2p/vuze/files/build.xml | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/net-p2p/vuze/files/build.xml b/net-p2p/vuze/files/build.xml new file mode 100644 index 000000000000..7b060c14b2f2 --- /dev/null +++ b/net-p2p/vuze/files/build.xml @@ -0,0 +1,68 @@ +<?xml version="1.0"?> + +<!-- + +NOTE: You may need to set the ANT_OPTS="-Xmx512m" env prop in order to compile this project successfully. + +--> + + +<project default="jar" name="Azureus" basedir="."> + + <property name="root.dir" value="." /> <!-- REMINDER: this needs to be "." for public source --> + <property name="libs.dir" value="build/libs" /> + <property name="dist.dir" value="dist" /> + + <property name="generic.excludes" value="**/*.jar **/*.txt **/*.jardesc **/.classpath **/.project **/aereg.lib **/aereg.dll" /> + <property name="dist.jar.excludes" value="${generic.excludes} **/*.java " /> + <!-- <property name="dist.source.excludes" value="${generic.excludes} **/*.class" /> --> + + + <target name="init" > + <echo message="Building Azureus2.jar..." /> + + <tstamp/> + + <!-- <condition property="libs.dir" value="build/libs"> + <not> <isset property="libs.dir" /> </not> + </condition> --> + + <mkdir dir="${root.dir}/${dist.dir}" /> + </target> + + + <target name="compile" depends="init" > + <path id="libs.classpath"> + <fileset dir="${root.dir}/${libs.dir}" includes="**/*.jar" /> + </path> + + <javac srcdir="${root.dir}" destdir="${root.dir}" nowarn="yes" source="1.4" target="1.4" includeAntRuntime="no" debug="true" debuglevel="lines,vars,source" > + <classpath refid="libs.classpath" /> + </javac> + </target> + + + <target name="jar" depends="compile" > + <jar destfile="${root.dir}/${dist.dir}/Azureus2.jar" basedir="${root.dir}" excludes="${dist.jar.excludes}" > + <manifest> + <attribute name="Main-Class" value="org.gudy.azureus2.ui.common.Main" /> + <attribute name="Class-Path" value="Azureus2.jar apple-extensions.jar commons-cli.jar log4j.jar swt.jar swt-win32.jar swt-osx.jar" /> + </manifest> + </jar> + + <!-- <zip destfile="${dist.dir}/Azureus2_source.zip" basedir="." excludes="${dist.source.excludes}" /> --> + + </target> + + + <target name="clean" > + <delete quiet="true" > + <fileset dir="${root.dir}/com" includes="**/*.class"/> + <fileset dir="${root.dir}/org" includes="**/*.class"/> + </delete> + + <delete dir="${root.dir}/${dist.dir}" /> + </target> + +</project> + |