我在Maven中複製Ant任務中的一些文件,我無法弄清楚如何告訴ant不記錄它正在複製某些文件的事實。在AntRun中關閉記錄Ant Ant任務
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>generateContext</id>
<phase>compile</phase>
<configuration>
<target>
<copy file="src/main/context/context.xml"
toDir="target/context/"
overwrite="true" verbose="false">
<filterset>
<filter token="deploy.path" value="${deploy.path}" />
<filter token="build.env.deployment.war.name"
value="${build.env.deployment.war.name}" />
</filterset>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
每次我執行我在控制檯看到以下任務:
[INFO] --- maven-antrun-plugin:1.7:run (generateContext) @ jive-web ---
[INFO] Executing tasks
main:
[copy] Copying 1 file to /Users/jmajors/turbinetrunk/jive/jive-web/target/context
基於我也不會想到,我甚至需要擔心它的螞蟻copy task documentation,因爲它似乎默認情況下關閉了日誌記錄,但這似乎並不影響是否記錄日誌。我應該關注另一個設置嗎?
感謝, 傑里米