[jboss-svn-commits] JBL Code SVN: r13025 - in labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src: site and 2 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jul 2 22:21:24 EDT 2007
Author: steve.ebersole at jboss.com
Date: 2007-07-02 22:21:24 -0400 (Mon, 02 Jul 2007)
New Revision: 13025
Removed:
labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/DocBookSupportResourcesMojo.java
Modified:
labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/docbook-support.apt
labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/examples/custom-xslt.apt
labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/index.apt
labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/site.xml
Log:
cleanup
Deleted: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/DocBookSupportResourcesMojo.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/DocBookSupportResourcesMojo.java 2007-07-03 02:04:15 UTC (rev 13024)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/DocBookSupportResourcesMojo.java 2007-07-03 02:21:24 UTC (rev 13025)
@@ -1,103 +0,0 @@
-/*
- * Copyright © 2007 Red Hat Middleware, LLC. All rights reserved.
- *
- * This copyrighted material is made available to anyone wishing to use, modify,
- * copy, or redistribute it subject to the terms and conditions of the GNU
- * Lesser General Public License, v. 2.1. This program is distributed in the
- * hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details. You should have received a
- * copy of the GNU Lesser General Public License, v.2.1 along with this
- * distribution; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * Red Hat Author(s): Steve Ebersole
- */
-package org.jboss.maven.plugins.jdocbook;
-
-import java.io.File;
-import java.io.IOException;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
-import org.codehaus.plexus.util.FileUtils;
-
-/**
- * Defines resources-like processing for docbook-support files such
- * as XSLT, fonts, resources (images/css/etc), moving them to specific locations
- * within the output directory for inclusion in the final package.
- *
- * @goal support-resources
- * @phase process-resources
- * @requiresDependencyResolution
- *
- * @author Steve Ebersole
- */
-public class DocBookSupportResourcesMojo extends AbstractMojo {
-
- /**
- * The directory containing the XSLT sources.
- *
- * @parameter expression="${basedir}/src/main/styles"
- */
- protected File xsltSourceDirectory;
-
- /**
- * The directory containing fonts to be included in package.
- *
- * @parameter expression="${basedir}/src/main/fonts"
- */
- protected File fontSourceDirectory;
-
- /**
- * The directory containing images to be included in package.
- *
- * @parameter expression="${basedir}/src/main/images"
- */
- protected File imagesSourceDirectory;
-
- /**
- * The directory containing css to be included in package.
- *
- * @parameter expression="${basedir}/src/main/css"
- */
- protected File cssSourceDirectory;
-
- /**
- * The directory from which packaging is staged.
- *
- * @parameter expression="${project.build.outputDirectory}"
- */
- protected File outputDirectory;
-
- public void execute() throws MojoExecutionException, MojoFailureException {
- copySource( xsltSourceDirectory, new File( outputDirectory, "styles" ) );
- copySource( fontSourceDirectory, new File( outputDirectory, "fonts" ) );
- copySource( imagesSourceDirectory, new File( outputDirectory, "images" ) );
- copySource( cssSourceDirectory, new File( outputDirectory, "css" ) );
- }
-
- private void copySource(File sourceDirectory, File targetDirectory)
- throws MojoExecutionException {
- getLog().info( "attempting to copy directory : " + sourceDirectory.getAbsolutePath() );
- if ( !sourceDirectory.exists() ) {
- return;
- }
- String[] list = sourceDirectory.list();
- if ( list == null || list.length == 0 ) {
- return;
- }
-
- if ( !targetDirectory.exists() ) {
- targetDirectory.mkdirs();
- }
-
- try {
- FileUtils.copyDirectoryStructure( sourceDirectory, targetDirectory );
- }
- catch ( IOException e ) {
- throw new MojoExecutionException( "unable to copy source directory [" + sourceDirectory.getAbsolutePath() + "]", e );
- }
- }
-}
Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/docbook-support.apt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/docbook-support.apt 2007-07-03 02:04:15 UTC (rev 13024)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/docbook-support.apt 2007-07-03 02:21:24 UTC (rev 13025)
@@ -38,7 +38,7 @@
[]
users can reference XSLT stylesheets from a <docbook-support> dependency
- as a custom stylesheet (see the {{{format.html}formats}} page).
+ as a custom stylesheet (see the {{{usage.html}usage}} page).
[[2]] Given the {{{staging.html}staging}} approach taken by this plugin
for dealing with with resources (css, fonts and images) it automatically
Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/examples/custom-xslt.apt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/examples/custom-xslt.apt 2007-07-03 02:04:15 UTC (rev 13024)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/examples/custom-xslt.apt 2007-07-03 02:21:24 UTC (rev 13025)
@@ -92,7 +92,7 @@
fo.xslt
+----+
-Using that would be as simple as:
+ Using that would be as simple as:
+----+
<plugin>
Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/index.apt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/index.apt 2007-07-03 02:04:15 UTC (rev 13024)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/apt/index.apt 2007-07-03 02:21:24 UTC (rev 13025)
@@ -86,9 +86,9 @@
* Examples
- To provide you with better understanding of some usages of the <jDocBook Plugin>,
- you can take a look at the following examples:
+ To provide you with better understanding of some usages of the <jDocBook Plugin>,
+ you can take a look at the following examples:
- * {{{examples/example-one.html}Example Description One}}
+ * {{{examples/custom-xslt.html}Using custom XSLT}}
- * {{{examples/example-two.html}Example Description Two}}
\ No newline at end of file
+ * {{{examples/resource-staging.html}Staging resources}}
\ No newline at end of file
Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/site.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/site.xml 2007-07-03 02:04:15 UTC (rev 13024)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/site/site.xml 2007-07-03 02:21:24 UTC (rev 13025)
@@ -14,7 +14,7 @@
~
~ Red Hat Author(s): Steve Ebersole
-->
-<project name="Maven">
+<project name="jDocBook Plugin">
<body>
<links>
More information about the jboss-svn-commits
mailing list