aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks
Commit message (Collapse)AuthorAgeFilesLines
...
* Move ant.prop to sdk.prop and up a folder.Xavier Ducrohet2010-03-111-4/+14
| | | | | | | | | | | | | | | | this file is meant to have general sdk properties, not just Ant ones. Also separated the library support from the Ant build version. It's clearer whether or not libraries are supported, and it's not just tied to Ant anyway (ADT needs to know as well). Finally use that new property to do checks on library support in both the custom Ant tasks and ADT. Depends on a CL in development.git (sdk.atree change). Change-Id: I77d229ed3fd60f0468b1d3d31f7cf147b03a32fb
* detect too recent version of the ant rules and display an error.Xavier Ducrohet2010-02-241-1/+45
| | | | | | | | This is to solve the case where a user somehow update a platform component but not the tools. the custom Ant tasks will detect the revision of the ant rules and fail if it's too recent. Change-Id: Ica91a500ca980f9ed5f3a7c4fb09b85a63b8037b
* Move sdklib.internal.io.* into sdklib.ioXavier Ducrohet2010-02-241-1/+1
| | | | | | | Some other "public" API (AndroidManifest) depends on it so it should be public too. Change-Id: I88cd299bbd60df8f4dac5fe029bb52c0c0c2f16c
* Improve the IAbstractFile/Folder classes.Xavier Ducrohet2010-02-231-2/+2
| | | | | | | | - Add setContent to the file class - add listMembers to the folder class - extend java.io.File instead of using a delegate. Change-Id: Ib6434b37c8cceb6661bc6a17ae678a56d2c243f2
* Merge remote branch 'goog/master' into HEADXavier Ducrohet2010-02-231-0/+8
|\
| * Only add gdbserver to the APK if the manifest has debuggable to true.Xavier Ducrohet2010-02-231-0/+8
| | | | | | | | Change-Id: I2411f59f46cdda2e12b1627d450cde6c9cd109d8
* | ADT: Library support: source folder and pre-compiler.Xavier Ducrohet2010-02-231-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first step in the library support. For each library, create a source folder in the main project that is linked to the source folder of the library project. The linked resources use a path variable named after the library in the format: _android_<library name>. These variables are always created when the link is created. For now the link is recreated all the time, but we could do a check and not redo it if it's already done. Additionally, the pre-compiler creates the R class from the res folders of the main and library projects. Some misc fixes/clean-ups: * Fix an issue with the new ProjectState where opening a project would not trigger a load of its target data. * Changed the lock for all SDK operation: - moved the lock in Sdk accessible as Sdk.getLock() - made the few Sdk method that used their own synchronize block use the same lock as all others. * removed the builders project and moved its content to sdklib This was meant as a way to share code between the Eclipse builders and the Ant tasks but sdklib is already used by both, so it's better to put the code in sdklib than have yet another project. Change-Id: Ibfa449c7a809f28e428c03bbda8215969717ecde
* | Check whether the project's target supports libraries.Xavier Ducrohet2010-02-161-2/+12
| | | | | | | | | | | | | | | | Check is done when: - a library is added to a project through "android update project" - a project is compiled through Ant Change-Id: I09993b9aac5ad32a84335647429fc52fa2babaf9
* | 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