Splitter-ng-plugin-jerasure-purejava: add libraries
[splitter-ng] / Splitter-ng-plugin-jerasure-purejava / build.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <project basedir="." default="makejar" name="Splitter-ng-plugin-jerasure-purejava">
3     <property environment="env"/>
4     <property name="Splitter-ng.location" value="../Splitter-ng"/>
5     <property name="Jerasure-1.2-java.location" value="Jerasure-1.2-java"/>
6     <property name="debuglevel" value="source,lines,vars"/>
7     <property name="target" value="1.7"/>
8     <property name="source" value="1.7"/>
9     <path id="Splitter-ng.classpath">
10         <pathelement location="${Splitter-ng.location}/bin"/>
11     </path>
12     <path id="Splitter-ng-plugin-jerasure.classpath">
13         <pathelement location="bin"/>
14                 <pathelement location="lib" />
15                 <fileset dir="lib">
16                         <include name="*.jar"/>
17                 </fileset>      
18         <path refid="Splitter-ng.classpath"/>
19     </path>
20     <target name="init">
21         <mkdir dir="bin"/>
22         <copy includeemptydirs="false" todir="bin">
23             <fileset dir="src">
24                 <exclude name="**/*.uad"/>
25                 <exclude name="**/*.ucd"/>
26                 <exclude name="**/*.uld"/>
27                 <exclude name="**/*.upd"/>
28                 <exclude name="**/*.udd"/>
29                 <exclude name="**/*.uod"/>
30                 <exclude name="**/*.usd"/>
31                 <exclude name="**/*.utd"/>
32                 <exclude name="**/*.uud"/>
33                 <exclude name="**/*.odd"/>
34                 <exclude name="**/*.ead"/>
35                 <exclude name="**/*.ecd"/>
36                 <exclude name="**/*.eld"/>
37                 <exclude name="**/*.epd"/>
38                 <exclude name="**/*.edd"/>
39                 <exclude name="**/*.eod"/>
40                 <exclude name="**/*.esd"/>
41                 <exclude name="**/*.etd"/>
42                 <exclude name="**/*.eud"/>
43                 <exclude name="**/*.urd"/>
44                 <exclude name="**/*.uml"/>
45                 <exclude name="**/*.ecore"/>
46                 <exclude name="**/*.ucls"/>
47                 <exclude name="**/*.useq"/>
48                 <exclude name="**/*.java"/>
49             </fileset>
50         </copy>
51     </target>
52     <target name="clean">
53         <delete dir="bin"/>
54     </target>
55     <target depends="clean" name="cleanall">
56         <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="clean"/>
57
58     </target>
59     <target depends="build-subprojects,build-project" name="build"/>
60     <target name="build-subprojects">
61         <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="build-project"/>
62     </target>
63     <target depends="init" name="build-project">
64         <echo message="${ant.project.name}: ${ant.file}"/>
65         <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
66             <src path="jerasure/src"/>
67             <src path="src"/>
68             <classpath refid="Splitter-ng-plugin-jerasure.classpath"/>
69         </javac>
70     </target>
71     <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
72     <target name ="makejar" depends="build" description="Create a jar for the project">
73           <jar jarfile="bin/${ant.project.name}.jar" >
74             <fileset dir="bin" includes="**/*.class" />
75                 <fileset dir="lib" includes="**/*.class" />
76                 <zipgroupfileset dir="lib" includes="*.jar" />
77           </jar>
78     </target>
79         <target name="dist" depends="makejar" description="Create a distribution Directory wirth splitter-ng and all Plugins">
80                 <mkdir dir="../dist" />
81                 <mkdir dir="../dist/plugin" />
82                 <copy file="bin/${ant.project.name}.jar" todir="../dist/plugin/" />
83         </target>
84 </project>
85