forked from appirio-tech/direct-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-services.xml
36 lines (27 loc) · 1.3 KB
/
build-services.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
30
31
32
33
34
35
36
<project name="Master build file for building EJB services" basedir=".">
<property name="buildroot" value="../../build"/>
<property name="builddir" value="${buildroot}/${distfilename}"/>
<property name="component.jar" value="${buildroot}/${distfilename}.jar"/>
<target name="check_metafile">
<available file="${configdir}/META-INF/" property="meta_config_exists" type="dir"/>
</target>
<target name="dist_direct_metafile" 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_metafile" depends="clean, compile" unless="meta_config_exists">
<jar jarfile="${buildroot}/${distfilename}.jar" basedir="${build_classdir}">
</jar>
</target>
<target name="dist_direct" depends="check_metafile, dist_direct_metafile, dist_direct_no_metafile">
<if>
<equals arg1="${needTokenize}" arg2="true"/>
<then>
<antcall target="clean"/>
<antcall target="dist"/>
</then>
</if>
<copy file="${buildroot}/${distfilename}.jar" todir="${direct_service_libdir}/"/>
</target>
</project>