build.xml in Java project

build.xml usually is an ant build script. It contains information necessary to build the project to produce the desired output, be it Javadocs, a compiled project, or a JAR file. I believe Eclipse has ant built-in, so it should be possible to execute the build.xml by choosing “Run As…” and “Ant Build”. The build.xml file, …

Read more

How to pull out a substring in Ant

I use scriptdef to create a javascript tag to substring, for exemple: <project> <scriptdef name=”substring” language=”javascript”> <attribute name=”text” /> <attribute name=”start” /> <attribute name=”end” /> <attribute name=”property” /> <![CDATA[ var text = attributes.get(“text”); var start = attributes.get(“start”); var end = attributes.get(“end”) || text.length(); project.setProperty(attributes.get(“property”), text.substring(start, end)); ]]> </scriptdef> …….. <target …> <substring text=”asdfasdfasdf” start=”2″ end=”10″ …

Read more

How can I specify location of debug keystore for Android ant debug builds?

You should be able to specify the keystore to use with these properties key.store=/path/to/key.keystore key.alias=alias key.store.password=pass key.alias.password=pass Just pass the properties in to Ant. [EDIT] From the docs at http://developer.android.com/guide/publishing/app-signing.html#setup The Android build tools provide a debug signing mode that makes it easier for you to develop and debug your application, while still meeting the …

Read more