You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2003/09/17 09:50:37 UTC

cvs commit: maven/src/plugins-build/gump/src/test/plugin-test .cvsignore maven.xml project.xml

dion        2003/09/17 00:50:37

  Added:       src/plugins-build/gump/src/test/plugin-test .cvsignore
                        maven.xml project.xml
  Log:
  Add a test case for the gump plugin.
  This test can be run using maven:plugin-test
  
  I will work to get these style tests incorporated into the bootstrap, so that
  plugins written in jelly can finally have real tests
  
  Revision  Changes    Path
  1.1                  maven/src/plugins-build/gump/src/test/plugin-test/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  gump.xml
  
  
  
  1.1                  maven/src/plugins-build/gump/src/test/plugin-test/maven.xml
  
  Index: maven.xml
  ===================================================================
  <project xmlns:util="jelly:util"
           xmlns:j="jelly:core">
           
    <goal name="test" prereqs="test-gump">
      <attainGoal name="clean"/>
    </goal>
    
    <goal name="test-gump">
      <j:set var="expectedFile" value="${basedir}/gump.xml"/>
      <attainGoal name="gump"/>
      <util:file var="descriptor" name="${expectedFile}" />
      <j:if test="${!(descriptor.exists())}">
        <fail>gump.xml not generated</fail>
      </j:if>
      <delete file="${expectedFile}"/>
    </goal>
  </project>
  
  
  1.1                  maven/src/plugins-build/gump/src/test/plugin-test/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <project>
    <pomVersion>3</pomVersion>
    <id>test-maven-gump-plugin</id>
    <name>Test project for Maven Gump 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 Gump plugin</description>
    <shortDescription>Test for Maven Gump plugin</shortDescription>
    <url>http://maven.apache.org/reference/plugins/gump/</url>
    <siteDirectory>/www/maven.apache.org/reference/plugins/gump/</siteDirectory>
    <repository>
      <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/gump/</connection>
      <url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/gump/</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>
    <dependencies>
      <dependency>
        <groupId>commons-jelly</groupId>
        <artifactId>commons-jelly-tags-xml</artifactId>
        <version>20030211.142705</version>
        <url>http://jakarta.apache.org/commons/jelly/libs/xml/</url>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      <dependency>
        <groupId>commons-jelly</groupId>
        <artifactId>commons-jelly-tags-http</artifactId>
        <version>20030211.143043</version>
        <url>http://jakarta.apache.org/commons/jelly/libs/http/</url>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      <dependency>
        <groupId>commons-httpclient</groupId>
        <artifactId>commons-httpclient</artifactId>
        <version>2.0-rc1</version>
        <url>http://jakarta.apache.org/commons/httpclient/</url>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
    </dependencies>
  
    <build>
      <sourceDirectory>src/main</sourceDirectory>
  
      <resources>
        <resource>
          <directory>src/plugin-resources</directory>
          <targetPath>plugin-resources</targetPath>
        </resource>
        <resource>
          <directory>.</directory>
          <includes>
            <include>plugin.jelly</include>
            <include>plugin.properties</include>
            <include>project.properties</include>
            <include>project.xml</include>
          </includes>
        </resource>
      </resources>
  
  
    </build>
  </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org