ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@goodconsultants.com
Subject Validating and assign variables in ant
Date Tue, 16 Dec 2003 17:46:44 GMT
All,

I think I send this before but unfortunately, no answers yet. So here I go 
again...

Can I validate and then assign values to properties in ant just like any shell 
scripts would?

Here is what I am trying to do:

      <property name="catalina.home" value="${system.CATALINA_HOME}"/>
      <property name="appserver.home" value="${system.JBOSS_DIST}"/>

As you can see, when the environment variable is not set, catalina.home will 
always be assigned to a string "${system.CATALINA_HOME}. What is the correct 
way to do it? 

Thanks

Barry


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


Mime
View raw message