[ 
http://jira.codehaus.org/browse/MCOMPILER-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128662#action_128662
 ] 

Benjamin Bentmann commented on MCOMPILER-68:
--------------------------------------------

bq. I guess the compiler should be using the java API to access the compiler 
options via tools.jar rather than using the command line.
Both the Maven Compiler Plugin and the Ant task have an option named 
{{[fork|http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#fork]}}
 exactly for this purpose.

> Command line is too long, java.IO.Exception 
> --------------------------------------------
>
>                 Key: MCOMPILER-68
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-68
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Win XP SP2
>            Reporter: David Heimann
>
> Hi there,
> i have the same problem again, like in ticket MCOMPILER-22. I am using maven 
> in version 2.0.8. 
>      [java] Caused by: java.io.IOException: CreateProcess: 
> C:\Programme\Java\jdk
> 1.5.0_09\jre\bin\java.exe -Djava.awt.headless=true -classpath "C:\Dokumente 
> und
> Einstellungen\david.heimann\.m2\repository\ant\ant-launcher\1.6.5\ant-launcher-1
> .6.5.jar;C:\Dokumente und 
> Einstellungen\david.heimann\.m2\repository\ant\ant\1.6
> .5\ant-1.6.5.jar;C:\Dokumente und 
> Einstellungen\david.heimann\.m2\repository\ant
> lr\antlr\2.7.6\antlr-2.7.6-sources.jar;C:\Dokumente und 
> Einstellungen\david.heim
> ann\.m2\repository\antlr\antlr\2.7.6\antlr-2.7.6.jar;C:\Dokumente und 
> Einstellun
> gen\david.heimann\.m2\repository\asm\asm-attrs\1.5.3\asm-attrs-1.5.3.jar;C:\Doku
> mente und 
> Einstellungen\david.heimann\.m2\repository\asm\asm-commons\2.2.1\asm-c
> ommons-2.2.1.jar;C:\Dokumente und 
> Einstellungen\david.heimann\.m2\repository\asm
> \asm\1.5.3\asm-1.5.3.jar;C:\Dokumente und 
> Einstellungen\david.heimann\.m2\reposi
> tory\asm\asm\2.2.1\asm-2.2.1.jar;C:\Dokumente und 
> Einstellungen\david.heimann\.m
> 2\repository\asm\asm\3.0\asm-3.0.jar;C:\Dokumente und 
> Einstellungen\david.heiman
> n\.m2\repository\aspectj\aspö
>      [java]     at java.lang.ProcessImpl.create(Native Method)
>      [java]     at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
>      [java]     at java.lang.ProcessImpl.start(ProcessImpl.java:30)
>      [java]     at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
>      [java]     at java.lang.Runtime.exec(Runtime.java:591)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
>      [java]     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [java]     at 
> org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.e
> xec(Execute.java:834)
>      [java]     at 
> org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435
> )
>      [java]     at 
> org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:44
> 9)
>      [java]     at org.apache.tools.ant.taskdefs.Java.fork(Java.java:751)
>      [java]     ... 25 more
> ----------------
> I have a ant-task in the pom.xml creating that long command. For a solution 
> for this i would be very thankful. Sorry for my bad english...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to