CVS: jcontainer/dna/tools/src/plugin-test maven.xml,NONE,1.1 project.xml,NONE,1.1

Peter Donald <pdonald-yCVjj/[email protected]> Fri, 28 Nov 2003 23:05:52 -0600
Newsgroups gmane.comp.java.jcontainer.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcontainer/jcontainer/dna/tools/src/plugin-test
In directory hogshead.codehaus.org:/tmp/cvs-serv16899/dna/tools/src/plugin-test

Added Files:
	maven.xml project.xml 
Log Message:
Add in tests for plugin

--- NEW FILE: maven.xml ---
<project
    xmlns:ant="jelly:ant"
    xmlns:j="jelly:core"
    default="main">

    <goal name="test-clean">
        <attainGoal name="clean"/>
    </goal>

    <goal name="test-dna-generate">

        <attainGoal name="dna:metagenerate"/>

        <ant:available
            file="${maven.build.dest}/com/biz/MyClass-meta.binary"
            type="file"
            property="descAvailable"/>
        <j:if test="${descAvailable != 'true'}">
            <ant:fail message="Failed to generate descriptor"/>
        </j:if>
    </goal>

    <goal name="main" prereqs="test-dna-generate"/>
</project>
--- NEW FILE: project.xml ---
<?xml version="1.0" encoding="UTF-8"?>

<project>
    <extend>${basedir}/../../../project.xml</extend>
    <id>test-dna-tools-plugin</id>
    <name>Test project for DNA Tools Plugin</name>

    <dependencies>
        <dependency>
            <groupId>dna</groupId>
            <artifactId>dna-tools-plugin</artifactId>
            <version>${pom.currentVersion}</version>
            <type>plugin</type>
        </dependency>
    </dependencies>

</project>