43696d72b89fd63bb0abb39bbedb53072f8b21db
[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-plugin-jigdfs.location" value="Splitter-ng-plugin-jigdfs" />
10         <property name="Splitter-ng-plugin-bitsplitter.location" value="Splitter-ng-plugin-bitsplitter" />
11         <property name="Splitter-ng-test.location" value="Splitter-ng-test" />
12         <target name="init">
13                 <exec executable="git" failonerror="no">
14                         <arg line=" submodule init"/>
15                 </exec>
16                 <exec executable="git" failonerror="no">
17                         <arg line=" submodule update"/>
18                 </exec>
19                 <mkdir dir="dist" />
20                 <mkdir dir="dist/lib" />
21                 <mkdir dir="dist/plugin" />
22                 <mkdir dir="dist/restoreDir" />
23                 <mkdir dir="dist/splitDir" />
24                 <mkdir dir="dist/srcDir" />
25         </target>
26         <target depends="clean" name="cleandist">
27                 <delete dir="dist/lib" />
28                 <delete dir="dist/plugin" />
29                 <delete dir="dist/restoreDir" />
30                 <delete dir="dist/splitDir" />
31                 <delete file="dist/Splitter-ng-test.jar" />
32                 <delete file="dist/starttest" />
33                 <delete file="dist/starttest-x" />
34         </target>
35         <target name="clean" description="Clean Splitter-ng, all Plugins and Splitter-test">
36                 <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="clean" />
37                 <ant antfile="build.xml" dir="${Splitter-ng-test.location}" inheritAll="false" target="clean" />
38                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-JSharing.location}" inheritAll="false" target="clean" />
39                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure.location}" inheritAll="false" target="clean" />
40                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure-purejava.location}" inheritAll="false" target="clean" />
41                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-raid1.location}" inheritAll="false" target="clean" />
42                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jigdfs.location}" inheritAll="false" target="clean" />
43                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-bitsplitter.location}" inheritAll="false" target="clean" />
44         </target>
45
46         <target name="buildall" description="Build (not create Jar) Splitter-NG, all Plugins and Splitter-test">
47                 <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="build" />
48                 <ant antfile="build.xml" dir="${Splitter-ng-test.location}" inheritAll="false" target="build" />
49                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-JSharing.location}" inheritAll="false" target="build" />
50                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure.location}" inheritAll="false" target="build" />
51                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure-purejava.location}" inheritAll="false" target="build" />
52                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-raid1.location}" inheritAll="false" target="build" />
53                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jigdfs.location}" inheritAll="false" target="build" />
54                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-bitsplitter.location}" inheritAll="false" target="build" />
55         </target>
56         
57         <target name="distall" depends="init,splitter,test,jsharing,jerasure,jerasure-purejava,raid1,bitsplitter,jigdfs" description="Build and Distribute Splitter-NG, all Plugins and Splitter-test to ./dist"/>
58         
59         <target name="splitter" depends="init" >
60                 <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="dist" />
61         </target>
62         <target name="test" depends="splitter" >
63                 <ant antfile="build.xml" dir="${Splitter-ng-test.location}" inheritAll="false" target="dist" />
64         </target>
65         <target name="jsharing" depends="splitter" >
66                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-JSharing.location}" inheritAll="false" target="dist" />
67         </target>
68         <target name="jerasure" depends="splitter" >
69                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure.location}" inheritAll="false" target="dist" />
70         </target>
71         <target name="jerasure-purejava" depends="splitter" >
72                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jerasure-purejava.location}" inheritAll="false" target="dist" />
73         </target>
74         <target name="raid1" depends="splitter" >
75                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-raid1.location}" inheritAll="false" target="dist" />
76         </target>
77         <target name="jigdfs" depends="splitter" >
78                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-jigdfs.location}" inheritAll="false" target="dist" />
79         </target>
80         <target name="bitsplitter" depends="splitter" >
81                 <ant antfile="build.xml" dir="${Splitter-ng-plugin-bitsplitter.location}" inheritAll="false" target="dist" />
82         </target>
83
84 </project>
85