Hi Ward,
and also (a la J2ME) modify some of the source files before we
compile them. We also make different modifications depending on
whether it is a debug or release build.
how do you modify source code from ant scripts?
I'd like to preprocess my souce code, but I don't see a clean way
We continue down our road of not using Eclipse and a customized
build.xml file. This is because we pull sources from several trees,
and also (a la J2ME) modify some of the source files before we
compile them. We also make different modifications depending on
whether it is a debug or release
i'm down the no-Eclipse road too, largely because it sucks :-)
i routinely add clean and libext targets to Android build.xml
files, to pull external libraries and to ensure old build products
are removed before generating new ones = i don't know how, but
sometimes old stuff is left lying
Yes, one of the things we do too is clean before build. Early on we had
crazy problems if we didn't. javac is so fast (compared to dx) that it
really doesn't matter.
It is not enough to just pull in custom targets though (for us, anyway), as
execution of those targets must occur at good times in
It'll be nice to have this info here as well
http://developer.android.com/sdk/1.5_r1/upgrading.html#AntUsers
On Apr 14, 2:29 pm, Xavier Ducrohet x...@android.com wrote:
Hello,
The new SDK include multiple versions of the Android platforms.
Because newer versions could have slightly different
Is it possible to compile from more than one source directory? The
source folder is defined as a simple string property and I assume
assigning it to a path wont work?
On Apr 14, 8:42 pm, Xavier Ducrohet x...@android.com wrote:
hmm oops. Just copy the one from 1.5 into 1.1/templates. they should
quoting http://ant.apache.org/manual/CoreTasks/javac.html
javac srcdir=${src}:${src2}
destdir=${build}
includes=mypackage/p1/**,mypackage/p2/**
excludes=mypackage/p1/testpackage/**
classpath=xyz.jar
debug=on
/
is the same as the previous example,
i tried that but some of the other tasks couldn't handle being passed
multiple folders. I have now just copied the template into my build
file and modified it. this rather defeats the object of having
templates though
On Apr 29, 11:41 am, Zero zeroo...@googlemail.com wrote:
Hello,
The new SDK include multiple versions of the Android platforms.
Because newer versions could have slightly different build steps, we
have decide to keep most of the build logic inside the platforms
themselves.
Thus, the new build.xml imports a file called android_rules.xml
located inside
Xavier Ducrohet wrote:
Hello,
The new SDK include multiple versions of the Android platforms.
Because newer versions could have slightly different build steps, we
have decide to keep most of the build logic inside the platforms
themselves.
Thus, the new build.xml imports a file called
hmm oops. Just copy the one from 1.5 into 1.1/templates. they should
be identical anyway.
Xav
On Tue, Apr 14, 2009 at 12:37 PM, Xavier Le Vourch
xavier.levou...@xlv-labs.com wrote:
Xavier Ducrohet wrote:
Hello,
The new SDK include multiple versions of the Android platforms.
Because newer
11 matches
Mail list logo