Add test for clean plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7288b50328
commit
bfd77bf05d
1
clean/clean/src/test/plugin-test/.cvsignore
Normal file
1
clean/clean/src/test/plugin-test/.cvsignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.log
|
||||||
16
clean/clean/src/test/plugin-test/maven.xml
Normal file
16
clean/clean/src/test/plugin-test/maven.xml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<project xmlns:j="jelly:core" xmlns:u="jelly:util">
|
||||||
|
|
||||||
|
<goal name="test" prereqs="test-clean">
|
||||||
|
</goal>
|
||||||
|
|
||||||
|
<goal name="test-clean">
|
||||||
|
<mkdir dir="${maven.build.dir}"/>
|
||||||
|
<attainGoal name="clean"/>
|
||||||
|
|
||||||
|
<u:file var="target" name="${maven.build.dir}"/>
|
||||||
|
<j:if test="${(target.exists())}">
|
||||||
|
<fail>maven.build.dir was not deleted</fail>
|
||||||
|
</j:if>
|
||||||
|
|
||||||
|
</goal>
|
||||||
|
</project>
|
||||||
39
clean/clean/src/test/plugin-test/project.xml
Normal file
39
clean/clean/src/test/plugin-test/project.xml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project>
|
||||||
|
<pomVersion>3</pomVersion>
|
||||||
|
<id>test-maven-clean-plugin</id>
|
||||||
|
<name>Test project for Maven Clean Plugin</name>
|
||||||
|
<groupId>maven</groupId>
|
||||||
|
<currentVersion>1.0-SNAPSHOT</currentVersion>
|
||||||
|
<organization>
|
||||||
|
<name>Apache Software Foundation</name>
|
||||||
|
<url>http://www.apache.org/</url>
|
||||||
|
<logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo>
|
||||||
|
</organization>
|
||||||
|
<inceptionYear>2001</inceptionYear>
|
||||||
|
<package>org.apache.maven</package>
|
||||||
|
<logo>http://maven.apache.org/images/maven.jpg</logo>
|
||||||
|
<description>Test for Maven Clean plugin</description>
|
||||||
|
<shortDescription>Test for Maven Clean plugin</shortDescription>
|
||||||
|
<url>http://maven.apache.org/reference/plugins/clean/</url>
|
||||||
|
<siteDirectory>/www/maven.apache.org/reference/plugins/clean/</siteDirectory>
|
||||||
|
<repository>
|
||||||
|
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/clean/</connection>
|
||||||
|
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/clean/</url>
|
||||||
|
</repository>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<name>dIon Gillard</name>
|
||||||
|
<id>dion</id>
|
||||||
|
<email>dion@multitask.com.au</email>
|
||||||
|
<organization>Multitask Consulting</organization>
|
||||||
|
<roles>
|
||||||
|
<role>Documentation</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
1
clean/src/test/plugin-test/.cvsignore
Normal file
1
clean/src/test/plugin-test/.cvsignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.log
|
||||||
16
clean/src/test/plugin-test/maven.xml
Normal file
16
clean/src/test/plugin-test/maven.xml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<project xmlns:j="jelly:core" xmlns:u="jelly:util">
|
||||||
|
|
||||||
|
<goal name="test" prereqs="test-clean">
|
||||||
|
</goal>
|
||||||
|
|
||||||
|
<goal name="test-clean">
|
||||||
|
<mkdir dir="${maven.build.dir}"/>
|
||||||
|
<attainGoal name="clean"/>
|
||||||
|
|
||||||
|
<u:file var="target" name="${maven.build.dir}"/>
|
||||||
|
<j:if test="${(target.exists())}">
|
||||||
|
<fail>maven.build.dir was not deleted</fail>
|
||||||
|
</j:if>
|
||||||
|
|
||||||
|
</goal>
|
||||||
|
</project>
|
||||||
39
clean/src/test/plugin-test/project.xml
Normal file
39
clean/src/test/plugin-test/project.xml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project>
|
||||||
|
<pomVersion>3</pomVersion>
|
||||||
|
<id>test-maven-clean-plugin</id>
|
||||||
|
<name>Test project for Maven Clean Plugin</name>
|
||||||
|
<groupId>maven</groupId>
|
||||||
|
<currentVersion>1.0-SNAPSHOT</currentVersion>
|
||||||
|
<organization>
|
||||||
|
<name>Apache Software Foundation</name>
|
||||||
|
<url>http://www.apache.org/</url>
|
||||||
|
<logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo>
|
||||||
|
</organization>
|
||||||
|
<inceptionYear>2001</inceptionYear>
|
||||||
|
<package>org.apache.maven</package>
|
||||||
|
<logo>http://maven.apache.org/images/maven.jpg</logo>
|
||||||
|
<description>Test for Maven Clean plugin</description>
|
||||||
|
<shortDescription>Test for Maven Clean plugin</shortDescription>
|
||||||
|
<url>http://maven.apache.org/reference/plugins/clean/</url>
|
||||||
|
<siteDirectory>/www/maven.apache.org/reference/plugins/clean/</siteDirectory>
|
||||||
|
<repository>
|
||||||
|
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/clean/</connection>
|
||||||
|
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/clean/</url>
|
||||||
|
</repository>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<name>dIon Gillard</name>
|
||||||
|
<id>dion</id>
|
||||||
|
<email>dion@multitask.com.au</email>
|
||||||
|
<organization>Multitask Consulting</organization>
|
||||||
|
<roles>
|
||||||
|
<role>Documentation</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
Loading…
x
Reference in New Issue
Block a user