My favorites | Sign in
Project Logo
                
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
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<property name="sdk-folder" value="/home/wink/android/android-sdk_m5-rc14_linux-x86" />

<property name="outdir" value="bin" />
<property name="outdir-classes" value="${outdir}/classes" />
<property name="android-tools" value="${sdk-folder}/tools" />
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<property name="lib-dir" value="../../lib"/>
<property name="android-lib-dir" value="${lib-dir}/android"/>
<property name="java-lib-dir" value="${lib-dir}/java"/>
<target name="makejar" description="Create a jar file">
<echo>${jar-includes}</echo>
<jar destfile="${jar-file}" includes="${jar-includes}" basedir="${dest-dir}" />
</target>
<target name="makejar-with-srcs" description="Create a jar file with sources">
<copy includeemptydirs="false" todir="${dest-dir}">
<fileset dir="src" includes="${jar-src-includes}"/>
</copy>
<jar destfile="${jar-file}" includes="${jar-src-includes}, ${jar-includes}" basedir="${dest-dir}" />
</target>
<target name="clean-jar">
<delete file="${jar-file}"/>
</target>
<target depends="clean-jar" name="clean">
<delete dir="${outdir}"/>
</target>
<target depends="clean" name="cleanall"/>
<target name="init">
<mkdir dir="${outdir}"/>
<mkdir dir="${java-lib-dir}"/>
</target>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" source="${source}" target="${target}"
srcdir="." destdir="${dest-dir}" bootclasspath="${android-jar}">
<src path="src"/>
<classpath refid="the.classpath"/>
</javac>
</target>
</project>
Show details Hide details

Change log

r81 by w...@saville.com on May 11, 2008   Diff
Add makejar-with-srcs.

Signed-off-by: Wink Saville
<wink@saville.com>
Go to: 
Project members, sign in to write a code review

Older revisions

r72 by w...@saville.com on Feb 13, 2008   Diff
Update to sdk m5
r71 by w...@saville.com on Feb 12, 2008   Diff
Tweak common-build.xml and android-
build.xml

Removed android specific mkdirs.
Moved making android-lib-dir to
...
r70 by w...@saville.com on Feb 11, 2008   Diff
Update build.xml and such.

The makejar was creating a jar file
with all of the
class files in the ${dest-dir}. This
...
All revisions of this file

File info

Size: 1925 bytes, 44 lines
Hosted by Google Code