From ant-user-return-14591-qmlist-jakarta-archive-ant-user=jakarta.apache.org@jakarta.apache.org Fri Nov 16 13:39:37 2001 Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 2808 invoked from network); 16 Nov 2001 13:39:36 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 16 Nov 2001 13:39:36 -0000 Received: (qmail 3826 invoked by uid 97); 16 Nov 2001 13:39:22 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 3792 invoked by uid 97); 16 Nov 2001 13:39:21 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 3781 invoked from network); 16 Nov 2001 13:39:20 -0000 Sender: Helene.Joanin@evidian.com Message-ID: <3BF51704.5BF1E388@evidian.com> Date: Fri, 16 Nov 2001 14:39:16 +0100 From: =?iso-8859-1?Q?H=E9l=E8ne?= JOANIN Organization: Evidian X-Mailer: Mozilla 4.72 [en] (X11; U; AIX 4.2) X-Accept-Language: fr, en MIME-Version: 1.0 To: ant-user@jakarta.apache.org CC: HELENE JOANIN Subject: java.io.IOException: Not enough space Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I'm a new user of Ant and I need advice to be able to correct my problem. I use the Ant version 1.4.1. I have writen an Ant build file to build my product. The building works fine on a machine which have 512M memory. But I have the following error: java.io.IOException: Not enough space when I try to build my product on a machine which have 256M memory. However, on this machine, I am able to fully build my product by calling several times ant (without cleaning my building environment). I haven't find any information about this kind of memory problem on the Ant mailing list and on the Ant FAQ. I don't known if it's a 'normal' problem, (because Ant needs a lot of memory resource :-( ), or if it's due to a bug of Ant, or if it's due to my 'non well-writed' build file ? The building process of my product is quite complex, and I probably not write the building file on the "Ant Spirit". I will try to describe the building process more in details, in order for you to give me advise. I can already make two remarks: - the task is frequently used, - the 'fork' attribute of the task is set to "yes" to be able to stop the buildprocess on error. Thanks a lot for any clue. Kind regards. Hélène. 1) The main goal of my building process. ======================================== It's simply to build a jar ! This jar file is composed of : - classes extracted from 'externals' jar files, - classes builded from java sources; note that some java sources are builded - classes builded from others classes (stub and skel) 2) How classes are extracted from 'externals' jar files ? ========================================================= I got many jar files to unjar, and I want to unjar the jar file only if it is necessary. That's why I define three various targets. .......... 3) The "compile" process. ========================= The compile process depends on - the extraction of the external jar classes, - the precompile process, - the java sources compilation, - the Stub/Skel generation. The precompile process is composed of two various process. The goal is to build java sources - from java source 'templates', this is the jpp process; - and from XML schema, this is the castor process. The jpp and castor tools are java programs which are not Ant tasks. As I want to stop the buildprocess if the command fail, I set the 'fork' attribute of the task to "yes". a) The JPP precompile process. ------------------------------ ..... b) The castor precompile processor ---------------------------------- ..... c) The compilation of java sources process ------------------------------------------ This is made by using the task. d) The stub and skel building process ------------------------------------- As the Stub/Skel compiler is not the rmic standard compiler, and as this compiler is a java program which is not an Ant task, the targets define to the Stub/Skel build process looks like the targets define to the JPP precompile process. -- -=- Hélène JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- mailto:Helene.Joanin@evidian.com http://www.evidian.com Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00 Download our EJB Server JOnAS at http://www.objectweb.org -- To unsubscribe, e-mail: For additional commands, e-mail: