Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 92698 invoked from network); 1 Sep 2005 06:09:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2005 06:09:54 -0000 Received: (qmail 4094 invoked by uid 500); 1 Sep 2005 06:08:00 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 3227 invoked by uid 500); 1 Sep 2005 06:07:48 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 373 invoked by uid 99); 1 Sep 2005 06:07:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2005 23:07:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of antoine@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 31 Aug 2005 22:43:43 -0700 Received: (qmail invoked by alias); 01 Sep 2005 05:43:24 -0000 Received: from tmo-056-135.customers.d1-online.com (EHLO [127.0.0.1]) [80.187.56.135] by mail.gmx.net (mp007) with SMTP; 01 Sep 2005 07:43:24 +0200 X-Authenticated: #22961642 Message-ID: <4316950E.1050408@gmx.de> Date: Thu, 01 Sep 2005 07:43:42 +0200 From: Antoine Levy-Lambert User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Empty arguments on the command-line under windows References: In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Martin, Martin Senger wrote: >My task is (shortened): > > classpathref="moses.build.classpath" fork="true" failonerror="true"> > > > > > >Before invoking it I set an empty value to ${registry.cache.dir} unless it >is already set: > > > > > > > This (condition task invocation) rewrites more simply : because ant only assigns a value to unexisting properties. To solve your Windows problem, you can do : this might lead Windows to understand that there is an empty argument Cheers, Antoine >If the value is indeed empty, I would expect that my java class gets three >command-line arguments like this: > -cacheDir "" -s > >And, indeed, it does - but only under linux. Under windows the empty >argument disappears: > -cacheDir -s > >This may be a native way how Windows deals with such situation, so Ant >cannot do much about it. Could anybody conform this, or advise me how to >make it work on both OS? > > Thanks you very much for your help, > Martin > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org