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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to