ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grinvald, Edward" <EDWARD.GRINV...@ca.com>
Subject Property Precedence
Date Wed, 12 Jun 2002 16:15:58 GMT
Hello,
	could somebody please explain to me what is the precedence of
properties in a project:
+ set in build.xml
+ specified with -D at prompt
+ from the properties file
+ is there a difference between setting a property in the xml, or calling
.setProperty() from a <script>.

Thank You,
 
Edward Grinvald
Computer Associates International
Programmer, Storage Development
Edward.Grinvald@ca.com
1-631-342-6000 x76350


-----Original Message-----
From: Marc Logemann [mailto:devlists@logemann.info] 
Sent: Wednesday, June 12, 2002 11:36 AM
To: ant-user@jakarta.apache.org
Subject: Re: parsing a task output for further processing


> If you're running Ant1.5, and assuming <tclist> has an option to write 
> its output to a file (which, if it doesn't, would definitely be bad, 
> but I suppose you could work around it in the meantime by bracketing 
> your <tclist> in a <record>):

>   <property name="app" value="maxbahr"/>

>   <target name="stopApp" depends="chkAppStatus" if="app.running">
>     <echo>Stopping ${app}...</echo>
>     <tcstop  url="${catalina.url}" username="${catalina.username}"
>              password="${catalina.password}" path="/${app}"/>
>   </target>

>   <target name="chkAppStatus">
>     <loadfile property="app.running" srcFile="tclist.out">
>       <filterchain>
>         <linecontains>
>           <contains value="/${app}:running"/>
>         </linecontains>
>       </filterchain>
>     </loadfile>
>   </target>

Diane, thx for this great solution. It seems i ve missed some important
commands in Ant like <loadfile> or <filterchain>.

Cause tclist cant output to file (IMO) i will also look up your mentioned
<record> command.




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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message