build.xml
author Vincent V. <marseille@beem-project.com>
Thu, 16 Aug 2012 11:52:52 +0200
changeset 949 6652d425ccca
parent 930 ea7b1aeb5980
permissions -rw-r--r--
Bug resolve on the status update
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"?>
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
     2
<project name="Beem" default="help">
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.
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
     5
         It contains the path to the SDK. It should *NOT* be checked into
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
     6
         Version 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
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
     9
    <!-- The ant.properties file can be created by you. It is only edited by the
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    10
         'android' tool to add properties to it.
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    11
         This is the place to change some Ant specific build properties.
105
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
         source.dir
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    15
             The name of the source directory. Default is 'src'.
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    16
         out.dir
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    17
             The name of the output directory. Default is 'bin'.
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    18
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    19
         For other overridable properties, look at the beginning of the rules
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    20
         files in the SDK, at tools/ant/build.xml
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    21
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    22
         Properties related to the SDK location or the project target should
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    23
         be updated using the 'android' tool with the 'update' action.
105
c6e4728ac9f7 Passage sous cupcake :)
Da Risk <darisk972@gmail.com>
parents: 54
diff changeset
    24
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    25
         This file is an integral part of the build system for your
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    26
         application and should be checked into Version Control Systems.
105
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
         -->
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    29
    <property file="ant.properties" />
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    30
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    31
    <!-- The project.properties file is created and updated by the 'android'
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    32
         tool, as well as ADT.
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    33
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    34
         This contains project specific properties such as project target, and library
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    35
         dependencies. Lower level build properties are stored in ant.properties
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    36
         (or in .classpath for Eclipse projects).
538
d0745275aed8 Fix build.xml
Da Risk <darisk972@gmail.com>
parents: 531
diff changeset
    37
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    38
         This file is an integral part of the build system for your
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    39
         application and should be checked into Version Control Systems. -->
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    40
    <loadproperties srcFile="project.properties" />
531
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    41
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    42
    <property name="javadoc.output" value="doc/javadoc" />
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    43
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    44
    <!-- quick check on sdk.dir -->
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    45
    <fail
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    46
            message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    47
            unless="sdk.dir"
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    48
    />
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    49
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    50
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    51
<!-- extension targets. Uncomment the ones where you want to do custom work
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    52
     in between standard targets -->
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    53
<!--
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    54
    <target name="-pre-build">
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    55
    </target>
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    56
    <target name="-pre-compile">
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    57
    </target>
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    58
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    59
    /* This is typically used for code obfuscation.
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    60
       Compiled code location: ${out.classes.absolute.dir}
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    61
       If this is not done in place, override ${out.dex.input.absolute.dir} */
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    62
    <target name="-post-compile">
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    63
    </target>
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    64
-->
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    65
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    66
    <target name="-pre-clean" >
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    67
        <delete dir="${javadoc.output}" verbose="${verbose}" />
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    68
    </target>
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    69
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    70
    <!-- Import the actual build file.
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    71
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    72
         To customize existing targets, there are two options:
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    73
         - Customize only one target:
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    74
             - copy/paste the target into this file, *before* the
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    75
               <import> task.
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    76
             - customize it to your needs.
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    77
         - Customize the whole content of build.xml
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    78
             - copy/paste the content of the rules files (minus the top node)
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    79
               into this file, replacing the <import> task.
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    80
             - customize to your needs.
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    81
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    82
         ***********************
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    83
         ****** IMPORTANT ******
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    84
         ***********************
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    85
         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    86
         in order to avoid having your file be overridden by tools such as "android update project"
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    87
    -->
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    88
    <!-- version-tag: custom -->
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    89
    <import file="${sdk.dir}/tools/ant/build.xml" />
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    90
531
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    91
    <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
    92
930
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    93
    <target name="javadoc" depends="-setup, -build-setup, -code-gen">
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    94
	<javadoc author="true" destdir="${javadoc.output}" doctitle="Beem javadoc" source="1.6" use="true" version="false" bootclasspathref="android.target.classpath">
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    95
	    <sourcepath>
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    96
	    	<pathelement location="${source.dir}" />
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    97
	    	<pathelement location="${gen.absolute.dir}" />
ea7b1aeb5980 update build.xml
Nikita Kozlov <nikita@elyzion.net>
parents: 816
diff changeset
    98
	    </sourcepath>
531
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
    99
	    <classpath>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   100
		<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
   101
	    </classpath>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   102
	    <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
   103
	    <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
   104
	    <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
   105
	    <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
   106
	    <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
   107
		<param name="-inferrel"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   108
		<param name="-inferdep"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   109
		<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
   110
		<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
   111
		<param name="-qualify"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   112
		<param name="-types"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   113
		<param name="-visibility"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   114
		<param name="-postfixpackage"/>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   115
		<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
   116
		<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
   117
	    </doclet>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   118
	</javadoc>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   119
    </target>
e344b51f93ff Merge the javadoc ant build script in the build.xml
Da Risk <darisk972@gmail.com>
parents: 359
diff changeset
   120
0
ea84f930b04a Initial import
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   121
</project>