1 <?xml version="1.0" encoding="UTF-8"?> |
1 <?xml version="1.0" encoding="UTF-8"?> |
2 <project name="Beem"> |
2 <project name="Login" default="help"> |
3 |
3 |
4 <!-- The local.properties file is created and updated by the 'android' tool. |
4 <!-- The local.properties file is created and updated by the 'android' tool. |
5 It contain the path to the SDK. It should *NOT* be checked in in Version |
5 It contains the path to the SDK. It should *NOT* be checked into |
6 Control Systems. --> |
6 Version Control Systems. --> |
7 <property file="local.properties" /> |
7 <loadproperties srcFile="local.properties" /> |
8 |
8 |
9 <!-- The build.properties file can be created by you and is never touched |
9 <!-- The ant.properties file can be created by you. It is only edited by the |
10 by the 'android' tool. This is the place to change some of the default property values |
10 'android' tool to add properties to it. |
11 used by the Ant rules. |
11 This is the place to change some Ant specific build properties. |
12 Here are some properties you may want to change/update: |
12 Here are some properties you may want to change/update: |
13 |
13 |
14 application.package |
|
15 the name of your application package as defined in the manifest. Used by the |
|
16 'uninstall' rule. |
|
17 source.dir |
14 source.dir |
18 the name of the source directory. Default is 'src'. |
15 The name of the source directory. Default is 'src'. |
19 out.dir |
16 out.dir |
20 the name of the output directory. Default is 'bin'. |
17 The name of the output directory. Default is 'bin'. |
21 |
18 |
22 Properties related to the SDK location or the project target should be updated |
19 For other overridable properties, look at the beginning of the rules |
23 using the 'android' tool with the 'update' action. |
20 files in the SDK, at tools/ant/build.xml |
24 |
21 |
25 This file is an integral part of the build system for your application and |
22 Properties related to the SDK location or the project target should |
26 should be checked in in Version Control Systems. |
23 be updated using the 'android' tool with the 'update' action. |
|
24 |
|
25 This file is an integral part of the build system for your |
|
26 application and should be checked into Version Control Systems. |
27 |
27 |
28 --> |
28 --> |
29 <property file="build.properties" /> |
29 <property file="ant.properties" /> |
30 |
30 |
31 <!-- The default.properties file is created and updated by the 'android' tool, as well |
31 <!-- The project.properties file is created and updated by the 'android' |
32 as ADT. |
32 tool, as well as ADT. |
33 This file is an integral part of the build system for your application and |
|
34 should be checked in in Version Control Systems. --> |
|
35 <property file="default.properties" /> |
|
36 |
33 |
37 <!-- Custom Android task to deal with the project target, and import the proper rules. |
34 This contains project specific properties such as project target, and library |
38 This requires ant 1.6.0 or above. --> |
35 dependencies. Lower level build properties are stored in ant.properties |
39 <path id="android.antlibs"> |
36 (or in .classpath for Eclipse projects). |
40 <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" /> |
|
41 <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" /> |
|
42 <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" /> |
|
43 <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" /> |
|
44 <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" /> |
|
45 </path> |
|
46 |
37 |
47 <taskdef name="setup" |
38 This file is an integral part of the build system for your |
48 classname="com.android.ant.SetupTask" |
39 application and should be checked into Version Control Systems. --> |
49 classpathref="android.antlibs" /> |
40 <loadproperties srcFile="project.properties" /> |
50 |
41 |
51 <!-- Execute the Android Setup task that will setup some properties specific to the target, |
42 <!-- quick check on sdk.dir --> |
52 and import the build rules files. |
43 <fail |
|
44 message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'" |
|
45 unless="sdk.dir" |
|
46 /> |
53 |
47 |
54 The rules file is imported from |
|
55 <SDK>/platforms/<target_platform>/templates/android_rules.xml |
|
56 |
48 |
57 To customize some build steps for your project: |
49 <!-- extension targets. Uncomment the ones where you want to do custom work |
58 - copy the content of the main node <project> from android_rules.xml |
50 in between standard targets --> |
59 - paste it in this build.xml below the <setup /> task. |
51 <!-- |
60 - disable the import by changing the setup task below to <setup import="false" /> |
52 <target name="-pre-build"> |
61 |
53 </target> |
62 This will ensure that the properties are setup correctly but that your customized |
54 <target name="-pre-compile"> |
63 build steps are used. |
|
64 --> |
|
65 <setup /> |
|
66 |
|
67 <property name="javadoc.output" value="doc/javadoc" /> |
|
68 <property name="external.libs.dir" value="libs" /> |
|
69 |
|
70 <target name="clean" |
|
71 description="Delete old build and dist directories"> |
|
72 <delete verbose="false" dir="${out.dir}"/> |
|
73 <delete verbose="false" dir="gen"/> |
|
74 </target> |
55 </target> |
75 |
56 |
76 <target name="all" depends="clean,debug,javadoc"/> |
57 /* This is typically used for code obfuscation. |
|
58 Compiled code location: ${out.classes.absolute.dir} |
|
59 If this is not done in place, override ${out.dex.input.absolute.dir} */ |
|
60 <target name="-post-compile"> |
|
61 </target> |
|
62 --> |
77 |
63 |
78 <target name="javadoc"> |
64 <!-- Import the actual build file. |
79 <javadoc author="true" destdir="${javadoc.output}" doctitle="Beem javadoc" source="1.6" sourcepath="${source.dir}" use="true" version="false" bootclasspathref="android.target.classpath"> |
65 |
80 <classpath> |
66 To customize existing targets, there are two options: |
81 <fileset dir="${external.libs.dir}" includes="*.jar" /> |
67 - Customize only one target: |
82 </classpath> |
68 - copy/paste the target into this file, *before* the |
83 <link href="http://developer.android.com/reference" offline="true" packageListLoc="doc/android"/> |
69 <import> task. |
84 <link href="http://www.igniterealtime.org/builds/smack/docs/latest/javadoc" offline="true" packageListLoc="doc/smack"/> |
70 - customize it to your needs. |
85 <doctitle><![CDATA[<h1>Beem-project.com</h1>]]></doctitle> |
71 - Customize the whole content of build.xml |
86 <bottom><![CDATA[<i>Copyright © 2009 Beem-project.com. All Rights Reserved.</i>]]></bottom> |
72 - copy/paste the content of the rules files (minus the top node) |
87 <doclet name="org.umlgraph.doclet.UmlGraphDoc" path="doc/UmlGraph.jar"> |
73 into this file, replacing the <import> task. |
88 <param name="-inferrel"/> |
74 - customize to your needs. |
89 <param name="-inferdep"/> |
75 |
90 <param name="-hide" value="java.*"/> |
76 *********************** |
91 <param name="-collpackages" value="java.util.*"/> |
77 ****** IMPORTANT ****** |
92 <param name="-qualify"/> |
78 *********************** |
93 <param name="-types"/> |
79 In all cases you must update the value of version-tag below to read 'custom' instead of an integer, |
94 <param name="-visibility"/> |
80 in order to avoid having your file be overridden by tools such as "android update project" |
95 <param name="-postfixpackage"/> |
81 --> |
96 <param name="-nodefontsize" value="9"/> |
82 <!-- version-tag: 1 --> |
97 <param name="-nodefontpackagesize" value="7"/> |
83 <import file="${sdk.dir}/tools/ant/build.xml" /> |
98 </doclet> |
|
99 </javadoc> |
|
100 </target> |
|
101 |
84 |
102 </project> |
85 </project> |