Add test project.
Shows bad plugin.properties loading git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114215 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e2dc0c3e94
commit
7aaed2733c
3
dist/src/plugin-test/.cvsignore
vendored
Normal file
3
dist/src/plugin-test/.cvsignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
gump.xml
|
||||
*.log
|
||||
target
|
||||
21
dist/src/plugin-test/maven.xml
vendored
Normal file
21
dist/src/plugin-test/maven.xml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:dist="dist"
|
||||
xmlns:j="jelly:core">
|
||||
|
||||
<goal name="testPlugin" prereqs="test-dist">
|
||||
</goal>
|
||||
|
||||
<goal name="test-dist">
|
||||
<echo>dist dir is ${maven.dist.dir}</echo>
|
||||
<attainGoal name="dist"/>
|
||||
<util:tokenize var="files" delim=",">-src.tar.gz,-src.zip,.tar.gz,.zip</util:tokenize>
|
||||
<j:forEach var="file" items="${files}">
|
||||
<!-- NOTE: maven.dist.dir doesn't work here??? -->
|
||||
<j:set var="expectedFile" value="${maven.build.dir}/distributions/test-maven-dist-plugin-1.0-SNAPSHOT${file}"/>
|
||||
<util:file var="file" name="${expectedFile}" />
|
||||
<j:if test="${!(file.exists())}">
|
||||
<fail>${expectedFile} not generated</fail>
|
||||
</j:if>
|
||||
</j:forEach>
|
||||
</goal>
|
||||
</project>
|
||||
40
dist/src/plugin-test/project.xml
vendored
Normal file
40
dist/src/plugin-test/project.xml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project>
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>test-maven-dist-plugin</id>
|
||||
<name>Test project for Maven Dist 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 Dist plugin</description>
|
||||
<shortDescription>Test for Maven Dist plugin</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/dist/</url>
|
||||
<siteDirectory>/www/maven.apache.org/reference/plugins/dist/</siteDirectory>
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/dist/</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/dist/</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>
|
||||
<sourceDirectory>src/main</sourceDirectory>
|
||||
</build>
|
||||
</project>
|
||||
6
dist/src/plugin-test/src/main/org/apache/maven/Dummy.java
vendored
Normal file
6
dist/src/plugin-test/src/main/org/apache/maven/Dummy.java
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
package org.apache.maven;
|
||||
|
||||
public class Dummy
|
||||
{
|
||||
public String badChecky = "error";
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user