Posts Tagged ‘ANT’

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 [...]

Android PMD 5

Posted: February 12, 2010 in Android
Tags: ,

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:

Application JavaDoc

Posted: February 10, 2010 in Android
Tags: , , ,

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 Android
Tags: , ,

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, Mobile
Tags: ,

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 [...]

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 [...]

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 [...]

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 [...]

SignJar Target

Posted: June 24, 2009 in AndCooper, Android, Java, Mobile
Tags: , ,

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 [...]

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 [...]