Commit Graph

41 Commits

Author SHA1 Message Date
Xavier Ducrohet
0614664583 Make ApkBuilder create filenames supported by older rules.
'ant install' must know the debug apk filename so newer naming scheme breaks
on older rule files (1.5 and earlier).
The fix is to check for the presence of the property naming the debug,
signed, unaligned package. If the property is present, then we use
the new naming scheme ({base}[-{config}]-debug-unaligned.apk), else we use
the old one ({base}-[-{config}]-debug.apk).

Also merge the install/reinstall targets, since 'adb install -r <file>'
works even if the apk was not yet installed.

Change-Id: Id0670610a6539a3f48c955756955f950039c3cd0
2009-08-26 14:58:56 -07:00
Xavier Ducrohet
2328b4f3f5 am 3a92963b: Merge change 22652 into donut
Merge commit '3a92963bf3865330e89b3e7a66b66dd9cfc8792b' into eclair

* commit '3a92963bf3865330e89b3e7a66b66dd9cfc8792b':
  Cleanup SDK packaging: remove alias build files.
2009-08-26 11:41:53 -07:00
Android (Google) Code Review
3a92963bf3 Merge change 22652 into donut
* changes:
  Cleanup SDK packaging: remove alias build files.
2009-08-26 11:26:06 -07:00
Xavier Ducrohet
b908430652 Cleanup SDK packaging: remove alias build files. 2009-08-26 11:23:20 -07:00
Xavier Ducrohet
aa1abe879a Make ApkBuilder create filenames supported by older rules.
'ant install' must know the debug apk filename so newer naming scheme breaks
on older rule files (1.5 and earlier).
The fix is to check for the presence of the property naming the debug,
signed, unaligned package. If the property is present, then we use
the new naming scheme ({base}[-{config}]-debug-unaligned.apk), else we use
the old one ({base}-[-{config}]-debug.apk).

Also merge the install/reinstall targets, since 'adb install -r <file>'
works even if the apk was not yet installed.

DO NOT MERGE
2009-08-26 11:17:04 -07:00
Piotr Gurgul
e2c37d4f44 Ant clean target added
Removes output files created by other targets.
2009-08-25 17:19:00 -07:00
Piotr Gurgul
9fccdf5b88 Alias rules properties names update
android-tools change to android.tools.dir
sdk-folder to sdk.dir
resource-dir to resource.dir
out-package to out.package
Some minor style changes introduced.
2009-08-25 10:59:55 -07:00
Piotr Gurgul
2968aa3020 Ant properties names changed
application-package to application.package
sdk-location to sdk.dir
android-jar to android.jar
android-aidl to android.aidl
in order to make their names compliant with the ant standards and rest
of the property names.
Properties names in alias rules deliberately ommited in this CL.
Some minor style changes introduced.
2009-08-24 23:06:56 -07:00
Piotr Gurgul
424b833edf Updated build.xml template
build.template file has been updated to make it up-to-date with new
android_rules.xml file. Besides, some minor style changes have been introduced.
2009-08-22 14:45:00 -07:00
Piotr Gurgul
832c859693 Refactoring of android_rules.xml file
This is a new CL because of merge conflict in the old one.
Naming changed to 'property.name' style for property names.
Property 'value' attributes changed to 'location' for props containing location.
Suffix '.dir' added to properties' names indicating directories.
'-description' prefix added to intermediate/internal targets.
'*.location' properties removed, as 'location' attribute should take care of
full paths, adding $basedir implicitly, so hopefully there is no need to
define them explicitly.
External property names (taken from other files or hardcoded somewhere)
stayed untouched in this CL.
Some minor improvements to comments in order to make them more consistent.
2009-08-22 13:15:26 -07:00
Xavier Ducrohet
53b3190a47 am e95a86cf: Merge change 22346 into donut
Merge commit 'e95a86cfec18836ddbff149690a13766bfc9ada3' into eclair

* commit 'e95a86cfec18836ddbff149690a13766bfc9ada3':
  Fix target for ApiDemos (API is now 4)
2009-08-22 07:44:12 -07:00
Xavier Ducrohet
c86903288c Fix target for ApiDemos (API is now 4)
Also add some progress output to the ant rules.
2009-08-21 15:59:02 -07:00
Xavier Ducrohet
a4876df288 Update some version number for Eclair SDK. 2009-08-18 17:34:01 -07:00
Android (Google) Code Review
afd9ae8e9b Merge change 21211 into donut
* changes:
  Make the Ant script sign and zipalign release builds.
2009-08-13 21:14:51 -07:00
Xavier Ducrohet
954e80e5ca Make the Ant script sign and zipalign release builds.
It will also align debug builds.
BUG: 2052744
2009-08-13 21:13:53 -07:00
Xavier Ducrohet
a1adc4903e Update the version of the tools/docs/platforms 2009-08-13 18:13:33 -07:00
Xavier Ducrohet
5b13066ef1 On project creation, put the app package in build.properties
This enabled 'ant uninstall' to work.
Also, add an error message to the uninstall rules in case the property
is not defined.

BUG: 2050451
2009-08-13 11:18:28 -07:00
Android (Google) Code Review
e277877541 Merge change 20426 into donut
* changes:
  Improve the comments in build.xml to help people customize their build.
2009-08-07 16:54:34 -07:00
Xavier Ducrohet
3c1404268a Fix template for java test file to not use deprecated class.
bug: http://code.google.com/p/android/issues/detail?id=3350
2009-08-07 12:05:09 -07:00
Xavier Ducrohet
74dca0efdc Improve the comments in build.xml to help people customize their build. 2009-08-07 10:43:47 -07:00
Xavier Ducrohet
b519db4eed Add notice file to platform folder. 2009-07-28 16:19:23 -07:00
Xavier Ducrohet
f74c1d2fb7 Add default version files into the SDK for docs/tools/platforms. 2009-07-23 18:25:41 -07:00
Xavier Ducrohet
a8721e7040 Move ADT/DDMS plug-ins to 0.9.2 2009-07-22 18:37:33 -07:00
Xavier Ducrohet
a399a681d5 Add support for add-on based on preview of platforms. 2009-07-22 18:12:30 -07:00
Dan Bornstein
8fe57fa186 Remove an old backup file. 2009-06-10 16:08:38 -07:00
Xavier Ducrohet
55b0512f2b Fix the uninstall target in the Ant build script.
the uninstall parameter is a value (the application package), but the Ant
task was incorrectly using "path" for the argument.
2009-05-26 12:25:28 -07:00
Raphael Moll
01c1ad4af5 AI 147177: am: CL 147175 ADT #1801951: "adb.exe" misses the dot in android_rules.xml
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 147177
2009-04-21 13:07:50 -07:00
Xavier Ducrohet
aa3b63abf4 Automated import from //branches/donutburger/...@141594,141594 2009-03-24 20:36:19 -07:00
The Android Open Source Project
6ffae015b4 auto import from //branches/cupcake_rel/...@140373 2009-03-18 17:39:43 -07:00
The Android Open Source Project
59008ebc2c auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:19 -07:00
The Android Open Source Project
52d4c30ca5 auto import from //depot/cupcake/@135843 2009-03-03 19:29:09 -08:00
The Android Open Source Project
d4aee0c0ca auto import from //depot/cupcake/@135843 2009-03-03 18:28:16 -08:00
The Android Open Source Project
74a996a2c7 auto import from //branches/cupcake/...@132569 2009-02-20 07:38:28 -08:00
The Android Open Source Project
ff4b5f241f auto import from //branches/cupcake/...@132276 2009-02-19 10:57:29 -08:00
The Android Open Source Project
87a88c4f03 auto import from //branches/cupcake/...@131421 2009-02-13 12:57:48 -08:00
The Android Open Source Project
e3c5766074 auto import from //branches/cupcake/...@130745 2009-02-10 15:43:58 -08:00
The Android Open Source Project
7b53e39377 auto import from //branches/cupcake/...@127101 2009-01-20 14:03:55 -08:00
The Android Open Source Project
b8d704a517 auto import from //branches/cupcake/...@126645 2009-01-15 16:12:07 -08:00
The Android Open Source Project
95cf464c5a auto import from //branches/cupcake/...@125939 2009-01-09 17:51:19 -08:00
The Android Open Source Project
e943f2fd8e Code drop from //branches/cupcake/...@124589 2008-12-17 18:04:04 -08:00
The Android Open Source Project
5c11852110 Initial Contribution 2008-10-21 07:00:00 -07:00