Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 70235 invoked from network); 10 Nov 2003 14:01:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Nov 2003 14:01:11 -0000 Received: (qmail 96855 invoked by uid 500); 10 Nov 2003 14:00:57 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 96822 invoked by uid 500); 10 Nov 2003 14:00:57 -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 96808 invoked from network); 10 Nov 2003 14:00:57 -0000 Received: from unknown (HELO mta01-svc.ntlworld.com) (62.253.162.41) by daedalus.apache.org with SMTP; 10 Nov 2003 14:00:57 -0000 Received: from dell ([81.103.21.114]) by mta01-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20031110140057.PXVH4368.mta01-svc.ntlworld.com@dell> for ; Mon, 10 Nov 2003 14:00:57 +0000 From: "Martin Alley" To: "'Ant Users List'" Subject: RE: forking java and javac Date: Mon, 10 Nov 2003 14:00:47 -0000 Message-ID: <00ba01c3a793$0d835dd0$3100a8c0@martinjfalley.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: 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 Hi Antoine, Thanks for the info. What do you mean by the "executable attribute of the javac task? I can't see an attribute of that name in the documentation for javac task. Thanks Martin -----Original Message----- From: Antoine Levy-Lambert [mailto:antoine@antbuild.com] Sent: 10 November 2003 08:02 To: Ant Users List Subject: AW: forking java and javac Hi Martin, concerning spaces in pathnames, please use the nested element for each of your individual arguments. Arguments containing embedded spaces will be quoted automatically. I do not know of an xslt to convert buildfile from ant 1 to ant 1.5. The message "since fork=true, compiler setting ignored" is informational. It really means that you need to set the executable attribute of the javac task to point to the full path of the java compiler you want to use. (because you are forking). Cheers, Antoine -----Ursprungliche Nachricht----- Von: Martin Alley [mailto:martin.alley@ntlworld.com] Gesendet: Sonntag, 9. November 2003 23:51 An: 'Ant Users List' Betreff: RE: forking java and javac 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> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org