Merge change 22697 into eclair

* changes:
  Ant clean target added
This commit is contained in:
Android (Google) Code Review
2009-08-25 17:27:37 -07:00

View File

@@ -252,7 +252,6 @@
</exec>
</target>
<!-- Uninstalls the package from the default emulator/device -->
<target name="-uninstall-check">
<condition property="uninstall.run">
<isset property="application.package" />
@@ -263,6 +262,7 @@
<echo>Unable to run 'ant uninstall', application.package is not defined in build.properties</echo>
</target>
<!-- Uninstalls the package from the default emulator/device -->
<target name="uninstall" depends="-uninstall-error" if="uninstall.run" description="Uninstalls the application from a running emulator or device.">
<echo>Uninstalling ${application.package} from the default emulator or device...</echo>
<exec executable="${adb}" failonerror="true">
@@ -271,17 +271,23 @@
</exec>
</target>
<target name="clean" description="Removes output files created by other targets.">
<delete dir="${out.dir}" />
<delete dir="${gen.dir}" />
</target>
<target name="help">
<!-- displays starts at col 13
|13 80| -->
<echo>Android Ant Build. Available targets:</echo>
<echo> help: Displays this help.</echo>
<echo> clean: Removes output files created by other targets.</echo>
<echo> compile: Compiles project's .java files into .class files.</echo>
<echo> debug: Builds the application and signs it with a debug key.</echo>
<echo> release: Builds the application. The generated apk file must be</echo>
<echo> signed before it is published.</echo>
<echo> install: Installs the debug package onto a running emulator or</echo>
<echo> device. This can only be used if the application has </echo>
<echo> device. This can only be used if the application has</echo>
<echo> not yet been installed.</echo>
<echo> reinstall: Installs the debug package on a running emulator or</echo>
<echo> device that already has the application.</echo>