Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 54083 invoked from network); 2 Dec 2000 21:06:51 -0000 Received: from web124.mail.yahoo.com (HELO web124.yahoomail.com) (205.180.60.192) by locus.apache.org with SMTP; 2 Dec 2000 21:06:51 -0000 Received: (qmail 8464 invoked by uid 60001); 2 Dec 2000 21:06:51 -0000 Message-ID: <20001202210651.8463.qmail@web124.yahoomail.com> Received: from [64.163.67.114] by web124.yahoomail.com; Sat, 02 Dec 2000 13:06:51 PST Date: Sat, 2 Dec 2000 13:06:51 -0800 (PST) From: Diane Holt Subject: Re: Parameters for tasks. To: ant-dev@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Not entirely sure I understand what you're asking, but hopefully this will cover it somewhere along the line. You can reference properties (ie., ${prop_name}) in the build-file pretty much anywhere you could have a hard-coded value, and you can set properties in lots of different ways: - have the 'ant' script pass, as property defines on the java command-line, environment variables that are already in the user env - (assuming a unix-type shell) set an env var on the 'ant' command-line (eg., "$ FOO=bar ant"), and again, let the 'ant' script deal with it - define a property on the ant command-line (eg., "$ ant -Dfooprop=bar") - set properties inside the build-file via the task - set properties via the task If I've left out any other ways, I'm sure someone else will fill them in (and of course, there's always the Ant doc :) Diane --- Stephane wrote: > Hello all, > > is there a way to pass arguments to ant tasks ? > It would be pretty nice for exemple > if you want to give args to a "run" target to give them on the command > line > of ant instead of creating many different targets for each different > tasks. > > Thanks in advance, > and excuse me if i ask stupid questions, > i am a yound user of ant, and yet mad of it. > > What a software you made ! > > ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/