integrate new plugin into Splitter-NG-test and build.xml
[splitter-ng] / build.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <project basedir="." default="distall" name="Splitter-ng">
3         <property environment="env" />
4         <property name="Splitter-ng.location" value="Splitter-ng" />
5         <property name="Splitter-ng-plugin-JSharing.location" value="Splitter-ng-plugin-JSharing" />
6         <property name="Splitter-ng-plugin-jerasure.location" value="Splitter-ng-plugin-jerasure" />
7         <property name="Splitter-ng-plugin-jerasure-purejava.location" value="Splitter-ng-plugin-jerasure-purejava" />
8         <property name="Splitter-ng-plugin-raid1.location" value="Splitter-ng-plugin-raid1" />
9         <property name="Splitter-ng-test.location" value="Splitter-ng-test" />
10         <target name="init">
11                 <exec executable="git" failonerror="no">
12                         <arg line=" submodule init"/>
13                 </exec>
14                 <exec executable="git" failonerror="no">
15                         <arg line=" submodule update"/>
16                 </exec>
17                 <mkdir dir="dist" />
18                 <mkdir dir="dist/lib" />
19                 <mkdir dir="dist/plugin" />
20                 <mkdir dir="dist/restoreDir" />
21                 <mkdir dir="dist/splitDir" />
22                 <mkdir dir="dist/srcDir" />
23         </target>
24         <target depends="clean" name="cleandist">
25                 <delete dir="dist/lib" />
26                 <delete dir="dist/plugin" />
27                 <delete dir="dist/restoreDir" />
28                 <delete dir="dist/splitDir" />
29                 <delete file="dist/Splitter-ng-test.jar" />
30                 <delete file="dist/starttest" />
31                 <delete file="dist/starttest-x" />
32         </target>
33         <target name="clean" description="Clean Splitter-ng, all Plugins and Splitter-test">
34                 <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="cleanall" />
35         </target>
36         <target name="buildall" description="Build (not create Jar) Splitter-NG, all Plugins and Splitter-test">
37                 <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="buildall" />
38                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-JSharing.location}" inheritAll="false" target="build" />
39                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure.location}" inheritAll="false" target="build" />
40                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure-purejava.location}" inheritAll="false" target="build" />
41                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-raid1.location}" inheritAll="false" target="build" />
42                 <ant antfile="build.xml" dir="${Splitter-ng-test.location}" inheritAll="false" target="build" />
43         </target>
44         <target name="distall" depends="init" description="Build and Distribute Splitter-NG, all Plugins and Splitter-test to ./dist">
45                 <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="dist" />
46                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-JSharing.location}" inheritAll="false" target="dist" />
47                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure.location}" inheritAll="false" target="dist" />
48                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure-purejava.location}" inheritAll="false" target="dist" />
49                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-raid1.location}" inheritAll="false" target="dist" />
50                 <ant antfile="build.xml" dir="${Splitter-ng-test.location}" inheritAll="false" target="dist" />
51         </target>
52 </project>
53