forked from zanata/openprops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildcustom.xml
29 lines (29 loc) · 1019 Bytes
/
buildcustom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?eclipse.ant.import?>
<project name="custom" default="dist" basedir="." >
<property file="buildcustom.properties"/>
<property name="distdir" value="dist/openprops-${version}"/>
<property name="jarname" value="openprops-${version}.jar"/>
<property name="zipname" value="openprops-${version}.zip"/>
<property name="zippath" value="dist/${zipname}"/>
<target name="distclean">
<delete dir="dist"/>
</target>
<target name="distroot">
<mkdir dir="dist"/>
</target>
<target name="jar" depends="distroot">
<jar destfile="dist/${jarname}" basedir="bin"/>
</target>
<target name="dist" depends="jar,distroot">
<delete dir="${distdir}"/>
<mkdir dir="${distdir}" />
<copy todir="${distdir}">
<fileset dir="." includes="src/**,test/**,.settings/**,misc/**,orig/**,.classpath,.project,build*,*.txt"/>
<fileset dir="dist" includes="${jarname}"/>
</copy>
<zip destfile="${zippath}">
<fileset dir="dist" includes="openprops-${version}/**" />
</zip>
<delete dir="${distdir}"/>
</target>
</project>