Condition check Question

2008-01-14 Thread Z W
Hi Can folks here give examples on how to perform a condition check for this ? I'm executing a sshexec and how do I use to work like if-then-else, following to check if this is executed succesfully Thanks in advance

Re: Isreachable issue

2008-01-14 Thread Z W
Hi Steve I'm not sure what's the latest patch/update you talk about. My settings are as follows: --- System properties --- java.runtime.name : Java(TM) SE Runtime Environment sun.boot.library.path : C:\Program Files\

Re: inline property expansion not working as advertised

2008-01-14 Thread Michael Pelz Sherman
Thanks, but this is kind of ugly. Turns out there is a bug open for this: (http://issues.apache.org/bugzilla/show_bug.cgi?id=18732) ... but it's listed as an "enhancement". IMHO this is more than an "enhancement". At the very least, the Ant documentation should mention that in-line property e

Re: import file from jar (or classpath)

2008-01-14 Thread Steve Loughran
jonathan doklovic wrote: [this should probably move to the dev list?] yes After writing the patch for the import task, I also noticed that DefBase includes most of the methods needed to load a classpath resource, however, it extends AntlibDefinition. I think it would be a useful refactoring t

Re: import file from jar (or classpath)

2008-01-14 Thread jonathan doklovic
[this should probably move to the dev list?] After writing the patch for the import task, I also noticed that DefBase includes most of the methods needed to load a classpath resource, however, it extends AntlibDefinition. I think it would be a useful refactoring to create a ResourceBase that other

Problem with exec task

2008-01-14 Thread Marc Gimpel
Hi, I'm trying to use ant to install some RPM pre-requisits (PostgreSQL) on a RHEL 5 server. When I run the following command line, everything works fine [EMAIL PROTECTED] ~]# rpm -ivh http://ftp7.us.postgresql.org/pub/postgresql//binary/v8.2.6/linux/rpms/redhat/rhel-5/postgresql

Re: import file from jar (or classpath)

2008-01-14 Thread Steve Loughran
jonathan doklovic wrote: Hi, I know there's not currently a way to do this, but I think it would be very helpful to be able to use the import task to import a file from a jar. This way, when I have a handful of projects, all with common targets, I can put the common.xml build file in a jar and

Re: Isreachable issue

2008-01-14 Thread Steve Loughran
Z W wrote: Hi I'm trying to "ping" hosts on network using with ant-contrib. All these hosts variables point to the same host ie linpac2. [echo] start isreachable linpac2 Dynamically discovered 'isreachable' [EMAIL PROTECTED] Probing host linpac2 Unknown host: linpac2 Condition false; no