Author: carlos Date: Sat Dec 31 08:50:12 2005 New Revision: 360325 URL: http://svn.apache.org/viewcvs?rev=360325&view=rev Log: Added test for maven.test.classpath PR: MANTRUN-28
Added: maven/plugins/trunk/maven-antrun-plugin/src/test/projects/test2/ maven/plugins/trunk/maven-antrun-plugin/src/test/projects/test2/pom.xml (with props) Added: maven/plugins/trunk/maven-antrun-plugin/src/test/projects/test2/pom.xml URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-antrun-plugin/src/test/projects/test2/pom.xml?rev=360325&view=auto ============================================================================== --- maven/plugins/trunk/maven-antrun-plugin/src/test/projects/test2/pom.xml (added) +++ maven/plugins/trunk/maven-antrun-plugin/src/test/projects/test2/pom.xml Sat Dec 31 08:50:12 2005 @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.maven.plugins.antrun</groupId> + <artifactId>test2</artifactId> + <version>1.0-SNAPSHOT</version> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>test</phase> + <configuration> + <tasks> + <property name="test.classpath" refid="maven.test.classpath"/> + <echo>${test.classpath}</echo> + <fail message="Test classpath doesn't contain test scoped dependencies"> + <condition> + <not> + <contains string="${test.classpath}" substring="junit" casesensitive="no"/> + </not> + </condition> + </fail> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> Propchange: maven/plugins/trunk/maven-antrun-plugin/src/test/projects/test2/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-antrun-plugin/src/test/projects/test2/pom.xml ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision"