RE: if task

2002-02-27 Thread Rubun Tang
Thanks! Rubun -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 4:24 PM To: Ant Users List Subject: Re: if task --- Rubun Tang <[EMAIL PROTECTED]> wrote: > Is there an "if" kind of statement in Ant? > I am t

if task

2002-02-27 Thread Rubun Tang
Hello, Is there an "if" kind of statement in Ant? I am trying to do something in ant only "if" something is equal to something. The condition task doesn't fit very well. Rubun Tang Associate Software Engineer Algorithmics Inc. [EMAIL PROTECTED]

problem with exec task

2002-02-26 Thread Rubun Tang
directory I execute safari, the exec task will run as expected. Has anyone reported this bug yet? Cheers, Rubun Tang Associate Software Engineer Algorithmics Inc. [EMAIL PROTECTED] 416.217.4460 msg13745/bin0.bin Description: application/ms-tnef -- To unsubscri

RE: private Target

2002-02-25 Thread Rubun Tang
e user the correct way to use your build.xml) This is a workaround for your problem, it won't stop users calling the target, but it prevents erroneous operations. Rubun Tang -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 8:22 PM To:

location problem

2002-02-12 Thread Rubun Tang
rew up and couldn't run. Is there anyway I could preserve the location reference in the component level build.xml when I do an "antcall" from the top level? In other word, can I execute the antcall such that it start just like it's in the component level? Thanks in advance. Rub

cruisecontrol with the script task in ant

2002-01-28 Thread Rubun Tang
As I've mentioned above, I have no problem when doing "ant clean", but I'm having trouble starting it from cruisecontrol. I've made sure that they were both using the same ant.jar. I appreciate any helps. Rubun Tang Asso

property that determines target

2002-01-25 Thread Rubun Tang
Hi, I am wondering, is there a predefined property in ant that tells you what target has just been called? For example, if I go "ant jar", is there a property that tells me the target I've just called is "jar"? Thanks Rubun Tang msg12564/bin0.bin Descrip

RE: strange behavior in script task

2002-01-25 Thread Rubun Tang
ke you want it to or not (I believe it does). Peter Rubun Tang wrote: > > Hi, > > I've noticed something strange when using the script task. Here's what I > experienced: [snip] > When I go "ant bar", the script won't get executed. However, with "

RE: strange behavior in script task

2002-01-25 Thread Rubun Tang
I got it. In the task, when adding new task, it has to be added to a target that is currently running. For example, ... foo.addTask(f); will work when "ant foo" is called.