First, if you are running android tools 8.0.1 from eclipse than everything works fine. Second, to run build using android tools 8.0.1 or higher outside of eclipse you must use ant 1.8.1 or higher. Most Linux version in theri beta/test repos already have compiled ant 1.8.1 binaries to install to run ant 1.8.1 form the [...]
Posts Tagged ‘ANT’
Android Tools 8.0.1, Eclipse and ANT 1.8.1
Posted: December 17, 2010 in Android, EclipseTags: ANT, Apache Ant, Eclipse, Integrated development environment, Linux
PMD 5 comes with some new additions to the Android Rules and a nice new features in that you can define a rulest and stick outside the pmd.jar unlike PMD 4. Thus for an ANT target you have:
There are some javadoc errors that I see when developers attempt to produce javadoc for an Android application project. One, not specifying the android.jar as a classpath parameter and the second is not specifying what Androdi SDK version in th e footer some place: Remember, there is no separate javadoc for the SDK online so [...]
Android App Build number
Posted: February 1, 2010 in AndroidTags: Add new tag, ANT, Build Management
Okay, detiails tonight as far as what ant tasks details to use. But here are the steps: 1. use xpath to read in Andorid.manifest vaules 2 Use propertyfile task to set new build number in a property file 3 read that value and use ReplaceRegEx to change it in the andorid.manifest. If you want you [...]
Android Test Project-ADT0.93-0.94
Posted: November 13, 2009 in Android, Java, MobileTags: Android, ANT
As you know one of the changes to ADT as far as ADT 0.93 and 0.94 was that the Android Test Project would get its own project folder in the Eclipse workspace. Here is how I handle it in ANT build scripts in the output-directories section of the build script: test-project and test-project-location get defined [...]
Customizing MotoDEVStudio
Posted: August 16, 2009 in Android, Java, MobileTags: Android, ANT, Development Tools, Eclipse
One of my complaints has been that the underlying platform. Eclipse 3.4, uses ANT 1.0 which has a major bug. Unzip this into your plugins folder and take out the ANT 1.0 plugin folder in your MotoDEvVStudio for Android install. Now when you do soem tasks like declare the task library for JDepend it will [...]
My next Android Cointribution-Agile-TDD
Posted: August 6, 2009 in Android, Java, MobileTags: Agile software development, Android, ANT, Software development kit, TDD
I am finishing up my next android contribution. Its a bug fix to fix the ANT support in the SDK by adding the proper ANT targets for unit and mock testing. If you have downloaded my Sdk customization extras you wil want to look at this bug fix as it has new targets added that [...]
WebView Obfuscation Magic
Posted: June 29, 2009 in AndCooper, Android, MobileTags: AndCooper, Android, ANT
This is what the obfuscation prepaation ANT script code looks like: Than during the release.produciton target before the apkbuilder task you make empty css-not-obfuscated.css and js-not-obfuscate.js files and thus your import wil always be: import css-non-obfuscated.css import css-bofuscated.css import js-non-obfuscate.js import js-0obfuscated.js import js-compressed-3rdparty.js Notice that you will always have the import js 3rdparty compressed [...]
Image by netzkobold via Flickr While I polish the AndCooper release and directions, I will publish some ANT atrget example specific to Android. How about a signjar task? SignJar: The release.production target is just the apkbuilder task and you have set to signed not true so that the apk does not get signed witht the [...]
AndCooper ReportWriter Code
Posted: June 11, 2009 in AndCooper, Android, Java, MobileTags: Agile, Android, ANT, Build Management, Build Manager Tools, Continuous integration, Mobile, Programming, XML
I am now on the Report Writer code portion of AndCooper development. On one hand I could easily state that it should be in groovy and a separate project. The problem is that fragments it in certain ways that I do not like. If I choose to embedd the groovy code in the ANT script [...]


