ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject conditional redeploy (only if something is changed)
Date Thu, 13 Jun 2002 11:28:08 GMT

I would like to redeploy the WLS (in BEA case touch REDEPLOY) only if two
condition are met:
1) the compilation was sucessfull.
2) at least one file was compiled.

Simple try:

   <target name="compile" depends="init">
   <javac ...>

   <target name="redeploy" depends="compile">
    <exec executable="touch">
      <arg line="${dir.application}/${}/WEB-INF/REDEPLOY"/>

doesn't meet the second condition.

I guess I should set some variable in compile target and then do
conditional redeploy.
But how can I figure out, if something was indeed compiled?

Any hints?

David Ostrovsky

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message