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