ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Scokart <gscok...@gmail.com>
Subject Re: deep-if/deep-unless
Date Sat, 19 Dec 2009 13:26:54 GMT
2009/12/16 Dominique Devienne <ddevienne@gmail.com>

>
>    ant deploy /block:war
>
>
Sounds very cool !

I often tried to implement such things into my ant script, but I never found
the right ideom to do that.  But this gave me an idea I might give a try :

<project>

    <target name="/block:war" depends="/block:compile">
        <property name="skip.war"/>
    </target>
    <target name="war" depends="compile" unless="skip.war">
       ...
    </target>

    <target name="deploy" depends="war" unless="skip.deploy">
       ...
    </target>

</project>


$> ant /block:war deploy

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