Recent Notes

Displaying keyword search results 1 - 6
Created by freyo on April 01, 2011 14:29:25    Last update: June 29, 2011 13:58:27
Start the emulator ( create an AVD if none exists) $ tools/emulator -avd Simple8 Create new project $ tools/android create project \ > --package co... where " --target 2 " identifies the target platform as displayed by " tools/android list targets ", which is stored in the properties file in the project root folder. cd HelloWorld and install debug package onto the running emulator: $ ant install Buildfile: build.xml [set... Launch the Hello World application on the emulator. You'll see something like this: Edit res/values/string.xml , change the contents to: <?xml version="1.0" encoding="utf-8"?> <resourc... Edit res/layout/main.xml , change the contents to: <?xml version="1.0" encoding="utf-8"?> <LinearL... The contents of the text area now refer to a string defined in the resource file strings.xml , instead...
Created by Dr. Xi on September 29, 2010 16:28:52    Last update: September 29, 2010 16:28:52
Use the replace task with replacefilter to replace multiple tokens: <replace file="${build.dir}/WEB-INF/jdbc.propertie...
Created by Dr. Xi on January 08, 2010 03:53:37    Last update: January 08, 2010 03:54:56
This is an Ant custom task to merge Properties files I lifted from , with some minor bug fixes. Example usage: <taskdef name="mergeProperty" classname="ant.task.... Implementation: package ant.task.addon; import
Created by Dr. Xi on October 15, 2008 19:49:31    Last update: October 15, 2008 19:49:31
Ant script: <?xml version="1.0"?> <project name="OC4JDe... Deployment properties: # Deployment properties targetenv=Development ...
Created by Dr. Xi on September 15, 2008 19:50:39    Last update: September 15, 2008 20:01:50
Create a properties file to hold the properties for the MailLogger: MailLogger... Invoke from command line: ant\Build\MailLogg... Alternatively, invoke from another ant script: <target name="build" depends="checkout"> <e... However, the built-in MailLogger doesn't override buildStarted . Therefore, you can't send email to notify of build starting with MailLogger . To achieve that, you can either use the Mail task or override MailLogger with your own derivative.
Created by Dr. Xi on September 15, 2008 18:05:01    Last update: September 15, 2008 18:05:01
The Ant tstamp sets the DSTAMP , TSTAMP , and TODAY properties in the current project. But you can use a nested format task to define other properties and format the value. <project name="tstamp_demo" basedir="." default="d...