[android-maven commit] r158 - android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android

0 views
Skip to first unread message

codesite...@google.com

unread,
Feb 28, 2008, 1:12:13 PM2/28/08
to android-...@googlegroups.com
Author: charlie.collins
Date: Thu Feb 28 10:08:41 2008
New Revision: 158

Modified:
android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/AidlMojo.java
android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/ScriptHandlerWindows.java

Log:
windows aidl stuff

Modified: android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/AidlMojo.java
==============================================================================
---
android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/AidlMojo.java (original)
+++
android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/AidlMojo.java
Thu Feb 28 10:08:41 2008
@@ -25,14 +25,10 @@
public void execute() throws MojoExecutionException,
MojoFailureException {
super.execute();
if (!isUnix) {
- try {
- // TODO
- /*
+ try {
ScriptHandlerWindows winHandler =
(ScriptHandlerWindows) handler;
File commandFile = winHandler.writeAidlScript(this);
- winHandler.runScriptWindows(commandFile, this);
- */
- throw new MojoFailureException("aidl not yet supported
on Windows");
+ winHandler.runScriptWindows(commandFile, this);
} catch (Exception e) {
this.getLog().error(e);
throw new MojoExecutionException(e.getLocalizedMessage());

Modified: android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/ScriptHandlerWindows.java
==============================================================================
---
android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/ScriptHandlerWindows.java (original)
+++
android-maven-plugin/trunk/src/main/java/com/totsp/mavenplugin/android/ScriptHandlerWindows.java
Thu Feb 28 10:08:41 2008
@@ -136,8 +136,10 @@
File file = new File(mojo.getBuildDir(), filename);
PrintWriter writer = new PrintWriter(new FileWriter(file));

- // TODO
-
+ writer.println("@ECHO OFF");
+ writer.println("FOR /R " + mojo.getSrcDir() + " %%A IN
(*.aidl) DO \"" + mojo.getAidlTool() + "\" \"%%A\"");
+ writer.println();
+ writer.println("ECHO "); // has to have another line else
ERRORLEVEL is not 1?
writer.flush();
writer.close();
return file;

Reply all
Reply to author
Forward
0 new messages