ead12c2d107d40cbaab7ebdf254572f296f28d3e
[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         <path refid="Splitter-ng.classpath"/>
15     </path>
16     <target name="init">
17         <mkdir dir="bin"/>
18         <copy includeemptydirs="false" todir="bin">
19             <fileset dir="src">
20                 <exclude name="**/*.uad"/>
21                 <exclude name="**/*.ucd"/>
22                 <exclude name="**/*.uld"/>
23                 <exclude name="**/*.upd"/>
24                 <exclude name="**/*.udd"/>
25                 <exclude name="**/*.uod"/>
26                 <exclude name="**/*.usd"/>
27                 <exclude name="**/*.utd"/>
28                 <exclude name="**/*.uud"/>
29                 <exclude name="**/*.odd"/>
30                 <exclude name="**/*.ead"/>
31                 <exclude name="**/*.ecd"/>
32                 <exclude name="**/*.eld"/>
33                 <exclude name="**/*.epd"/>
34                 <exclude name="**/*.edd"/>
35                 <exclude name="**/*.eod"/>
36                 <exclude name="**/*.esd"/>
37                 <exclude name="**/*.etd"/>
38                 <exclude name="**/*.eud"/>
39                 <exclude name="**/*.urd"/>
40                 <exclude name="**/*.uml"/>
41                 <exclude name="**/*.ecore"/>
42                 <exclude name="**/*.ucls"/>
43                 <exclude name="**/*.useq"/>
44                 <exclude name="**/*.java"/>
45             </fileset>
46         </copy>
47     </target>
48     <target name="clean">
49         <delete dir="bin"/>
50     </target>
51     <target depends="clean" name="cleanall">
52         <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="clean"/>
53
54     </target>
55     <target depends="build-subprojects,build-project" name="build"/>
56     <target name="build-subprojects">
57         <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="build-project"/>
58     </target>
59     <target depends="init" name="build-project">
60         <echo message="${ant.project.name}: ${ant.file}"/>
61         <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
62             <src path="jerasure/src"/>
63             <src path="src"/>
64             <classpath refid="Splitter-ng-plugin-jerasure.classpath"/>
65         </javac>
66     </target>
67     <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
68     <target name ="makejar" depends="build" description="Create a jar for the project">
69           <jar jarfile="bin/${ant.project.name}.jar" >
70             <fileset dir="bin" includes="**/*.class" />
71           </jar>
72     </target>
73         <target name="dist" depends="makejar" description="Create a distribution Directory wirth splitter-ng and all Plugins">
74                 <mkdir dir="../dist" />
75                 <mkdir dir="../dist/plugin" />
76                 <copy file="bin/${ant.project.name}.jar" todir="../dist/plugin/" />
77         </target>
78 </project>
79