forked from hohosky/direct-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-components.xml
More file actions
37 lines (27 loc) · 1.29 KB
/
build-components.xml
File metadata and controls
37 lines (27 loc) · 1.29 KB
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
30
31
32
33
34
35
36
37
<project name="Master build file for building components" basedir=".">
<property name="buildroot" value="../../build"/>
<property name="builddir" value="${buildroot}/${distfilename}"/>
<property name="component.jar" value="${buildroot}/${distfilename}.jar"/>
<target name="check_meata_file">
<available file="${configdir}/META-INF/" property="meta_config_exists" type="dir"/>
</target>
<target name="dist_direct_meata_file" depends="clean, compile" if="meta_config_exists">
<jar jarfile="${buildroot}/${distfilename}.jar" basedir="${build_classdir}">
<metainf dir="${configdir}/META-INF/" includes="**"/>
</jar>
</target>
<target name="dist_direct_no_meata_file" depends="clean, compile" unless="meta_config_exists">
<jar jarfile="${buildroot}/${distfilename}.jar" basedir="${build_classdir}">
</jar>
</target>
<target name="dist_direct" depends="check_meata_file, dist_direct_meata_file, dist_direct_no_meata_file">
<if>
<equals arg1="${needTokenize}" arg2="true"/>
<then>
<antcall target="clean"/>
<antcall target="dist"/>
</then>
</if>
<copy file="${buildroot}/${distfilename}.jar" todir="${tcs_libdir}"/>
</target>
</project>