aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add support for external jar files in library project.Xavier Ducrohet2010-02-101-6/+30
| | | | | | | | | | Bug: 2294012 Change-Id: I88bc99d9c3ac4135aac4c5af7995aca25bf5c4ee
* | Add support for library project in the Ant build system.Xavier Ducrohet2010-02-104-100/+369
|/ | | | | | | | | | | | | | | | new build rules file for library only. Should probably extract the parts that are common to this and the default rules file. SetupTask now sets up some properties and Path reference based on the libraries. They are used by: - aapt task (now also used for the generation of R.java) which use all the res folders of the main project and the libraries, and generate an R class for the project and the libraries. - javac which compiles the src/ folders of the libraries. Bug: 2294012 Change-Id: Ie550dcf0ba8ea57696ebb1c2a61d4c6d73307bdf
* Add support for the -0 aapt option in the custom Ant task for aapt.Xavier Ducrohet2010-01-261-2/+51
| | | | | Bug: 2398432 Change-Id: I2df2b8638ffaf2a5da87ff2bf17efcfb5efdff70
* Error when building application with package that has a single segment.Xavier Ducrohet2010-01-221-0/+15
| | | | | Bug: 2261147 Change-Id: I92660ca99eaa7e9d180402683e5c9be0f3dc28d4
* Add support for packaging gdbserver in the apk in Ant.Xavier Ducrohet2010-01-211-1/+11
| | | | | | | | This must only be done in debug so there's a new flag to detect debug mode. Support for this is added to the build script, the Ant task and ApkBuilder itself. Change-Id: Iaebdc60cc3e8fa08c8cb75c885a6a0db556bfd86
* Fix issue with absolute path in -nf parameter of apkbuilder.Xavier Ducrohet2010-01-201-10/+4
| | | | | Bug: 1607862 Change-Id: I7fecc99fe7319f566d2d78ccc82c73d86067db51
* Update the project creation (from the command line):Xavier Ducrohet2009-09-273-97/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make the distinction between the activity class name, manifest entry, fully-qualified name, and tested activity for the template place-holders. Test activity names now directly contain the full name (including the "Test" prefix) instead of the template adding it. This is required by the new 'create test-project' - New action: create test-project This requires a path to the main project. It reads the package, activity name and target from the main project. The activity is read from the manifest and can be in a more complex form than previously expected (for instance .subpackage.MyClass, instead of simply MyClass). This is what required the re-work the activity related template place holders. Options: -m --main Location path of the project to test, relative to the new project [required] -n --name Project name -p --path Location path of the new project [required] Example: for 2 projects MyProject and MyTests located in the same folder, calling from their parent folder. android create test-project -p MyTests -m ../MyProject - build.properties now only gets application.package for older targets as the new one get it directly from XPath - Remove AndroidXPathFactory from the anttasks project as it was already in sdklib which is a dependency. - Removed IntelliJ templates for the SDK. We haven't supported them for a while, and now that IntelliJ has built-in support for Android, it's not that useful anymore. While there is the command line parameters for 'update test-project' it's not yet implemented. Change-Id: I663d4cb7f439bb2abfe866f893e58f4d13aff975
* Add warning on mismatch minSdkVersion.Xavier Ducrohet2009-09-231-9/+49
| | | | | | | | | | This is for both Ant and ADT. For Ant, also added a check for non-integer values when the platform is not a preview. BUG:2118374 Change-Id: Ic8ec533d66a31d9e4b51c9c38b5eaab97bca7414
* Add an XPath Ant task to be used in the android_rules.xml file.Xavier Ducrohet2009-09-212-0/+169
| | | | | | | | | | | | | | This task is designed to run XPath expression targetting Android XML files. It will handle the Android namespace with the 'android' prefix, and store the result of the XPath into a property. Change-Id: I9094f5661d5e1ef86553ee1c54bdeca62366e0cd classname: XPathTask classpath: anttasks.jar, sdklib.jar Usage: <xpathtask input="path/of/file/to/read" output="name.of.property.to.write" expression="/xpath/expression/to/evaluate" />
* Add <jarfile> tag to ApkBuilder ant taskAndroid (Google) Code Review2009-09-141-3/+18
| | | | | | | ApkBuilder ant task accepts now the new tag - <jarfile>, used for passing emma_device.jar to ApkBuilder. Change-Id: I1757d265609406bc06da370ab0204018a4c8fc4d
* Add ant-based code coverage support to Android SDKPiotr Gurgul2009-09-091-3/+15
| | | | | | | | | | | | | | | Target 'run-tests' launches all the unit tests against the tested project. Target 'coverage' emma-instruments the tested project's classes, runs the tests against instrumented classes, collects code coverage data and extracts it to human-readable form as report.html. android_test_rules.xml contain additional rules for test projects. Test projects are auto-recognized by presence of the tested.project.dir property, which will be auto-generated for tests projects. Temporarily, please add this property manually to the build.properties file. Current version is mainly tested with default, android generated test projects. This version includes also fixing relative to absolute paths for properties which are most likely to be changed by user in external property file.
* Update apkbuilder to support new property namesPiotr Gurgul2009-09-011-2/+3
| | | | | | out.debug.unaligned.package property name has not been updated in ApkBuilderTask.java and that is why ApkBuilder misbehaved BUG: 2090896
* Make ApkBuilder create filenames supported by older rules.Xavier Ducrohet2009-08-261-4/+24
| | | | | | | | | | | | | | '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
* Make sure older rules files can find the SDK Location.Xavier Ducrohet2009-08-251-1/+6
| | | | Change-Id: Idb2463f07c233015927181e79955ae71e10dcb19
* Move from arbitrary resource filters to fix onesXavier Ducrohet2009-08-252-35/+40
| | | | | | | | | | Resource filters are used when generating additional APK containing only specific resources. The previous UI allowed for any type of filters, but we are moving to a simpler way with fixed filters. The first one is the density. Selecting the filter will generate 4 APKs per application: default (all resources), hdpi (only hdpi/nodpi and default resources), mdpi, ldpi.
* Ant properties names legacy supportPiotr Gurgul2009-08-251-3/+21
| | | | | Support for old property names in SetupTask.java, in order to maintain compatibility with Donut and earlier.
* Ant properties names changedPiotr Gurgul2009-08-241-2/+2
| | | | | | | | | | | 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.
* Make the Ant script sign and zipalign release builds.Xavier Ducrohet2009-08-131-6/+24
| | | | | It will also align debug builds. BUG: 2052744
* Add support for add-on based on preview of platforms.Xavier Ducrohet2009-07-221-2/+5
|
* Refactored AndroidXPathFactory into sdklib.Xavier Ducrohet2009-07-221-30/+4
|
* Enforce codename value for minSdkVersion in the Ant build.Xavier Ducrohet2009-07-211-0/+60
| | | | | If the Ant project is targetting a preview platform, the manifest must declare minSdkVersion to be the platform codename.
* Add support for preview versions of platforms.Xavier Ducrohet2009-07-201-17/+17
| | | | | | | | | | | | | | | | | ro.build.version.codename is a new property indicating whether a platform is in its release form (value = REL) or in development (value = dev branch name such as Donut). When the codename indicates a development/preview version then the API level must be ignored and this codename is used as a unique identifier of the platform. IAndroidTarget has been changed to return an instance of a new class AndroidVersion instead of the api level directly. This class helps deals with the logic of comparing version from targets or devices. This change impacts all of the sdk manager to deal with targets identified by codename instead of api level. This in turn impacts everything that relies on the sdkmanager: ADT (build, launch, project creation), the AVD manager, the SDK updater.
* Update the API of ApkBuilder to make it clearer what is stable and what isn't.Xavier Ducrohet2009-06-181-40/+44
|
* Move some classes that have non ready APIs to internal packagesXavier Ducrohet2009-05-133-7/+7
| | | | | - com.android.sdklib.avd -> com.android.sdklib.internal.avd - com.android.sdklib.project -> com.android.sdklib.internal.project
* Split development/.gitignore into separate gitignore files per project.Raphael2009-04-261-0/+2
| | | | | Added missing gitignore for layoutlib_utils. Changed mkstubs build path to use prebuilt/asm-3.1 instead of asm-3.1 project.
* Automated import from //branches/donutburger/...@141594,141594Xavier Ducrohet2009-03-241-4/+7
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-037-0/+791
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-037-791/+0
|
* auto import from //branches/cupcake/...@132569The Android Open Source Project2009-02-205-25/+551
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-4/+14
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-8/+43
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-095-0/+220