daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2.  
  3. <project basedir="." default="build" name="unitv">
  4.  
  5.     <property environment="env"/>
  6.     <property name="debuglevel" value="source,lines,vars"/>
  7.     <property name="target" value="1.6"/>
  8.     <property name="source" value="1.6"/>
  9.  
  10.     <path id="ClientLibs">
  11.         <fileset dir="lib">
  12.             <include name="**/*.jar"/>
  13.         </fileset>
  14.     </path>
  15.    
  16.     <path id="unit.classpath">
  17.         <pathelement location="bin/classes"/>
  18.         <path refid="ClientLibs"/>
  19.     </path>
  20.    
  21.     <target name="init">
  22.         <mkdir dir="bin/classes"/>
  23.         <copy includeemptydirs="false" todir="bin/classes">
  24.             <fileset dir="src">
  25.                 <exclude name="**/*.launch"/>
  26.                 <exclude name="**/*.java"/>
  27.             </fileset>
  28.         </copy>
  29.     </target>
  30.    
  31.     <target name="clean">
  32.         <delete dir="bin/classes"/>
  33.     </target>
  34.    
  35.     <target depends="clean" name="cleanall"/>
  36.    
  37.     <target depends="clean,build-client" name="build" />
  38.    
  39.     <target depends="jar-client" name="build-client"/>
  40.  
  41.     <target name="build-subprojects"/>
  42.    
  43.     <target depends="init" name="build-project">
  44.         <echo message="${ant.project.name}: ${ant.file}"/>
  45.         <javac encoding="utf-8" debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}">
  46.             <src path="src"/>
  47.             <classpath refid="unit.classpath"/>
  48.         </javac>
  49.     </target>
  50.    
  51.     <target name="jar-client">
  52.         <pathconvert property="libs.client" pathsep=" ">
  53.             <mapper>
  54.                 <chainedmapper>
  55.                     <flattenmapper />
  56.                     <globmapper from="*" to="lib/*" />
  57.                 </chainedmapper>
  58.             </mapper>
  59.             <path>
  60.                 <fileset dir="lib">
  61.                     <include name="**/*.jar" />
  62.                 </fileset>
  63.             </path>
  64.         </pathconvert>
  65.        
  66.         <jar jarfile="bin/dist/client/unitv-client.jar" basedir="bin/dist/client/bin">
  67.             <manifest>
  68.                 <attribute name="Main-Class" value="unitv.client.Kernel" />
  69.                 <attribute name="Class-Path" value="${libs.client}" />
  70.             </manifest>
  71.         </jar>
  72.     </target>
  73.    
  74. </project>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top