Advertisement
s243a

My Ant Eclipse Export w/ WOT -- Making My own build

Jun 4th, 2015
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.48 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!-- WARNING: Eclipse auto-generated file.
  3.              Any modifications will be overwritten.
  4.              To include a user specific buildfile here, simply create one in the same
  5.              directory with the processing instruction <?eclipse.ant.import?>
  6.              as the first entry and export the buildfile again. --><project basedir="." default="build" name="WoT">
  7.     <property environment="env"/>
  8.     <property name="build.link" value="../plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8.zip_extracted/plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8/build"/>
  9.     <property name="src.link" value="../plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8.zip_extracted/plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8/src"/>
  10.     <property name="JRE_LIB" value="../../../../usr/local/jdk1.8.0_25/jre/lib/rt.jar"/>
  11.     <property name="debuglevel" value="source,lines,vars"/>
  12.     <property name="target" value="1.8"/>
  13.     <property name="source" value="1.8"/>
  14.     <path id="root/workspace/WOT/plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8.zip_extracted/fred/lib/bcprov.jar.libraryclasspath"/>
  15.     <path id="root/workspace/WOT/plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8.zip_extracted/fred/lib/freenet/freenet-ext.jar.libraryclasspath"/>
  16.     <path id="root/workspace/WOT/plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8.zip_extracted/fred/dist/freenet.jar.libraryclasspath"/>
  17.     <path id="WoT.classpath">
  18.         <pathelement location="build"/>
  19.         <pathelement location="bin"/>
  20.         <pathelement location="${JRE_LIB}"/>
  21.         <path refid="root/workspace/WOT/plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8.zip_extracted/fred/lib/bcprov.jar.libraryclasspath"/>
  22.         <path refid="root/workspace/WOT/plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8.zip_extracted/fred/lib/freenet/freenet-ext.jar.libraryclasspath"/>
  23.         <path refid="root/workspace/WOT/plugin-WebOfTrust-38c89e3a15418fd0bac58498c4a183276241a7a8.zip_extracted/fred/dist/freenet.jar.libraryclasspath"/>
  24.         <pathelement location="../../sone/freenet-testing-build-1468-pre3-snapshot.jar"/>
  25.         <pathelement location="../../sone/freenet-ext.jar"/>
  26.         <pathelement location="../../sone/com.db4o.jar"/>
  27.     </path>
  28.     <target name="init">
  29.         <mkdir dir="build"/>
  30.         <mkdir dir="bin"/>
  31.         <copy includeemptydirs="false" todir="build">
  32.             <fileset dir="${build.link}">
  33.                 <exclude name="**/*.java"/>
  34.             </fileset>
  35.         </copy>
  36.         <copy includeemptydirs="false" todir="bin">
  37.             <fileset dir="${src.link}">
  38.                 <exclude name="**/*.java"/>
  39.             </fileset>
  40.         </copy>
  41.     </target>
  42.     <target name="clean">
  43.         <delete dir="build"/>
  44.         <delete dir="bin"/>
  45.     </target>
  46.     <target depends="clean" name="cleanall"/>
  47.     <target depends="build-subprojects,build-project" name="build"/>
  48.     <target name="build-subprojects"/>
  49.     <target depends="init" name="build-project">
  50.         <echo message="${ant.project.name}: ${ant.file}"/>
  51.         <javac debug="true" debuglevel="${debuglevel}" destdir="build" includeantruntime="false" source="${source}" target="${target}">
  52.             <src path="${build.link}"/>
  53.             <classpath refid="WoT.classpath"/>
  54.         </javac>
  55.         <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
  56.             <src path="${src.link}"/>
  57.             <classpath refid="WoT.classpath"/>
  58.         </javac>
  59.     </target>
  60.     <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
  61.     <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
  62.         <copy todir="${ant.library.dir}">
  63.             <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
  64.         </copy>
  65.         <unzip dest="${ant.library.dir}">
  66.             <patternset includes="jdtCompilerAdapter.jar"/>
  67.             <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
  68.         </unzip>
  69.     </target>
  70.     <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
  71.         <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
  72.         <antcall target="build"/>
  73.     </target>
  74. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement