On Mar 29, 4:29 am, Jean-Louis BOUDART <
jeanlouis.boud...@gmail.com>
wrote:
> I think we can provide a new "build type" for android projects.
>
> Build types are intended to provide a full build for a particular type of
> project (simple java, war, ear, ...). EasyAnt comes with a set of build
> types modules, but users could extend/replace these types as they want. Then
> in most cases they could simply define which build type to import for each
> module (either standard or custom), and that's pretty much all. Hence you
> usually import only one build type module at a time.
>
> So my idea is to write a plugin based on conventions that uses
> autoandroidlib tasks (and why not positron as an additional plugin) to
> provide the common tasks needed in an android project.
Groovy.
> I notice that Android-ant does not (yet) provide tasks with attributes and
> nested elements customized to specific tasks. Are you planing to introduce
> it soon?
My general stance is it isn't broken enough to fix. The existing
convention is to pass a nested block of ant command line argument
tags, which are delegated to a <java> tag (inside a macrodef) that
invokes autoandroidlib. These are in turn passed through to
ProcessBuilder when it shells out.
As such it's expressive enough for most uses (with one notable
exception: the <dx> tag takes an inputref attribute to process
collections of files, since ant makes converting such collection to
command line args somewhat convoluted.) If it is ugly, it is at least
fairly clear how to take most arbitrary invocations of the tools and
script them up. The 'openness' of this approach seems valuable: if
google releases a new 'killer feature' option to adb, for example,
this approach allows users to take advantage of it immediately, rather
than to wait for me to incorporate it.
> 2009/3/29 phil.h.smith <
phil.h.sm...@gmail.com>