Project Testing: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
==Maven Configuration== | ==Maven Configuration== | ||
<pre> | |||
... | ... | ||
<properties> | <properties> | ||
<test.scratch.directory>target/test-scratch</test.scratch.directory> | <test.scratch.directory>target/test-scratch</test.scratch.directory> | ||
Line 40: | Line 41: | ||
</executions> | </executions> | ||
</plugin> | </plugin> | ||
</pre> | </pre> | ||
==Code== | ==Code== |
Revision as of 20:00, 28 June 2016
Internal
Testing Files in the Scratch Area of the Project
Maven Configuration
... <properties> <test.scratch.directory>target/test-scratch</test.scratch.directory> </properties> ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <dependencies> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant</artifactId> <version>1.7.0</version> </dependency> </dependencies> <executions> <execution> <phase>generate-test-resources</phase> <configuration> <tasks> <mkdir dir="${test.scratch.directory}" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>