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/10/17 03:56:26 UTC

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

dion        2003/10/16 18:56:26

  Added:       src/plugins-build/dist/src/plugin-test/src/main/org/apache/maven
                        Dummy.java
               src/plugins-build/dist/src/plugin-test maven.xml .cvsignore
                        project.xml
  Log:
  Add test project.
  Shows bad plugin.properties loading
  
  Revision  Changes    Path
  1.1                  maven/src/plugins-build/dist/src/plugin-test/src/main/org/apache/maven/Dummy.java
  
  Index: Dummy.java
  ===================================================================
  package org.apache.maven;
  
  public class Dummy
  {
      public String badChecky = "error";
  } 
  
  
  1.1                  maven/src/plugins-build/dist/src/plugin-test/maven.xml
  
  Index: maven.xml
  ===================================================================
  <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>
  
  
  1.1                  maven/src/plugins-build/dist/src/plugin-test/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  gump.xml
  *.log
  target
  
  
  
  1.1                  maven/src/plugins-build/dist/src/plugin-test/project.xml
  
  Index: project.xml
  ===================================================================
  <?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>
  
  
  

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