forked from chariotsolutions/phonegap-nfc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
34 lines (27 loc) · 1.02 KB
/
build.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
<?xml version="1.0"?>
<project name="PhoneGap NFC Plugin" default="dist" basedir=".">
<loadfile property="version" srcFile="VERSION">
<filterchain>
<striplinebreaks/>
</filterchain>
</loadfile>
<property name="dist.dir" location="dist"/>
<target name="build-javascript" description="rename javascript with the current version">
<concat destfile="${dist.dir}/phonegap-nfc-${version}.js">
<fileset dir="www" includes="phonegap-nfc*.js" />
</concat>
<echo>${dist.dir}/phonegap-nfc-${version}.js</echo>
</target>
<target name="dist" depends="android, webworks, build-javascript" description="jar and js for distribution">
<echo>Built phonegap-nfc-${version} for distribution</echo>
</target>
<target name="android" description="android">
<ant dir="android" target="jar"/>
</target>
<target name="webworks" description="webworks">
<ant dir="webworks" target="jar"/>
</target>
<target name="clean" description="clean up">
<delete dir="${dist.dir}"/>
</target>
</project>