Added test project.
Fixed bug where file wasn't being created in basedir git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114023 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -5,4 +5,4 @@
|
||||
# keep them apart from the project specific properties.
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
maven.ant.generatebuild.file = build.xml
|
||||
maven.ant.generatebuild.file = ${basedir}/build.xml
|
||||
|
||||
1
ant/src/test/plugin-test/.cvsignore
Normal file
1
ant/src/test/plugin-test/.cvsignore
Normal file
@@ -0,0 +1 @@
|
||||
gump.xml
|
||||
17
ant/src/test/plugin-test/maven.xml
Normal file
17
ant/src/test/plugin-test/maven.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:j="jelly:core">
|
||||
|
||||
<goal name="test" prereqs="test-ant">
|
||||
<attainGoal name="clean"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test-ant">
|
||||
<j:set var="expectedFile" value="${basedir}/build.xml"/>
|
||||
<attainGoal name="ant"/>
|
||||
<util:file var="buildXml" name="${expectedFile}" />
|
||||
<j:if test="${!(buildXml.exists())}">
|
||||
<fail>build.xml not generated</fail>
|
||||
</j:if>
|
||||
<delete file="${expectedFile}"/>
|
||||
</goal>
|
||||
</project>
|
||||
39
ant/src/test/plugin-test/project.xml
Normal file
39
ant/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-ant-plugin</id>
|
||||
<name>Test project for Maven Ant 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 Ant plugin</description>
|
||||
<shortDescription>Test for Maven Ant plugin</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/ant/</url>
|
||||
<siteDirectory>/www/maven.apache.org/reference/plugins/ant/</siteDirectory>
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/ant/</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/ant/</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>
|
||||
@@ -7,9 +7,10 @@
|
||||
|
||||
<body>
|
||||
<release version="1.4" date="in CVS">
|
||||
<action dev="dion" type="fix">
|
||||
Separate build.xml template from plugin.jelly
|
||||
<action dev="dion" type="update">
|
||||
Added test project
|
||||
</action>
|
||||
<action dev="dion" type="fix">Separate build.xml template from plugin.jelly</action>
|
||||
<action dev="dion" type="fix">
|
||||
Allow dependencies other than 'jars' to be downloaded
|
||||
</action>
|
||||
|
||||
Reference in New Issue
Block a user