You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jared Blitzstein <ma...@blitzstein.net> on 2007/04/30 20:55:06 UTC
antrun plugin not honoring overwrite="false" (explicit or by default)
Anyone else have a problem with antrun ignoring overwrite="false"? I
have the following in my pom
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<copy
todir="${basedir}/target/${artifactId}/WEB-INF/config/">
<fileset
dir="${basedir}/target/classes/config/">
<include name="*.*" />
</fileset>
</copy>
<copy overwrite="false"
todir="${basedir}/src/main/webapp/WEB-INF/config/">
<fileset
dir="${basedir}/target/classes/config/">
<include name="*.*" />
</fileset>
</copy>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
The second copy shouldn't override files if they already exist in
that directory, but it is. Anyone see anything incorrect with this code?