aheritier    2004/09/21 15:14:25

  Added:       pdf/src/plugin-test .cvsignore maven.xml project.xml
               pdf/src/plugin-test/xdocs navigation.xml test.xml
               pdf/src/plugin-test/xdocs/images asf_logo_wide_clear.gif
                        maven.gif
  Log:
  Add a test case for the pdf plugin
  
  Revision  Changes    Path
  1.1                  maven-plugins/pdf/src/plugin-test/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  gump.xml
  target
  *.log
  
  
  
  1.1                  maven-plugins/pdf/src/plugin-test/maven.xml
  
  Index: maven.xml
  ===================================================================
  <!-- 
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
   -->
  <project xmlns:util="jelly:util"
           xmlns:assert="assert"
           xmlns:j="jelly:core">
           
    <goal name="testPlugin" prereqs="clean,test-pdf">
    </goal>
    
    <goal name="test-pdf">
      <attainGoal name="site"/>
      <attainGoal name="pdf"/>
      <assert:assertFileExists file="${maven.docs.dest}/${pom.artifactId}.pdf"/>
    </goal>
  </project>
  
  
  1.1                  maven-plugins/pdf/src/plugin-test/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- 
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
   -->
  
  
  <project>
    <extend>${basedir}/../../../plugin-parent/project.xml</extend>
    <pomVersion>3</pomVersion>
    <id>test-maven-pdf-plugin</id>
    <name>Test project for Maven PDF Plugin</name>
    <groupId>maven</groupId>
    <currentVersion>1.0</currentVersion>
    <inceptionYear>2001</inceptionYear>
    <package>org.apache.maven</package>
    <description>Test for Maven PDF plugin</description>
    <shortDescription>Test for Maven PDF plugin</shortDescription>
    <url>http://maven.apache.org/reference/plugins/pdf/</url>
    <siteDirectory>/www/maven.apache.org/reference/plugins/pdf/</siteDirectory>
    <repository>
      <connection>scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:maven-plugins/pdf/</connection>
      <url>http://cvs.apache.org/viewcvs/maven-plugins/pdf/</url>
    </repository>
  </project>
  
  
  
  1.1                  maven-plugins/pdf/src/plugin-test/xdocs/navigation.xml
  
  Index: navigation.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!-- 
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
   -->
  <project name="Maven PDF Plugin">
    <title>Maven PDF Plugin</title>
    <body>
      <links>
        <item name="Maven" href="http://maven.apache.org/"/>
        <item name="FOP" href="http://xml.apache.org/fop/"/>
        <item name="PDF Documentation" href="/maven-pdf-plugin.pdf" 
img="/images/pdf.gif" target="_blank"/>
      </links>
      <menu name="Overview">
        <item name="Test" href="/test.html"/>
      </menu>
    </body>
  </project>
  
  
  
  1.1                  maven-plugins/pdf/src/plugin-test/xdocs/test.xml
  
  Index: test.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- 
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
   -->
  <document>
    <properties>
      <author email="nospam.AT.foo.DOT.com">Jon S. Stevens</author>
      <author email="mrsmith.AT.foo.DOT.com">Mr. Smith</author>
      <title/>
    </properties>
    <meta name="keyword" content="jakarta, java"/>
    <body>
      <section name="Section 1">
        <p>This is section 1.</p>
        <table>
          <tr>
            <td>This is a table</td>
          </tr>
        </table>
        <ul>
          <li>This is an unordered list.</li>
        </ul>
      </section>
      <section name="Section 2">
        <p>This is section 2.</p>
        <ol>
          <li>This is an ordered list.</li>
        </ol>
      </section>
      <section name="Section 3">
        <p>This is section 3.</p>
        <source><![CDATA[
      Anything within this tag is rendered as a "box"
      with blue lines and <pre/> tags around it.
  ]]></source>
        <pre><![CDATA[
      Anything within this tag is rendered as a "box"
      with blue lines and <pre/> tags around it.
  ]]></pre>
        <subsection name="Subsection of Section 3">
          <p>
          This is the subsection 3.
      </p>
        </subsection>
      </section>
    </body>
  </document>
  
  
  
  1.1                  
maven-plugins/pdf/src/plugin-test/xdocs/images/asf_logo_wide_clear.gif
  
        <<Binary file>>
  
  
  1.1                  maven-plugins/pdf/src/plugin-test/xdocs/images/maven.gif
  
        <<Binary file>>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to