当某个文件已经存在时,我该如何禁用maven-antrun-plugin的执行?
[...]
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- do something really complex in order to create file.txt -->
</target>
</configuration>
</execution>
</executions>
</build>
[...]
执行需要一些时间,我不想在
file.txt
已经存在时每次都重复执行。