[jboss-svn-commits] JBL Code SVN: r13341 - in labs/jbossbuild/maven-plugins/tags: maven-jdocbook-style-plugin-1.0.0 and 7 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Jul 10 22:20:50 EDT 2007
Author: steve.ebersole at jboss.com
Date: 2007-07-10 22:20:50 -0400 (Tue, 10 Jul 2007)
New Revision: 13341
Added:
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/pom.xml
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/shared/
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/shared/file/DirectoryCopier.java
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/resources/META-INF/plexus/components.xml
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/examples/custom-directories.apt
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/index.apt
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/usage.apt
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/site.xml
Removed:
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/pom.xml
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/shared/file/DirectoryCopier.java
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/resources/META-INF/plexus/components.xml
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/examples/custom-directories.apt
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/index.apt
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/usage.apt
labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/site.xml
Log:
[maven-release-plugin] copy for tag maven-jdocbook-style-plugin-1.0.0
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0 (from rev 13113, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin)
Deleted: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/pom.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/pom.xml 2007-07-05 17:35:48 UTC (rev 13113)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/pom.xml 2007-07-11 02:20:50 UTC (rev 13341)
@@ -1,111 +0,0 @@
-<?xml version="1.0"?>
-<!--
- ~ Copyright (c) 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
- -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-docbook-support-plugin</artifactId>
- <packaging>maven-plugin</packaging>
- <version>1.0.0-SNAPSHOT</version>
-
- <name>Maven Docbook Support Plugin</name>
- <description>Defines the custom 'docbook-support' packaging.</description>
-
- <inceptionYear>2007</inceptionYear>
- <organization>
- <name>JBoss, a division of Red Hat, Inc</name>
- <url>http://jboss.org/</url>
- </organization>
-
- <developers>
- <developer>
- <name>Steve Ebersole</name>
- <email>steve at hibernate.org</email>
- <organization>JBoss, a division of Red Hat, Inc</organization>
- <organizationUrl>http://jboss.org</organizationUrl>
- <timezone>-5</timezone>
- </developer>
- </developers>
-
- <licenses>
- <license>
- <name>GNU Lesser General Public License</name>
- <url>http://www.gnu.org/copyleft/lesser.html</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
-
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/trunk/maven-docbook-support-plugin</connection>
- <developerConnection>scm:svn:https://svn.labs.jboss.org/labs/jbossbuild/maven-plugins/trunk/maven-docbook-support-plugin</developerConnection>
- <url>http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/trunk/maven-docbook-support-plugin</url>
- </scm>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>plexus</groupId>
- <artifactId>plexus-utils</artifactId>
- <version>1.0.1</version>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-release-plugin</artifactId>
- <configuration>
- <tagBase>https://svn.labs.jboss.org/labs/jbossbuild/maven-plugins/tags</tagBase>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.4</source>
- <target>1.4</target>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jxr-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-plugin-plugin</artifactId>
- </plugin>
- </plugins>
- </reporting>
-
-</project>
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/pom.xml (from rev 13340, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/pom.xml)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/pom.xml (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/pom.xml 2007-07-11 02:20:50 UTC (rev 13341)
@@ -0,0 +1,109 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>3</version>
+ </parent>
+
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-style-plugin</artifactId>
+ <packaging>maven-plugin</packaging>
+ <version>1.0.0</version>
+
+ <name>Maven Docbook Style Plugin</name>
+ <description>Defines the custom 'jdocbook-style' packaging.</description>
+
+ <inceptionYear>2007</inceptionYear>
+ <organization>
+ <name>JBoss, a division of Red Hat, Inc</name>
+ <url>http://jboss.org/</url>
+ </organization>
+
+ <developers>
+ <developer>
+ <name>Steve Ebersole</name>
+ <email>steve at hibernate.org</email>
+ <organization>JBoss, a division of Red Hat, Inc</organization>
+ <organizationUrl>http://jboss.org</organizationUrl>
+ <timezone>-5</timezone>
+ </developer>
+ </developers>
+
+ <licenses>
+ <license>
+ <name>GNU Lesser General Public License</name>
+ <url>http://www.gnu.org/copyleft/lesser.html</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <scm>
+ <connection>scm:svn:https://svn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0</developerConnection>
+ <url>scm:svn:https://svn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0</url>
+ </scm>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <tagBase>https://svn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/tags</tagBase>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.4</source>
+ <target>1.4</target>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
\ No newline at end of file
Deleted: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java 2007-07-05 17:35:48 UTC (rev 13113)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java 2007-07-11 02:20:50 UTC (rev 13341)
@@ -1,103 +0,0 @@
-/*
- * Copyright (c) 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.docbook.support;
-
-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 resources
- * @phase process-resources
- * @requiresDependencyResolution
- *
- * @author Steve Ebersole
- */
-public class ResourceMojo extends AbstractMojo {
-
- /**
- * The directory containing the XSLT sources.
- *
- * @parameter expression="${basedir}/src/main/xslt"
- */
- 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 );
- }
- }
-}
\ No newline at end of file
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java (from rev 13209, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java 2007-07-11 02:20:50 UTC (rev 13341)
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) 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.docbook.support;
+
+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.jboss.maven.shared.file.DirectoryCopier;
+
+/**
+ * Defines resources-like processing for the jdocbook-style packaging. Handles
+ * files such as XSLT, fonts, images and css, moving them to specific locations
+ * within the output directory for inclusion in the final package.
+ *
+ * @goal resources
+ * @phase process-resources
+ * @requiresDependencyResolution
+ *
+ * @author Steve Ebersole
+ */
+public class ResourceMojo extends AbstractMojo {
+
+ /**
+ * The directory containing the XSLT sources.
+ *
+ * @parameter expression="${basedir}/src/main/xslt"
+ */
+ 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, "xslt" ) );
+ 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() );
+ try {
+ new DirectoryCopier( sourceDirectory ).copyTo( targetDirectory );
+ }
+ catch ( IOException e ) {
+ throw new MojoExecutionException( "Unable to copy directory [" + sourceDirectory + "]", e );
+ }
+ }
+}
\ No newline at end of file
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/shared (from rev 13209, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/java/org/jboss/maven/shared)
Deleted: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/shared/file/DirectoryCopier.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/java/org/jboss/maven/shared/file/DirectoryCopier.java 2007-07-07 13:30:22 UTC (rev 13209)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/shared/file/DirectoryCopier.java 2007-07-11 02:20:50 UTC (rev 13341)
@@ -1,80 +0,0 @@
-/*
- * Copyright (c) 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.shared.file;
-
-import java.io.File;
-import java.io.IOException;
-
-import org.codehaus.plexus.util.DirectoryScanner;
-import org.codehaus.plexus.util.FileUtils;
-
-/**
- * Copies a directory with its structure intact. Optionally allows defining
- * includes and/or excludes. Internally uses a {@link DirectoryScanner}, mainly
- * to ensure we filter out "standard excludes" (like scm dirs) but also to apply
- * any optionl includes and/or excludes.
- *
- * @author Steve Ebersole
- */
-public class DirectoryCopier {
- private final File sourceDirectory;
-
- public DirectoryCopier(File sourceDirectory) {
- this.sourceDirectory = sourceDirectory;
- }
-
- public void copyTo(File targetDirectory) throws IOException {
- copyTo( targetDirectory, null, null );
- }
-
- private void copyTo(File targetDirectory, String[] includes, String[] excludes) throws IOException {
- if ( !sourceDirectory.exists() ) {
- return;
- }
- String[] list = sourceDirectory.list();
- if ( list == null || list.length == 0 ) {
- return;
- }
-
- if ( !targetDirectory.exists() ) {
- targetDirectory.mkdirs();
- }
-
- DirectoryScanner scanner = new DirectoryScanner();
- scanner.setBasedir( sourceDirectory );
- scanner.setIncludes( includes );
- scanner.setExcludes( excludes );
- scanner.addDefaultExcludes();
- scanner.scan();
- String[] includedFiles = scanner.getIncludedFiles();
-
-
- for ( int i = 0; i < includedFiles.length; i++ ) {
- copyFileIfModified(
- new File( sourceDirectory, includedFiles[i] ),
- new File( targetDirectory, includedFiles[i] )
- );
- }
- }
-
- public static void copyFileIfModified(File source, File destination) throws IOException {
- if ( destination.lastModified() < source.lastModified() ) {
- FileUtils.copyFile( source.getCanonicalFile(), destination );
- destination.setLastModified( source.lastModified() );
- }
- }
-
-}
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/shared/file/DirectoryCopier.java (from rev 13210, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/java/org/jboss/maven/shared/file/DirectoryCopier.java)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/shared/file/DirectoryCopier.java (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/java/org/jboss/maven/shared/file/DirectoryCopier.java 2007-07-11 02:20:50 UTC (rev 13341)
@@ -0,0 +1,79 @@
+/*
+ * Copyright (c) 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.shared.file;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.codehaus.plexus.util.DirectoryScanner;
+import org.codehaus.plexus.util.FileUtils;
+
+/**
+ * Copies a directory with its structure intact. Optionally allows defining
+ * includes and/or excludes. Internally uses a {@link DirectoryScanner}, mainly
+ * to ensure we filter out "standard excludes" (like scm dirs) but also to apply
+ * any optionl includes and/or excludes.
+ *
+ * @author Steve Ebersole
+ */
+public class DirectoryCopier {
+ private final File sourceDirectory;
+
+ public DirectoryCopier(File sourceDirectory) {
+ this.sourceDirectory = sourceDirectory;
+ }
+
+ public void copyTo(File targetDirectory) throws IOException {
+ copyTo( targetDirectory, null, null );
+ }
+
+ private void copyTo(File targetDirectory, String[] includes, String[] excludes) throws IOException {
+ if ( !sourceDirectory.exists() ) {
+ return;
+ }
+ String[] list = sourceDirectory.list();
+ if ( list == null || list.length == 0 ) {
+ return;
+ }
+
+ if ( !targetDirectory.exists() ) {
+ targetDirectory.mkdirs();
+ }
+
+ DirectoryScanner scanner = new DirectoryScanner();
+ scanner.setBasedir( sourceDirectory );
+ scanner.setIncludes( includes );
+ scanner.setExcludes( excludes );
+ scanner.addDefaultExcludes();
+ scanner.scan();
+ String[] includedFiles = scanner.getIncludedFiles();
+
+ for ( int i = 0; i < includedFiles.length; i++ ) {
+ copyFileIfModified(
+ new File( sourceDirectory, includedFiles[i] ),
+ new File( targetDirectory, includedFiles[i] )
+ );
+ }
+ }
+
+ public static void copyFileIfModified(File source, File destination) throws IOException {
+ if ( destination.lastModified() < source.lastModified() ) {
+ FileUtils.copyFile( source.getCanonicalFile(), destination );
+ destination.setLastModified( source.lastModified() );
+ }
+ }
+
+}
Deleted: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/resources/META-INF/plexus/components.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/resources/META-INF/plexus/components.xml 2007-07-05 17:35:48 UTC (rev 13113)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/resources/META-INF/plexus/components.xml 2007-07-11 02:20:50 UTC (rev 13341)
@@ -1,52 +0,0 @@
-<!--
- ~ Copyright (c) 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
- -->
-<component-set>
-
- <components>
-
- <!-- Defines the lifecycle associated with the 'docbook-support' packaging -->
-
- <component>
- <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
- <role-hint>docbook-support</role-hint>
- <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
- <configuration>
- <phases>
- <process-resources>org.jboss.maven.plugins:maven-docbook-support-plugin:resources</process-resources>
- <package>org.apache.maven.plugins:maven-jar-plugin:jar</package>
- <install>org.apache.maven.plugins:maven-install-plugin:install</install>
- <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
- </phases>
- </configuration>
- </component>
-
- <!-- Defines the artifact handling associated with the 'docbook-support' packaging -->
-
- <component>
- <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
- <role-hint>docbook-support</role-hint>
- <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
- <configuration>
- <type>docbook-support</type>
- <extension>jar</extension>
- <packaging>jar</packaging>
- <language>java</language>
- </configuration>
- </component>
-
- </components>
-
-</component-set>
\ No newline at end of file
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/resources/META-INF/plexus/components.xml (from rev 13161, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/resources/META-INF/plexus/components.xml)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/resources/META-INF/plexus/components.xml (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/main/resources/META-INF/plexus/components.xml 2007-07-11 02:20:50 UTC (rev 13341)
@@ -0,0 +1,52 @@
+<!--
+ ~ Copyright (c) 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
+ -->
+<component-set>
+
+ <components>
+
+ <!-- Defines the lifecycle associated with the 'jdocbook-style' packaging -->
+
+ <component>
+ <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+ <role-hint>jdocbook-style</role-hint>
+ <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
+ <configuration>
+ <phases>
+ <process-resources>org.jboss.maven.plugins:maven-jdocbook-style-plugin:resources</process-resources>
+ <package>org.apache.maven.plugins:maven-jar-plugin:jar</package>
+ <install>org.apache.maven.plugins:maven-install-plugin:install</install>
+ <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
+ </phases>
+ </configuration>
+ </component>
+
+ <!-- Defines the artifact handling associated with the 'jdocbook-style' packaging -->
+
+ <component>
+ <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+ <role-hint>jdocbook-style</role-hint>
+ <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+ <configuration>
+ <type>jdocbook-style</type>
+ <extension>jar</extension>
+ <packaging>jar</packaging>
+ <language>java</language>
+ </configuration>
+ </component>
+
+ </components>
+
+</component-set>
\ No newline at end of file
Deleted: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/examples/custom-directories.apt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/examples/custom-directories.apt 2007-07-05 17:35:48 UTC (rev 13113)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/examples/custom-directories.apt 2007-07-11 02:20:50 UTC (rev 13341)
@@ -1,55 +0,0 @@
- ------
- Custom Directories
- ------
- Steve Ebersole
- ------
- 22 June 2007
- ------
-
-~~ 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
-
-Specifying custom source directories
-
- As mentioned on the basic {{{usage.html}usage}} page, the plugin expects
- a certain source directory layout by default. Users can configure the plugin
- to expect a different layout instead. Consider the following layout:
-
-+----+
-src/main/resources/
- css/
- images/
-+----+
-
- We can tell the <DocBook Support Plugin> to use these directories by
- specifying so in the configuration:
-
-+----+
-<project>
- ...
- <build>
- <plugins>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-docbook-support-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <cssSourceDirectory>${basedir}/src/main/resources/css</cssSourceDirectory>
- <imagesSourceDirectory>${basedir}/src/main/resources/images</imagesSourceDirectory>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
-+----+
\ No newline at end of file
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/examples/custom-directories.apt (from rev 13120, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/examples/custom-directories.apt)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/examples/custom-directories.apt (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/examples/custom-directories.apt 2007-07-11 02:20:50 UTC (rev 13341)
@@ -0,0 +1,55 @@
+ ------
+ Custom Directories
+ ------
+ Steve Ebersole
+ ------
+ 22 June 2007
+ ------
+
+~~ 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
+
+Specifying custom source directories
+
+ As mentioned on the basic {{{usage.html}usage}} page, the plugin expects
+ a certain source directory layout by default. Users can configure the plugin
+ to expect a different layout instead. Consider the following layout:
+
++----+
+src/main/resources/
+ css/
+ images/
++----+
+
+ We can tell the <jDocBook Style Plugin> to use these directories by
+ specifying so in the configuration:
+
++----+
+<project>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-style-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <cssSourceDirectory>${basedir}/src/main/resources/css</cssSourceDirectory>
+ <imagesSourceDirectory>${basedir}/src/main/resources/images</imagesSourceDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
++----+
\ No newline at end of file
Deleted: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/index.apt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/index.apt 2007-07-05 17:35:48 UTC (rev 13113)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/index.apt 2007-07-11 02:20:50 UTC (rev 13341)
@@ -1,63 +0,0 @@
- ------
- Introduction
- ------
- Steve Ebersole
- ------
- 22 June 2007
- ------
-
-~~ 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
-
-Docbook Support Plugin
-
- The <Docbook Support Plugin> defines a dedicate packaging
- ("docbook-support") for projects defining shared DocBook support resources.
- DocBook support resources are considered to be (1) custom XSLT, (2) custom
- images, (3) custom css, and (4) custom fonts. Having a dedicated packaging
- for these support resources is useful in two ways:
-
- [[1]] It allows enforcing a consistent structure or layout inside the
- packaged archive.
-
- [[2]] It allows users of the package to assume a consistent layout within
- the packaged archive.
-
- []
-
-* Goals Overview
-
- As already mentioned, the plugin defines a custom packaging. As part of
- that, it also defines a set of custom lifecycle bindings. Below are the
- phases the plugin defines and the goals bound to each lifecycle phase:
-
- [process-resources] binds the {{{resources-mojo.html}docbook-support:resources}}
- goal which "stages" the resources need for the XSLT transformations into the
- output directory.
-
- [package] binds the standard jar:jar goal.
-
- [install] binds the standard install goal.
-
- [deploy] binds the standard deploy goal.
-
- []
-
-* Usage
-
- Instructions on how to use the <DocBook Support Plugin> can be found {{{usage.html}here}}.
-
-* Examples
-
- * {{{examples/custom-directories.html}Custom Directories}}
\ No newline at end of file
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/index.apt (from rev 13120, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/index.apt)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/index.apt (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/index.apt 2007-07-11 02:20:50 UTC (rev 13341)
@@ -0,0 +1,63 @@
+ ------
+ Introduction
+ ------
+ Steve Ebersole
+ ------
+ 22 June 2007
+ ------
+
+~~ 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
+
+jDocBook Style Plugin
+
+ The <jDocBook Style Plugin> defines a dedicate packaging
+ ("jdocbook-style") for projects defining shared DocBook "style bundles".
+ These style bundles are considered to be comprised of (1) custom XSLT,
+ (2) custom images, (3) custom css, and (4) custom fonts. Having a dedicated
+ packaging for these support resources is useful in two ways:
+
+ [[1]] It allows enforcing a consistent structure or layout inside the
+ packaged archive.
+
+ [[2]] It allows users of the package to assume a consistent layout within
+ the packaged archive.
+
+ []
+
+* Goals Overview
+
+ As already mentioned, the plugin defines a custom packaging. As part of
+ that, it defines a custom set of lifecycle phase bindings. Below are the
+ phases the plugin defines and the goals bound to each lifecycle phase:
+
+ [process-resources] binds the {{{resources-mojo.html}jdocbook-style:resources}}
+ goal which "stages" the resources need for the XSLT transformations into the
+ output directory.
+
+ [package] binds the standard jar:jar goal.
+
+ [install] binds the standard install goal.
+
+ [deploy] binds the standard deploy goal.
+
+ []
+
+* Usage
+
+ Instructions on how to use the <jDocBook Style Plugin> can be found {{{usage.html}here}}.
+
+* Examples
+
+ * {{{examples/custom-directories.html}Custom Directories}}
\ No newline at end of file
Deleted: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/usage.apt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/usage.apt 2007-07-05 17:35:48 UTC (rev 13113)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/usage.apt 2007-07-11 02:20:50 UTC (rev 13341)
@@ -1,59 +0,0 @@
- ------
- Usage
- ------
- Steve Ebersole
- ------
- 22 June 2007
- ------
-
-~~ 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
-
-Basic Usage
-
- The <DocBook Support Plugin> defines a custom packaging. Thus, the most
- basic usage of the plugin is to utilize the defined packaging as the project
- type.
-
-* Minimal configuration
-
- The minimal configuration for the plugin is:
-
-+----+
-<project>
- <groupId>com.mygroup</groupId>
- <artifact>myproject</artifactId>
- <type>docbook-support</type>
- ...
- <build>
- <plugins>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-docbook-support-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-</project>
-+----+
-
- Which assumes the default source layout:
-
-+----+
-src/main/
- css/
- fonts/
- images/
- xslt/
-+----+
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/usage.apt (from rev 13120, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/usage.apt)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/usage.apt (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/apt/usage.apt 2007-07-11 02:20:50 UTC (rev 13341)
@@ -0,0 +1,59 @@
+ ------
+ Usage
+ ------
+ Steve Ebersole
+ ------
+ 22 June 2007
+ ------
+
+~~ 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
+
+Basic Usage
+
+ The <jDocBook Style Plugin> defines a custom packaging. Thus, the most
+ basic usage of the plugin is to utilize the defined packaging as the project
+ type.
+
+* Minimal configuration
+
+ The minimal configuration for the plugin is:
+
++----+
+<project>
+ <groupId>com.mygroup</groupId>
+ <artifact>myproject</artifactId>
+ <type>jdocbook-style</type>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-style-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
++----+
+
+ Which assumes the default source layout:
+
++----+
+src/main/
+ css/
+ fonts/
+ images/
+ xslt/
++----+
Deleted: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/site.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/site.xml 2007-07-05 17:35:48 UTC (rev 13113)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/site.xml 2007-07-11 02:20:50 UTC (rev 13341)
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ Copyright (c) 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
- -->
-<project name="Maven">
-
- <body>
- <links>
- <item name="DocBook" href="http://docbook.sourceforge.net/"/>
- <item name="JBoss" href="http://jboss.org/" />
- <item name="Maven" href="http://maven.apache.org/"/>
- </links>
-
- <menu name="Overview">
- <item name="Introduction" href="index.html"/>
- <item name="Goals" href="plugin-info.html"/>
- <item name="Usage" href="usage.html"/>
- </menu>
-
- <menu name="Examples">
- <item name="Custom Source Directories" href="examples/custom-directories.html"/>
- </menu>
-
- ${reports}
- </body>
-
-</project>
Copied: labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/site.xml (from rev 13120, labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/site.xml)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/site.xml (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/maven-jdocbook-style-plugin-1.0.0/src/site/site.xml 2007-07-11 02:20:50 UTC (rev 13341)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Copyright (c) 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
+ -->
+<project name="jDocBook Style Plugin">
+
+ <body>
+ <links>
+ <item name="DocBook" href="http://docbook.sourceforge.net/"/>
+ <item name="JBoss" href="http://jboss.org/" />
+ <item name="Maven" href="http://maven.apache.org/"/>
+ </links>
+
+ <menu name="Overview">
+ <item name="Introduction" href="index.html"/>
+ <item name="Goals" href="plugin-info.html"/>
+ <item name="Usage" href="usage.html"/>
+ </menu>
+
+ <menu name="Examples">
+ <item name="Custom Source Directories" href="examples/custom-directories.html"/>
+ </menu>
+
+ ${reports}
+ </body>
+
+</project>
More information about the jboss-svn-commits
mailing list