Closed GoogleCodeExporter closed 8 years ago
Original comment by mschidlo...@gmail.com
on 3 Jun 2009 at 9:44
Valid point. The SDK had a tool in 1.1 to build the ant file
(android-sdk-1.1-path/tools/activitycreator). It's no longer present in the
1.5 SDK
though, and I haven't looked to see how the ant build is generated in 1.5
(maybe with
apkbuilder?). Anyway, the autobuild script
(https://omnidroid.googlecode.com/svn/tools/autobuild/ant-build.sh) creates an
ant
build file with:
build() {
# Build it
echo " + Using android tools to build an ant file" && \
cd $TEST_DIR && \
env && \
$ANDROID_BIN_DIR/activitycreator --out $TEST_DIR $MANIFEST && \
echo " + Building from ant build file" && \
ant
return $?
}
where ANDROID_BIN_DIR is just the path to your SDK/tools directory.
Original comment by case.and...@gmail.com
on 3 Jun 2009 at 11:32
In 1.5 it's done with "android create project" (that's the command plus its
first two
arguments). Would an automatically generate build file be sufficient?
Original comment by ksjohnson3
on 14 Jul 2009 at 3:20
Original comment by ksjohnson3
on 24 Jul 2009 at 3:37
I found this helpful site: http://code.google.com/p/autoandroid/wiki/AndroidAnt
I've converted the build scripts to use 1.5 (android instead of
activitycreator) and
create the ant build script (build.xml) with the magical command: android update
project -p $OMNIDROIDPATH -t 2
If you're still working on this let me know.
Original comment by case.and...@gmail.com
on 12 Aug 2009 at 12:35
ksjohnson3, can you see if this would suffice:
http://codereview.appspot.com/104099
I don't think these build files will change all that much over time, so I don't
think
it will be a problem if they were in the repo.
Original comment by case.and...@gmail.com
on 12 Aug 2009 at 8:26
This issue was closed by revision r649.
Original comment by case.and...@gmail.com
on 13 Aug 2009 at 3:50
Original issue reported on code.google.com by
mschidlo...@gmail.com
on 3 Jun 2009 at 9:40