build.xml
author J. Da Silva <dasilvj@gmail.com>
Thu, 25 Jun 2009 12:13:02 +0200
changeset 305 8948b9ed7c98
parent 158 8189aa05293e
child 359 dff3e3f715d9
permissions -rw-r--r--
Ticket #177 - Fix some compilation problems with i18n
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"?>
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
     2
<project name="Beem" default="help">
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. -->
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
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
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    14
         application-package
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.
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    17
         source-folder
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    18
             the name of the source folder. Default is 'src'.
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    19
         out-folder
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    20
             the name of the output folder. Default is 'bin'.
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
         -->
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    29
    <property file="build.properties"/>
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
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    32
         as ADT. 
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. -->
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    35
    <property file="default.properties"/>
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">
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    40
        <pathelement path="${sdk-location}/tools/lib/anttasks.jar" />
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    41
        <pathelement path="${sdk-location}/tools/lib/sdklib.jar" />
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    42
        <pathelement path="${sdk-location}/tools/lib/androidprefs.jar" />
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    43
        <pathelement path="${sdk-location}/tools/lib/apkbuilder.jar" />
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    44
        <pathelement path="${sdk-location}/tools/lib/jarutils.jar" />
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"
158
8189aa05293e ajout de la clef pour signer
nikita@nikita-rack
parents: 105
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,
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    52
         and import the rules files.
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    53
         To customize the rules, copy/paste them below the task, and disable import by setting
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    54
         the import attribute to false:
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    55
            <setup import="false" />
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    56
         
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    57
         This will ensure that the properties are setup correctly but that your customized
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    58
         targets are used.
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    59
    -->
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    60
    <setup />
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    61
	
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    62
	  <target name="clean"
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    63
		    description="Delete old build and dist directories">
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    64
		<delete verbose="false" dir="${out-folder}"/>
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    65
	    </target>
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    66
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    67
	    <target name="javadoc" depends="aidl"
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    68
	    	description="Build the javadoc">
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    69
		<javadoc sourcepath="${source-folder}" destdir="${javadoc-output}">
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    70
		    <classpath>
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    71
			<fileset dir="${external-libs}" includes="*.jar" />
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    72
		    </classpath>
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    73
		</javadoc>	
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    74
	    </target>
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    75
</project>