ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37618] New: - APT task fails with too many files
Date Thu, 24 Nov 2005 03:45:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37618>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37618

           Summary: APT task fails with too many files
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: panther@pinkboard.com.au


I have checked out the APT classes from the 1.7 branch and created a JAR which I
have added to my Ant 1.6.5 lib directory. This allows me to execute an APT task
in Ant.

This works fine unless I have too many files. It allows up to around 250 to 320
files, but then fails. In normal mode I get no error message except for a
failure. In Ant debug mode (-d) I get the error below. I suspect this has to do
with the limit on the command line of 4k. 

BUILD FAILED
E:\DEV\SmartHealth\BuildFiles\buildAPT.xml:66: Error running C:\Program
Files\Java\jdk1.5.0_04\bin\apt.exe compiler
        at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.
java:446)
        at
org.apache.tools.ant.taskdefs.compilers.AptExternalCompilerAdapter.execute(AptExternalCompilerAdapter.java:61
)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
        at org.apache.tools.ant.taskdefs.Apt.execute(Apt.java:265)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.io.IOException: CreateProcess: "C:\Program
Files\Java\jdk1.5.0_04\bin\apt.exe" -classpath "E:\DEV\SmartH
ealth\Libs\common\activation.jar;E:\DEV\SmartHealth\Libs\common\bcprov-jdk14-120.jar;E:\DEV\SmartHealth\Libs\common\cast
or-0.9.7-xml__V0.9.7.jar;E:\DEV\SmartHealth\Libs\common\cglib-nodep__V2.1.jar;E:\DEV\SmartHealth\Libs\common\commons-bea
nutils__V1.5.jar;E:\DEV\SmartHealth\Libs\common\commons-collections__V3.1.jar;E:\DEV\SmartHealth\Libs\common\commons-dig
ester__V1.7.jar;E:\DEV\SmartHealth\Libs\common\commons-io__V1.0.jar;E:\DEV\SmartHealth\Libs\common\commons-lang__V2.0.ja
r;E:\DEV\SmartHealth\Libs\common\commons-logging__V1.0.3.jar;E:\DEV\SmartHealth\Libs\common\dtdparser__V1.2.1.jar;E:\DEV
\SmartHealth\Libs\common\jasperreports__V1.0.1.jar;E:\DEV\SmartHealth\Libs\common\jdom__V1.0.jar;E:\DEV\SmartHealth\Libs
\common\jdt-compiler__V3.1.jar;E:\DEV\SmartHealth\Libs\common\mail_1.3.2.jar;E:\DEV\SmartHealth\Libs\common\resolver__V1
.1.jar;E:\DEV\SmartHealth\Libs\common\spring-beans__V1.2.1.jar;E:\DEV\SmartHealth\Libs\common\spö
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
        at java.lang.Runtime.exec(Runtime.java:591)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
        at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.
java:443)
        ... 14 more
--- Nested Exception ---
java.io.IOException: CreateProcess: "C:\Program
Files\Java\jdk1.5.0_04\bin\apt.exe" -classpath "E:\DEV\SmartHealth\Libs\
common\activation.jar;E:\DEV\SmartHealth\Libs\common\bcprov-jdk14-120.jar;E:\DEV\SmartHealth\Libs\common\castor-0.9.7-xm
l__V0.9.7.jar;E:\DEV\SmartHealth\Libs\common\cglib-nodep__V2.1.jar;E:\DEV\SmartHealth\Libs\common\commons-beanutils__V1.
5.jar;E:\DEV\SmartHealth\Libs\common\commons-collections__V3.1.jar;E:\DEV\SmartHealth\Libs\common\commons-digester__V1.7
.jar;E:\DEV\SmartHealth\Libs\common\commons-io__V1.0.jar;E:\DEV\SmartHealth\Libs\common\commons-lang__V2.0.jar;E:\DEV\Sm
artHealth\Libs\common\commons-logging__V1.0.3.jar;E:\DEV\SmartHealth\Libs\common\dtdparser__V1.2.1.jar;E:\DEV\SmartHealt
h\Libs\common\jasperreports__V1.0.1.jar;E:\DEV\SmartHealth\Libs\common\jdom__V1.0.jar;E:\DEV\SmartHealth\Libs\common\jdt
-compiler__V3.1.jar;E:\DEV\SmartHealth\Libs\common\mail_1.3.2.jar;E:\DEV\SmartHealth\Libs\common\resolver__V1.1.jar;E:\D
EV\SmartHealth\Libs\common\spring-beans__V1.2.1.jar;E:\DEV\SmartHealth\Libs\common\spö
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
        at java.lang.Runtime.exec(Runtime.java:591)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
        at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:443)
        at
org.apache.tools.ant.taskdefs.compilers.AptExternalCompilerAdapter.execute(AptExternalCompilerAdapter.java:61)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
        at org.apache.tools.ant.taskdefs.Apt.execute(Apt.java:265)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message