aidl not part of build?

2 views
Skip to first unread message

androidian

unread,
Feb 26, 2008, 6:10:04 PM2/26/08
to Android-Maven
Hi Charlie,

I noticed aidl is not being run during build. I have a .aidl file and
expect the build to generate a .java file from that .aidl file, but it
did not happen.

I notice Shane Isbell's plugin has the same behavior. May I ask why
you didn't put aidl as part of the build?

Kai

Charlie Collins

unread,
Feb 27, 2008, 8:42:16 AM2/27/08
to Android-Maven
I just didn't get to it yet. I will try to add that ASAP (putting it
in the issue tracker now).

Charlie Collins

unread,
Feb 27, 2008, 12:00:41 PM2/27/08
to Android-Maven
Done.

Made a new sample today that uses AIDL (IPC, Binder, Service), and
updated the plugin. With a disclaimer - I am not near a Windows
machine. I created a new AidlMojo and such, and it passes off to a
ScriptWriter (for Windows) to create the aidl script, but I didn't
implement it yet - this *won't work on Windows* right now.

I plan to get to the Windows part as soon as I can, but I won't be
near a Windows machine for several weeks (out of the office this week
and next), and my I recently wiped my parallels install to make room
on a drive).

If someone else wants to jump in there, just let me know and I will
add you to the project. All we really need is a .cmd script that
searchs the src dir and runs the aidl tool on any ".aidl" files found
there. All the other plumbing is done.

A recipe in case someone wants to grab it:

1. Uncomment the Windows part here, where it says TODO:
http://android-maven.googlecode.com/svn/android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/AidlMojo.java

2. Do the TODO at the bottom of this file (insert script commands, see
the other methods for examples):
http://android-maven.googlecode.com/svn/android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/ScriptHandlerWindows.java

3. install/deploy the plugin locally, run the sample


On Feb 26, 6:10 pm, androidian <weika...@gmail.com> wrote:

androidian

unread,
Feb 28, 2008, 1:07:36 PM2/28/08
to Android-Maven
Thanks. Will try it out.

On Feb 27, 9:00 am, Charlie Collins <charlie.coll...@gmail.com> wrote:
> Done.
>
> Made a new sample today that uses AIDL (IPC, Binder, Service), and
> updated the plugin. With a disclaimer - I am not near a Windows
> machine. I created a new AidlMojo and such, and it passes off to a
> ScriptWriter (for Windows) to create the aidl script, but I didn't
> implement it yet - this *won't work on Windows* right now.
>
> I plan to get to the Windows part as soon as I can, but I won't be
> near a Windows machine for several weeks (out of the office this week
> and next), and my I recently wiped my parallels install to make room
> on a drive).
>
> If someone else wants to jump in there, just let me know and I will
> add you to the project. All we really need is a .cmd script that
> searchs the src dir and runs the aidl tool on any ".aidl" files found
> there. All the other plumbing is done.
>
> A recipe in case someone wants to grab it:
>
> 1. Uncomment the Windows part here, where it says TODO:http://android-maven.googlecode.com/svn/android-maven-plugin/trunk/sr...
>
> 2. Do the TODO at the bottom of this file (insert script commands, see
> the other methods for examples):http://android-maven.googlecode.com/svn/android-maven-plugin/trunk/sr...

Charlie Collins

unread,
Feb 28, 2008, 1:25:31 PM2/28/08
to Android-Maven
Windows part is done now too. Works for me via the "sample" project
on Mac and Windows (assuming it works on Linux too, same scripts, but
haven't tried yet).
Reply all
Reply to author
Forward
0 new messages