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 35739] New: - OutOfMemoryError while parsing directory tree
Date Thu, 14 Jul 2005 14:34:41 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=35739>.
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=35739

           Summary: OutOfMemoryError while parsing directory tree
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: Peter.Vigier@b4e.biz


Within our project exist a director-tree which is very deep (partially more than
10 levels) and contains about 8000 Files. These files are automatically
generated files in the complete tree exists no java file.
definig a javac task like that:
        <javac srcdir="${src}"
               destdir="${build}"
               debug="${compile.debug}"
               listfiles="true">
            <exclude name="root/data/create"/>
            <exclude name="root/data/create/**"/>
            <include name="root/**/*.java"/>
            <classpath refid="build_path" />
        </javac>
where data/create contains the deep directory structure causes an
OutOfMemoryError. Forking of the compiler or -ms128m -mx512m doesn't help it
seems to me that the problem is the generation of the fileset for the compiler.
The only solution I've found is not to include the root/**/*.java but include
each single subdirectory of root which contains java sources, avoiding
root/data/create.
Here is the output of ant -verbose:
------------------------------
>ant -Dbasedir=$PROJECT_BASE -verbose compile
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.4 in: /app/java/j2sdk1.4.2_05/jre
Detected OS: Linux
parsing buildfile /home/pvigier/prj/build.xml with URI =
file:///home/pvigier/prj/build.xml
Project base dir set to: /home/pvigier/prj
Build sequence for target(s) `compile' is [init, compile]
Complete build sequence is [init, compile, compile_gensrc, gensrc,
compile_customers, compile_all, deploy, clean, clean_all, clean_jar, make_jar, buil
d_all, build, cvs_update, ]

init:

compile:

BUILD FAILED
java.lang.OutOfMemoryError
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.OutOfMemoryError
--- Nested Exception ---
java.lang.OutOfMemoryError

-- 
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