build.xml
author Nikita Kozlov <nikita@mbdsys.com>
Fri, 15 Apr 2011 19:02:37 +0200
changeset 896 244d0cb7d8cb
parent 826 2116f901307e
permissions -rwxr-xr-x
updating bounty
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
613
58b8abc8719b checkstyle
nikita@nikita-laptop
parents: 538
diff changeset
     2
<project name="Beem">
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
     3
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
     4
    <!-- The local.properties file is created and updated by the 'android' tool.
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
     5
         It contain the path to the SDK. It should *NOT* be checked in in Version
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
     6
         Control Systems. -->
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
     7
    <property file="local.properties" />
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     8
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     9
    <!-- The build.properties file can be created by you and is never touched
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    10
         by the 'android' tool. This is the place to change some of the default property values
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    11
         used by the Ant rules.
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    12
         Here are some properties you may want to change/update:
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    13
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    14
         application.package
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    15
             the name of your application package as defined in the manifest. Used by the
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    16
             'uninstall' rule.
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    17
         source.dir
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    18
             the name of the source directory. Default is 'src'.
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    19
         out.dir
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    20
             the name of the output directory. Default is 'bin'.
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    21
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    22
         Properties related to the SDK location or the project target should be updated
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    23
          using the 'android' tool with the 'update' action.
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    24
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    25
         This file is an integral part of the build system for your application and
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    26
         should be checked in in Version Control Systems.
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    27
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    28
         -->
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    29
    <property file="build.properties" />
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    30
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    31
    <!-- The default.properties file is created and updated by the 'android' tool, as well
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    32
         as ADT.
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    33
         This file is an integral part of the build system for your application and
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    34
         should be checked in in Version Control Systems. -->
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    35
    <property file="default.properties" />
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    36
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    37
    <!-- Custom Android task to deal with the project target, and import the proper rules.
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    38
         This requires ant 1.6.0 or above. -->
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    39
    <path id="android.antlibs">
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    40
        <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    41
        <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    42
        <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    43
        <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    44
        <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    45
    </path>
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    46
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    47
    <taskdef name="setup"
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    48
        classname="com.android.ant.SetupTask"
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    49
        classpathref="android.antlibs" />
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    50
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    51
    <!-- Execute the Android Setup task that will setup some properties specific to the target,
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    52
         and import the build rules files.
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    53
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    54
         The rules file is imported from
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    55
            <SDK>/platforms/<target_platform>/templates/android_rules.xml
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    56
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    57
         To customize some build steps for your project:
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    58
         - copy the content of the main node <project> from android_rules.xml
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    59
         - paste it in this build.xml below the <setup /> task.
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    60
         - disable the import by changing the setup task below to <setup import="false" />
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    61
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    62
         This will ensure that the properties are setup correctly but that your customized
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    63
         build steps are used.
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    64
    -->
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    65
    <setup />
531
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    66
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    67
    <property name="javadoc.output" value="doc/javadoc" />
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    68
    <property name="external.libs.dir" value="libs" />
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    69
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    70
    <target name="clean"
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    71
	description="Delete old build and dist directories">
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    72
	<delete verbose="false" dir="${out.dir}"/>
676
ed7f90128426 Do some docs
Da Risk <darisk972@gmail.com>
parents: 613
diff changeset
    73
	<delete verbose="false" dir="gen"/>
531
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    74
    </target>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    75
826
2116f901307e fix build order in the target "all"
Nikita Kozlov <nikita@mbdsys.com>
parents: 825
diff changeset
    76
    <target name="all" depends="clean,debug,javadoc"/>
825
0f18c9828716 adding a "all" target in build.xml which depends of debug,javadoc and clean (for the nightlybuild)
Nikita Kozlov <nikita@mbdsys.com>
parents: 676
diff changeset
    77
531
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    78
    <target name="javadoc">
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    79
	<javadoc author="true" destdir="${javadoc.output}" doctitle="Beem javadoc" source="1.6" sourcepath="${source.dir}" use="true" version="false" bootclasspathref="android.target.classpath">
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    80
	    <classpath>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    81
		<fileset dir="${external.libs.dir}" includes="*.jar" />
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    82
	    </classpath>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    83
	    <link href="http://developer.android.com/reference" offline="true" packageListLoc="doc/android"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    84
	    <link href="http://www.igniterealtime.org/builds/smack/docs/latest/javadoc" offline="true" packageListLoc="doc/smack"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    85
	    <doctitle><![CDATA[<h1>Beem-project.com</h1>]]></doctitle>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    86
	    <bottom><![CDATA[<i>Copyright &#169; 2009 Beem-project.com. All Rights Reserved.</i>]]></bottom>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    87
	    <doclet name="org.umlgraph.doclet.UmlGraphDoc" path="doc/UmlGraph.jar">
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    88
		<param name="-inferrel"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    89
		<param name="-inferdep"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    90
		<param name="-hide" value="java.*"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    91
		<param name="-collpackages" value="java.util.*"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    92
		<param name="-qualify"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    93
		<param name="-types"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    94
		<param name="-visibility"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    95
		<param name="-postfixpackage"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    96
		<param name="-nodefontsize" value="9"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    97
		<param name="-nodefontpackagesize" value="7"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    98
	    </doclet>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    99
	</javadoc>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   100
    </target>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   101
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   102
</project>