diff options
| author | Piotr Gurgul <pgurgul@google.com> | 2009-08-25 17:19:00 -0700 |
|---|---|---|
| committer | Piotr Gurgul <pgurgul@google.com> | 2009-08-25 17:19:00 -0700 |
| commit | e2c37d4f4438ab467bf9a03acdfb8dd2542b3bf5 (patch) | |
| tree | 66578d8f317e72619a8e143e3bacd70f1645c4b6 /tools/scripts | |
| parent | 68a7a11d24f7f3bf6704d848a5f77ad5b7e2c5bc (diff) | |
| download | android_development-e2c37d4f4438ab467bf9a03acdfb8dd2542b3bf5.tar.gz android_development-e2c37d4f4438ab467bf9a03acdfb8dd2542b3bf5.tar.bz2 android_development-e2c37d4f4438ab467bf9a03acdfb8dd2542b3bf5.zip | |
Ant clean target added
Removes output files created by other targets.
Diffstat (limited to 'tools/scripts')
| -rw-r--r-- | tools/scripts/android_rules.xml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/scripts/android_rules.xml b/tools/scripts/android_rules.xml index 4d41cae3c..4a98700e7 100644 --- a/tools/scripts/android_rules.xml +++ b/tools/scripts/android_rules.xml @@ -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> |
