Re: passing the name of a property file as parameter

2005-11-09 Thread Juergen Hermann
On Wed, 09 Nov 2005 19:37:37 +0100, Lothar Krenzien wrote: >I've red some tutorials before where the command was used. But I always found out the command line option you said and now it works ;). As I understood both commands should be the same - or not ? No, the semantics are different, espe

Re: passing the name of a property file as parameter

2005-11-09 Thread Lothar Krenzien
I've red some tutorials before where the command was used. But I always found out the command line option you said and now it works ;). As I understood both commands should be the same - or not ? "Ant Users List" schrieb am 09.11.05 19:26:51: > > On Wed, 09 Nov 2005 17:43:49 +0100, Lothar

Re: passing the name of a property file as parameter

2005-11-09 Thread Juergen Hermann
On Wed, 09 Nov 2005 17:43:49 +0100, Lothar Krenzien wrote: >I forgott to say that was my first attemp. But I just realized that I made another mistake. So it works now. >But now I can't access the values in the properties file. >-- deploy.bat > ant -Dproperties.file=properties.win Any reason t

RE: passing the name of a property file as parameter

2005-11-09 Thread Jon Skeet
> I forgott to say that was my first attemp. But I just > realized that I made another mistake. So it works now. > But now I can't access the values in the properties file. Which version of Ant are you using? It works fine with Ant 1.6.5 (see my other post for a short but complete example). J

Re: passing the name of a property file as parameter

2005-11-09 Thread Lothar Krenzien
Hi Jeffrey, I forgott to say that was my first attemp. But I just realized that I made another mistake. So it works now. But now I can't access the values in the properties file. -- deploy.bat ant -Dproperties.file=properties.win -- properties.win tomcat.dir=D:\prog\jakarta-tomcat-5.5.4 -

RE: passing the name of a property file as parameter

2005-11-09 Thread Jon Skeet
> I don't remember the exact source I found the information, > but essentially this does not work. The token will not work > with a variable :( Firstly, the should *certainly* have worked. Nothing in the original post actually said he was trying to load the properties file. Secondly, it works

RE: passing the name of a property file as parameter

2005-11-09 Thread Silberman, Michael
ssing the name of a property file as parameter Hi, I have an Ant script which should use a property file. But I want to pass the name of the file as an argument from a script. I've red the FAQ but can't get it working :( Here's an example of what I want to do: --wi

Re: passing the name of a property file as parameter

2005-11-09 Thread Jeffrey E Care
-- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Lothar Krenzien <[EMAIL PROTECTED]> wrote on 11/09/2005 11:06:09 AM: > > Hi, > > I have an Ant script which should use a property file. But I want > to pass the name of the f

passing the name of a property file as parameter

2005-11-09 Thread Lothar Krenzien
Hi, I have an Ant script which should use a property file. But I want to pass the name of the file as an argument from a script. I've red the FAQ but can't get it working :( Here's an example of what I want to do: --windows.bat ant deploy -Dproperty.file=properties.win --linux.bat ant deploy