build.xml
changeset 538 d0745275aed8
parent 531 e344b51f93ff
child 613 58b8abc8719b
equal deleted inserted replaced
537:f9d7d3876e58 538:d0745275aed8
     2 <project name="Beem" default="help">
     2 <project name="Beem" 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 contain the path to the SDK. It should *NOT* be checked in in Version
     6          Control Systems. -->
     6          Control Systems. -->
     7     <property file="local.properties"/>
     7     <property file="local.properties" />
     8 
     8 
     9     <!-- The build.properties file can be created by you and is never touched
     9     <!-- The build.properties file can be created by you and is never touched
    10          by the 'android' tool. This is the place to change some of the default property values
    10          by the 'android' tool. This is the place to change some of the default property values
    11          used by the Ant rules.
    11          used by the Ant rules.
    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
    14          application.package
    15              the name of your application package as defined in the manifest. Used by the
    15              the name of your application package as defined in the manifest. Used by the
    16              'uninstall' rule.
    16              'uninstall' rule.
    17          source-folder
    17          source.dir
    18              the name of the source folder. Default is 'src'.
    18              the name of the source directory. Default is 'src'.
    19          out-folder
    19          out.dir
    20              the name of the output folder. Default is 'bin'.
    20              the name of the output directory. Default is 'bin'.
    21 
    21 
    22          Properties related to the SDK location or the project target should be updated
    22          Properties related to the SDK location or the project target should be updated
    23           using the 'android' tool with the 'update' action.
    23           using the 'android' tool with the 'update' action.
    24 
    24 
    25          This file is an integral part of the build system for your application and
    25          This file is an integral part of the build system for your application and
    26          should be checked in in Version Control Systems.
    26          should be checked in in Version Control Systems.
    27 
    27 
    28          -->
    28          -->
    29     <property file="build.properties"/>
    29     <property file="build.properties" />
    30 
    30 
    31     <!-- The default.properties file is created and updated by the 'android' tool, as well
    31     <!-- The default.properties file is created and updated by the 'android' tool, as well
    32          as ADT. 
    32          as ADT.
    33          This file is an integral part of the build system for your application and
    33          This file is an integral part of the build system for your application and
    34          should be checked in in Version Control Systems. -->
    34          should be checked in in Version Control Systems. -->
    35     <property file="default.properties"/>
    35     <property file="default.properties" />
    36 
    36 
    37     <!-- Custom Android task to deal with the project target, and import the proper rules.
    37     <!-- Custom Android task to deal with the project target, and import the proper rules.
    38          This requires ant 1.6.0 or above. -->
    38          This requires ant 1.6.0 or above. -->
    39     <path id="android.antlibs">
    39     <path id="android.antlibs">
    40         <pathelement path="${sdk-location}/tools/lib/anttasks.jar" />
    40         <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
    41         <pathelement path="${sdk-location}/tools/lib/sdklib.jar" />
    41         <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
    42         <pathelement path="${sdk-location}/tools/lib/androidprefs.jar" />
    42         <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
    43         <pathelement path="${sdk-location}/tools/lib/apkbuilder.jar" />
    43         <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
    44         <pathelement path="${sdk-location}/tools/lib/jarutils.jar" />
    44         <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
    45     </path>
    45     </path>
    46 
    46 
    47     <taskdef name="setup"
    47     <taskdef name="setup"
    48         classname="com.android.ant.SetupTask"
    48         classname="com.android.ant.SetupTask"
    49         classpathref="android.antlibs"/>
    49         classpathref="android.antlibs" />
    50 
    50 
    51     <!-- Execute the Android Setup task that will setup some properties specific to the target,
    51     <!-- Execute the Android Setup task that will setup some properties specific to the target,
    52          and import the rules files.
    52          and import the build rules files.
    53          To customize the rules, copy/paste them below the task, and disable import by setting
    53 
    54          the import attribute to false:
    54          The rules file is imported from
    55             <setup import="false" />
    55             <SDK>/platforms/<target_platform>/templates/android_rules.xml
    56          
    56 
       
    57          To customize some build steps for your project:
       
    58          - copy the content of the main node <project> from android_rules.xml
       
    59          - paste it in this build.xml below the <setup /> task.
       
    60          - disable the import by changing the setup task below to <setup import="false" />
       
    61 
    57          This will ensure that the properties are setup correctly but that your customized
    62          This will ensure that the properties are setup correctly but that your customized
    58          targets are used.
    63          build steps are used.
    59     -->
    64     -->
    60     <setup />
    65     <setup />
    61 
    66 
    62     <property name="out.dir" value="bin" />
       
    63     <property name="source.dir" value="src" />
       
    64     <property name="javadoc.output" value="doc/javadoc" />
    67     <property name="javadoc.output" value="doc/javadoc" />
    65     <property name="external.libs.dir" value="libs" />
    68     <property name="external.libs.dir" value="libs" />
    66 
    69 
    67     <target name="clean"
    70     <target name="clean"
    68 	description="Delete old build and dist directories">
    71 	description="Delete old build and dist directories">