compiling with dependency on property

2003-09-22 Thread Mittermeier Ludwig
Hi everybody, in one of my java source files, the code looks similar to this: someObject.doSomething(); //someOtherObject.doSomething; At build-time, ant should compile either the first of these code-lines or the second one, depending on the value of a variable/property. Can someone tell me if t

RE: VSS task? - sorry for my mistake

2003-09-22 Thread Bui Dinh Chien
That is cause of: In Ant's MSVSS.java file, in [run] method: protected int run(Commandline cmd) { try { Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN)); // If location of ss.ini is specified we need to set the

VSS task? - sorry for my mistake

2003-09-22 Thread Bui Dinh Chien
That is not PATH environment variable, that is SSDIR environment variable. Thanks so much -Original Message- From: Bui Dinh Chien Sent: Monday, September 22, 2003 3:30 PM To: Ant Users List Subject: VSS task? When PATH environment variable has a path point to an srcsafe.ini. Ant will us

Re: can I subclass Condition to create my own conditions for "waitfor" task?

2003-09-22 Thread peter reilly
You will need to use the nightly build of ant (1.6alpha). an add(Condition condition) method has been added to ConditionBase. This will pick up typedef's conditions. Usage: Write a condition - a class implementing org.apache.tools.ant.taskdefs.condition.Condition Typedef the condition: T

VSS task?

2003-09-22 Thread Bui Dinh Chien
When PATH environment variable has a path point to an srcsafe.ini. Ant will use this path instead of path that was set by serverPath = "specified_path". How can I do to use path that was set by serverPath = "specified_path" Best regards Chien ---

RE: IF and Else based on the property value!!!

2003-09-22 Thread Jan . Materne
> This exists in ant-contrib or antelope. > In ant itself, you have to have : > > init target(s) setting conditional properties, > execution target(s) depending on the init(s) targets with if or unless > clauses. But don´t be confused: the if and unless clauses of don´t check the value of the

RE: Merging web.xml files

2003-09-22 Thread Jan . Materne
And the xml tasks: http://www.oopsconsultancy.com/software/xmltask.html Usually the External Tasks page is a good resource to find some tasks: http://ant.apache.org/external.html Jan > -Original Message- > From: Rosendahl Sten - stro [mailto:[EMAIL PROTECTED] > Sent: Friday, Septem