maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arto Pastinen <arto.pasti...@ofw.fi>
Subject Re: like ant unless
Date Thu, 01 Apr 2004 12:03:53 GMT
All ant tags work also in maven.
Look plugins jelly files in maven/plugins/...
Following is from clean plugin:
<?xml version="1.0"?>

<project 
  xmlns:j="jelly:core"
  xmlns:ant="jelly:ant">

  <goal name="clean" description="Remove all project artifacts"
    prereqs="clean:clean"/>

  <goal name="clean:clean"
        description="Remove all project artifacts">
    <ant:delete dir="${maven.build.dir}"/>
    <ant:delete file="${basedir}/velocity.log" quiet="true"
failonerror="false"/
>
  </goal>
  
</project>


On Thu, 2004-04-01 at 14:51, Marcin Gurbisz wrote:
> Hi
> 
> Have maven something like conditional goal execution? Like "unless" in 
> ant target.
> 
> Regards,
> Marcin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message