Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#823 ant task cloud not be executed with big project

3.0.0
closed-fixed
Ant task (38)
5
2014-06-21
2009-12-04
Adomas Greicius
No

create ant task with many jar, many source and many lib. when you will try to execute you will get exception

[findbugs] Executing findbugs from ant task
[findbugs] Running FindBugs...
[findbugs] java.io.IOException: CreateProcess: "C:\Program Files\Java\jdk1.5.0_15\jre\bin\java.exe" -Xmx1200M -Dfindbugs.home=E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\lib -classpath E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\lib\findbugs.jar edu.umd.cs.findbugs.FindBugs2 -effort:max -sortByClass -timestampNow -xml:withMessages -low -auxclasspath E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.apache.commons.codec_1.3.0.v20080530-1600.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.apache.derby_10.5.3.200910020001.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.eclipse.core.jobs_3.4.1.R34x_v20081128.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.eclipse.core.runtime_3.4.0.v20080512.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.eclipse.emf.cdo.common_2.0.1.custom.jar;E:\home\adom”
[findbugs] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791)
[findbugs] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:211)
[findbugs] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
[findbugs] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
[findbugs] at edu.umd.cs.findbugs.anttask.AbstractFindBugsTask.execFindbugs(AbstractFindBugsTask.java:360)
[findbugs] at edu.umd.cs.findbugs.anttask.AbstractFindBugsTask.execute(AbstractFindBugsTask.java:216)
[findbugs] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[findbugs] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[findbugs] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[findbugs] at java.lang.reflect.Method.invoke(Method.java:585)
[findbugs] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[findbugs] at org.apache.tools.ant.Task.perform(Task.java:348)
[findbugs] at org.apache.tools.ant.Target.execute(Target.java:357)
[findbugs] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[findbugs] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[findbugs] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[findbugs] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[findbugs] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[findbugs] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[findbugs] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[findbugs] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[findbugs] Caused by: java.io.IOException: CreateProcess: "C:\Program Files\Java\jdk1.5.0_15\jre\bin\java.exe" -Xmx1200M -Dfindbugs.home=E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\lib -classpath E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\lib\findbugs.jar edu.umd.cs.findbugs.FindBugs2 -effort:max -sortByClass -timestampNow -xml:withMessages -low -auxclasspath E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.apache.commons.codec_1.3.0.v20080530-1600.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.apache.derby_10.5.3.200910020001.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.eclipse.core.jobs_3.4.1.R34x_v20081128.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.eclipse.core.runtime_3.4.0.v20080512.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.eclipse.emf.cdo.common_2.0.1.custom.jar;E:\home\adom”
[findbugs] at java.lang.ProcessImpl.create(Native Method)
[findbugs] at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
[findbugs] at java.lang.ProcessImpl.start(ProcessImpl.java:30)
[findbugs] at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
[findbugs] at java.lang.Runtime.exec(Runtime.java:591)
[findbugs] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[findbugs] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[findbugs] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[findbugs] at java.lang.reflect.Method.invoke(Method.java:585)
[findbugs] at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
[findbugs] at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
[findbugs] at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
[findbugs] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:784)
[findbugs] ... 20 more
[findbugs] --- Nested Exception ---
[findbugs] java.io.IOException: CreateProcess: "C:\Program Files\Java\jdk1.5.0_15\jre\bin\java.exe" -Xmx1200M -Dfindbugs.home=E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\lib -classpath E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\lib\findbugs.jar edu.umd.cs.findbugs.FindBugs2 -effort:max -sortByClass -timestampNow -xml:withMessages -low -auxclasspath E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.apache.commons.codec_1.3.0.v20080530-1600.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.apache.derby_10.5.3.200910020001.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.eclipse.core.jobs_3.4.1.R34x_v20081128.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.eclipse.core.runtime_3.4.0.v20080512.jar;E:\home\adomas\CI\CI\com.nomagic.ci.code_analyze\bin\source\server\CameoTeamServer\plugins\org.eclipse.emf.cdo.common_2.0.1.custom.jar;E:\home\adom”
[findbugs] at java.lang.ProcessImpl.create(Native Method)
[findbugs] at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
[findbugs] at java.lang.ProcessImpl.start(ProcessImpl.java:30)
[findbugs] at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
[findbugs] at java.lang.Runtime.exec(Runtime.java:591)
[findbugs] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[findbugs] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[findbugs] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[findbugs] at java.lang.reflect.Method.invoke(Method.java:585)
[findbugs] at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
[findbugs] at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
[findbugs] at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
[findbugs] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:784)
[findbugs] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:211)
[findbugs] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
[findbugs] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
[findbugs] at edu.umd.cs.findbugs.anttask.AbstractFindBugsTask.execFindbugs(AbstractFindBugsTask.java:360)
[findbugs] at edu.umd.cs.findbugs.anttask.AbstractFindBugsTask.execute(AbstractFindBugsTask.java:216)
[findbugs] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[findbugs] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[findbugs] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[findbugs] at java.lang.reflect.Method.invoke(Method.java:585)
[findbugs] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[findbugs] at org.apache.tools.ant.Task.perform(Task.java:348)
[findbugs] at org.apache.tools.ant.Target.execute(Target.java:357)
[findbugs] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[findbugs] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[findbugs] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[findbugs] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[findbugs] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[findbugs] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[findbugs] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[findbugs] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[findbugs] Java Result: -1

Discussion

  • Keith Lea
    Keith Lea
    2009-12-08

    Judging from a quick search, it looks like this might be an issue with command line argument length.

     
  • Keith Lea
    Keith Lea
    2009-12-08

    • assigned_to: nobody --> wpugh
    • status: open --> open-accepted
     

  • Anonymous
    2009-12-09

    Yes it is problem with command line. But I don’t think that it is good to depend on command line length. I think that parameter should not be passed throw command line. Parameter could be read from pipe, file or other artifacts.

    Im sufered by this bug~ error is the “FILE PATH"~

     
    Last edit: Anonymous 2013-08-16
    • status: open-accepted --> closed-fixed
    • assigned_to: William Pugh --> Andrey Loskutov
    • Group: --> 3.0.0
     
  • Ant task allows to specify arguments via file now, see FB ant manual.