Results 1 to 1 of 1
  1. #1
    1inmillion is offline Member
    Join Date
    Dec 2008
    Rep Power

    Default Ant fileset java.lang.OutOfMemoryError

    Hi all,

    I am using ant to build a war file.

    The part of build.xml file is:

    <target name="prepare">

    <mkdir dir="${build.home}"/>
    <mkdir dir="${build.home}/WEB-INF"/>
    <mkdir dir="${build.home}/WEB-INF/classes"/>

    <copy todir="${build.home}">
    <fileset dir="${web.home}" excludes="**/*.java,**/*.classe,**/.SRCS_CO/**,**/RCS/**, **/samples/** "/>
    <mkdir dir="${build.home}/WEB-INF/lib"/>
    <copy todir="${build.home}/WEB-INF/lib" file="${foo.jar}"/>

    fileset: Setup scanner in dir /idisk/scr/7/linux32_fixscr/isode/tools/admintool/ldex/src with patternSet{ includes: [] excludes: [**/*.java, **/*.classe, **/.SRCS_CO/**, **/RCS/**, **/samples/**] }

    It take lot of time and reports java.lang.OutOfMemoryError after.

    After setting the following setenv ANT_OPTS="-Xms256m -Xmx256m" the build hung instead of java.lang.OutOfMemoryError in the same place.

    Apache Ant version 1.5.1.

    CAn you please suggest me the ways to get out of this error?

    Last edited by 1inmillion; 12-23-2008 at 05:39 PM. Reason: To include ant version

Similar Threads

  1. java.lang.OutOfMemoryError: Java heap space
    By paul in forum Advanced Java
    Replies: 11
    Last Post: 06-12-2010, 06:30 PM
  2. java.lang.OutOfMemoryError
    By new_2_java in forum New To Java
    Replies: 2
    Last Post: 11-01-2008, 06:12 AM
  3. java.lang.OutOfMemoryError
    By in forum New To Java
    Replies: 2
    Last Post: 09-18-2008, 01:21 PM
  4. Replies: 11
    Last Post: 09-01-2008, 11:56 AM
  5. java.lang.OutOfMemoryError in a web service client
    By elchape in forum Advanced Java
    Replies: 4
    Last Post: 06-28-2008, 06:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts