ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikas Phonsa <VPho...@suz.com>
Subject Patterns in String values
Date Fri, 01 Aug 2003 00:28:45 GMT
I want to see if a property in a property file has szome value set.I plan to
use a condition for that as follows.

<property file="${prop.file}"/>
<condition property="newProp">
			<equals arg1="${cvsRoot}" arg2=""/>
</condition>

It seems that args="*" doesn't mean the  "*" as in regular patterns.It
checks if the arg1 equals an actual * .

How can I make <equals> check if arg1 has any value in it.

Vik



-----Original Message-----
From: Dale Anson [mailto:danson@germane-software.com] 
Sent: Thursday, July 31, 2003 3:56 PM
To: Ant Users List
Subject: Re: InputHandler/exec

Hi Matt,

I responded to this earlier, but the subject is "Conditional Statement". 
I included some code that will pop up a swing dialog.

Dale


Matt wrote:

>Hi
>
>I am writing a small java GUI program that needs to be used to get CVS
>repository information from a user before a CVS import is done with
>Ant.That program is basically intended update the cvsroot and password
>variable being used in Ant CVS task for a particular project and also
>store those is a property file for future use.
>
>Now I need to know how to run that program and have it update the
>properties in the Ant script. Should I use inputhandler ( input task
>doesn't work in my WSAD IDE) or exec. How does an external java program
>connect directly to properties in Ant script. Or Ant can just load
>properties from an external properties files that program would update.
>
>Any ideas.Maybe I'm on an entirely wrong track.
>
>The aim is to somehow ( gui or no gui ) prompt the use to enter the CVS
>info when a project is import for the first time.
>
>Matt.
>
>
>
>-----Original Message-----
>From: Richard Hill [mailto:RHill@classmates.com] 
>Sent: Thursday, July 31, 2003 11:04 AM
>To: 'user@ant.apache.org'
>Subject: Setting a project timeout?
>
>I'm using ant to run some tests scripts and I'm running into an issue
>where
>the scripts (Ant/HttpUnit/JUnit based) hang waiting for a response from
>a
>web server that may never come. Is there a way of giving an Ant project
>a
>timeout to fail/end gracefully if it runs too long? If so, how would you
>do
>it?
>
>Any ideas would be much appreciated.
>Thanks,
>
>Richard
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message