You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bw...@apache.org on 2003/01/30 11:59:01 UTC

cvs commit: jakarta-turbine-maven/src/plugins-build/linkcheck plugin.jelly project.properties project.xml plugin.properties

bwalding    2003/01/30 02:59:01

  Added:       src/plugins-build/linkcheck plugin.jelly project.properties
                        project.xml plugin.properties
  Log:
  MAVEN-214: LinkChecker plugin
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-maven/src/plugins-build/linkcheck/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <project 
    xmlns:j="jelly:core" 
    xmlns:define="jelly:define"
    xmlns:linkcheck="linkcheck"
    xmlns:doc="doc">
    
    <property name="maven.linkcheck.cache" value="${pom.getPluginContext('maven-linkcheck-plugin').getVariable('maven.linkcheck.cache')}"/>
    <j:if test="${context.getVariable('maven.linkcheck.enable') != null}">
        <j:set var="maven.linkcheck.enable" value="true"/>
    </j:if>
    
    <define:taglib uri="linkcheck">
      <define:jellybean
        name="linkcheck"
        className="org.apache.maven.linkcheck.LinkCheck"
        method="doExecute"
        />
    </define:taglib>
    
    <!-- ================================================================== -->
    <!-- C R E A T E   L I N K C H E C K   X M L  R E P O R T               -->
    <!-- ================================================================== -->
    
    <!-- The reason for the odd goal configuration is this:
         We really don't want the link checker to run until everything else is complete
      -->
         
    <goal name="maven-linkcheck-plugin:report">
      	<echo>This run of linkcheck does nothing except create a template linkcheck file</echo>
      	<copy fromFile="${plugin.resources}/linkcheck-temp.xml" toFile="${maven.build.dir}/linkcheck.xml"/>
    </goal>
    
    <postGoal name="xdoc:jelly-transform">
    	<attainGoal name="maven-linkcheck-plugin:report-real"/>
    </postGoal>
    
    <goal
      name="maven-linkcheck-plugin:report-real"
      description="Generate a report from the link check results">
      <echo>BaseDir: ${basedir}</echo>
      <mkdir dir="${maven.build.dir}/linkcheck"/>
      <mkdir dir="${maven.build.dir}/linkcheck/docs"/>
      <j:choose>
        <j:when test="${maven.linkcheck.enable}">
  	    <echo>Generating the LinkCheck report</echo>
  	    <linkcheck:linkcheck
      	  cache="${maven.linkcheck.cache}"
      	  exclude="${pom.repository.url}"
  	      basedir="${maven.docs.dest}"
  	      output="${maven.build.dir}/linkcheck/linkcheck-results.xml"
  	      outputEncoding="${maven.docs.outputencoding}"
  	      />
  	
  	    <doc:jsl
  	      input="${maven.build.dir}/linkcheck/linkcheck-results.xml"
  	      output="../linkcheck/docs/linkcheck.xml"
  	      stylesheet="${plugin.resources}/linkcheck.jsl"
  	      omitXmlDeclaration="true"
  	      outputMode="xml"
  	      prettyPrint="true"
  	      />
  	      
  	    <j:set var="maven.xdoc.src" value="${maven.build.dir}/linkcheck/docs"/>
  	    <echo>maven.xdoc.src: ${maven.xdoc.src}</echo>
  	    <attainGoal name="xdoc:performJSL"/>
  	  </j:when>
        <j:otherwise>
          <echo>LinkCheck not enabled as maven.linkcheck.enable is not defined.</echo>
        </j:otherwise>
      </j:choose>
  
    </goal> 
    
    <goal name="maven-linkcheck-plugin:clearcache"
    	    description="Removes the cache file">
    	 <delete file="${maven.linkcheck.cache}"/>
    </goal>
    	    
  
  </project>
  
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/linkcheck/project.properties
  
  Index: project.properties
  ===================================================================
  # -------------------------------------------------------------------
  # P R O J E C T  P R O P E R T I E S
  # -------------------------------------------------------------------
  maven.xdoc.date=left
  maven.xdoc.version=${pom.currentVersion}
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/linkcheck/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <project>
  
    <extend>${basedir}/../project.xml</extend>
    <pomVersion>3</pomVersion>
    <id>maven-linkcheck-plugin</id>
    <name>Maven LinkCheck Plug-in</name>
    <currentVersion>1.0</currentVersion>
  
    <description>
    </description>
  
    <shortDescription>Java Project Management Tools</shortDescription>
  
    <url>http://jakarta.apache.org/turbine/maven/reference/plugins/linkcheck/</url>
    <issueTrackingUrl>http://jira.werken.com/BrowseProject.jspa?id=10030</issueTrackingUrl>
    <siteAddress>jakarta.apache.org</siteAddress>
    <siteDirectory>/www/jakarta.apache.org/turbine/maven/reference/plugins/linkcheck/</siteDirectory>
    <distributionDirectory>/www/jakarta.apache.org/builds/jakarta-turbine-maven/</distributionDirectory>
  
    <developers>
    </developers>
  
    <dependencies>
  
      <dependency>
        <id>commons-betwixt</id>
        <version>1.0-beta-1</version>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      
      <dependency>
        <id>commons-collections</id>
        <version>2.1</version>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      
      <dependency>
        <id>commons-digester</id>
        <version>1.3</version>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      
      <dependency>
        <id>commons-jelly+tags-jsl</id>
        <version>SNAPSHOT</version>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      
      <dependency>
        <groupId>commons-jelly</groupId>
        <artifactId>commons-jelly-tags-xml</artifactId>
        <version>SNAPSHOT</version>
        <url>http://jakarta.apache.org/commons/sandbox/jelly/tags/xml/</url>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      
      <dependency>
        <id>commons-logging</id>
        <version>1.0</version>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      
      <dependency>
        <id>httpunit</id>
        <version>1.5.1</version>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      
      <dependency>
        <id>jtidy</id>
        <version>4aug2000r7-dev</version>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency>
      
      <!--dependency>
        <id>rhino</id>
        <version>1.5R4-RC3</version>
        <jar>js-1.5R4-RC3.jar</jar>
        <properties>
          <classloader>root.maven</classloader>
        </properties>
      </dependency-->
  
    </dependencies>
    
    
    
  </project>
  
  
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/linkcheck/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  # -------------------------------------------------------------------
  # P L U G I N  P R O P E R I E S
  # -------------------------------------------------------------------
  # LinkCheck report plugin.
  # -------------------------------------------------------------------
  
  maven.build.dir = ${basedir}/target
  
  
  maven.linkcheck.cache=${maven.build.dir}/linkcheck/linkcheck.cache
  
  
  
  
  maven.docs.dest = ${maven.build.dir}/docs
  maven.docs.outputencoding = ISO-8859-1