Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 98672 invoked from network); 5 Jan 2004 11:09:15 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Jan 2004 11:09:15 -0000 Received: (qmail 25263 invoked by uid 500); 5 Jan 2004 11:08:39 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 25065 invoked by uid 500); 5 Jan 2004 11:08:37 -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 25051 invoked from network); 5 Jan 2004 11:08:37 -0000 Received: from unknown (HELO corvil.com) (213.94.219.177) by daedalus.apache.org with SMTP; 5 Jan 2004 11:08:37 -0000 Received: from corvil.com (preilly.local.corvil.com [172.18.1.173]) by corvil.com (8.12.9/8.12.5) with ESMTP id i05B8nEu015787 for ; Mon, 5 Jan 2004 11:08:49 GMT (envelope-from peter.reilly@corvil.com) Message-ID: <3FF94544.8070406@corvil.com> Date: Mon, 05 Jan 2004 11:06:44 +0000 From: Peter Reilly User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: whitespace for javac task References: <3FF942D3.4000303@yahoo.de> In-Reply-To: <3FF942D3.4000303@yahoo.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 It is more (much more) likely to be a bug with java - exec for windows. It has problems with quoting/not quoting for windows crazy CreateProcess cmd parameter. This raises differences between unix and windows view of paramaters in java.lang.Runtime#exec(). Removal of the fork attribute should work. Peter J.Pietschmann wrote: > JHead@ids.com.au wrote: > >> I have a white space character in my source directory name. > > ... > >> > > ... > >> > classpathref="build.classpath" >> fork="true" >> srcdir="${src.dir}" >> destdir="${build.dir}/classes"/> > > ... > >> [javac] Compiling 1695 source files to C:\xxxxx\build\classes >> [javac] javac: invalid flag: C:\xxxxx\Java >> [javac] Usage: javac > > > Definitely a bug in Ant, the arguments to a forked JVM should > be properly quoted. I can't seen a workaround unless you give > up forking. > It should work without forking though. Try this first. > > J.Pietschmann > > --------------------------------------------------------------------- > 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