Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 32594 invoked from network); 9 Nov 2003 22:51:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Nov 2003 22:51:49 -0000 Received: (qmail 87468 invoked by uid 500); 9 Nov 2003 22:51:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 87219 invoked by uid 500); 9 Nov 2003 22:51:27 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 87206 invoked from network); 9 Nov 2003 22:51:26 -0000 Received: from unknown (HELO mta02-svc.ntlworld.com) (62.253.162.42) by daedalus.apache.org with SMTP; 9 Nov 2003 22:51:26 -0000 Received: from dell ([81.103.21.114]) by mta02-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20031109225123.CZLQ16139.mta02-svc.ntlworld.com@dell> for ; Sun, 9 Nov 2003 22:51:23 +0000 From: "Martin Alley" To: "'Ant Users List'" Subject: RE: forking java and javac Date: Sun, 9 Nov 2003 22:51:11 -0000 Message-ID: <007501c3a713$fbdd7e00$3100a8c0@martinjfalley.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0076_01C3A713.FBDD7E00" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <004201c3a6a9$25bd4270$3100a8c0@martinjfalley.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0076_01C3A713.FBDD7E00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Regarding the spaces in pathnames, I wonder if the regex mapper is the solution - wrapping ' round any filename. Comments anyone? Martin -----Original Message----- From: Martin Alley [mailto:martin.alley@ntlworld.com] Sent: 09 November 2003 10:06 To: user@ant.apache.org Subject: forking java and javac Hi, I'm new to ant, and hope someone on this mail list can help me.. I have a number of build files created for ant version 1, but I am using ant version 1.5. (These build files are from Java PetStore 1.1.2) Whilst using these build files, I am getting sporadic errors, which I believe is due to not forking a new JVM. (I am using j2sdk1.4.1_05) However, when I use a fork command, I have problems passing command arguments. 1)Is there a xlst to convert buildfiles aimed at ant 1 to ant 1.5? 2)What do I do about the javac message "Since fork is true, ignoring compiler setting."? 3) What do I do about path names that contain spaces? Below are the results of running one build file (I am using Windows XP) Build file is attached. I have similar problems with these ant tasks also: Any help much appreciated. Thanks Martin C:\Documents and Settings\Martin\My Documents\jps1.1.2\src\components\customer\src>ant core Buildfile: build.xml init: [echo] basedir=C:\Documents and Settings\Martin\My Documents\jps1.1.2\src\components\customer\src [echo] customer.home=C:\Documents and Settings\Martin\My Documents\jps1.1.2\src\components\customer\src/.. [echo] customer.src=C:\Documents and Settings\Martin\My Documents\jps1.1.2\src\components\customer\src/../src [echo] buildpath ../../util/tracer/build/classes:C:\Documents and Settings\Martin\My Documents\jps1.1.2\src\components\customer\src/../build/classes:${j2ee .home}/lib/j2ee.jar compile_util_classes: [javac] Since fork is true, ignoring compiler setting. compile_classes: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 48 source files to C:\Documents and Settings\Martin\My Documents\jps1.1.2\src\components\customer\build\classes [javac] Since fork is true, ignoring compiler setting. [javac] javac: invalid flag: C:\Documents [javac] Usage: javac [javac] where possible options include: [javac] -g Generate all debugging info [javac] -g:none Generate no debugging info [javac] -g:{lines,vars,source} Generate only some debugging info [javac] -nowarn Generate no warnings [javac] -verbose Output messages about what the compiler is doing [javac] -deprecation Output source locations where deprecated APIs are used [javac] -classpath Specify where to find user class files [javac] -sourcepath Specify where to find input source files [javac] -bootclasspath Override location of bootstrap class files [javac] -extdirs Override location of installed extensions [javac] -d Specify where to place generated class files [javac] -encoding Specify character encoding used by source files [javac] -source Provide source compatibility with specified release [javac] -target Generate class files for specific VM version [javac] -help Print a synopsis of standard options BUILD FAILED file:C:/Documents%20and%20Settings/Martin/My%20Documents/jps1.1.2/src/co mponents/customer/src/build.xml:64: Compile failed; see the compiler error output for de tails. Total time: 1 second C:\Documents and Settings\Martin\My Documents\jps1.1.2\src\components\customer\src> ------=_NextPart_000_0076_01C3A713.FBDD7E00--