[jboss-svn-commits] JBL Code SVN: r13120 - in labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin: src/main/java/org/jboss/maven/plugins/docbook/support and 4 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jul 5 18:04:51 EDT 2007


Author: steve.ebersole at jboss.com
Date: 2007-07-05 18:04:50 -0400 (Thu, 05 Jul 2007)
New Revision: 13120

Modified:
   labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/pom.xml
   labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java
   labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/resources/META-INF/plexus/components.xml
   labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/examples/custom-directories.apt
   labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/index.apt
   labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/usage.apt
   labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/site.xml
Log:
renamed artifactId to maven-jdocbook-style-plugin and the packaging to jdocbook-style

Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/pom.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/pom.xml	2007-07-05 20:11:39 UTC (rev 13119)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/pom.xml	2007-07-05 22:04:50 UTC (rev 13120)
@@ -21,12 +21,12 @@
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>org.jboss.maven.plugins</groupId>
-    <artifactId>maven-docbook-support-plugin</artifactId>
+    <artifactId>maven-jdocbook-style-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>
+    <name>Maven Docbook Style Plugin</name>
+    <description>Defines the custom 'jdocbook-style' packaging.</description>
 
     <inceptionYear>2007</inceptionYear>
     <organization>
@@ -53,9 +53,9 @@
     </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>
+        <connection>scm:svn:http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin</connection>
+	<developerConnection>scm:svn:https://svn.labs.jboss.org/labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin</developerConnection>
+	<url>http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin</url>
     </scm>
 
     <dependencies>
@@ -65,6 +65,16 @@
             <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>plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>1.0.1</version>

Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/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 20:11:39 UTC (rev 13119)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java	2007-07-05 22:04:50 UTC (rev 13120)
@@ -24,8 +24,8 @@
 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
+ * 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
@@ -72,7 +72,7 @@
 	protected File outputDirectory;
 
 	public void execute() throws MojoExecutionException, MojoFailureException {
-		copySource( xsltSourceDirectory, new File( outputDirectory, "styles" ) );
+		copySource( xsltSourceDirectory, new File( outputDirectory, "xslt" ) );
 		copySource( fontSourceDirectory, new File( outputDirectory, "fonts" ) );
 		copySource( imagesSourceDirectory, new File( outputDirectory, "images" ) );
 		copySource( cssSourceDirectory, new File( outputDirectory, "css" ) );

Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/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 20:11:39 UTC (rev 13119)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/resources/META-INF/plexus/components.xml	2007-07-05 22:04:50 UTC (rev 13120)
@@ -17,11 +17,11 @@
 
     <components>
 
-        <!-- Defines the lifecycle associated with the 'docbook-support' packaging -->
+        <!-- Defines the lifecycle associated with the 'jdocbook-style' packaging -->
 
         <component>
             <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
-            <role-hint>docbook-support</role-hint>
+            <role-hint>jdocbook-style</role-hint>
             <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
             <configuration>
                 <phases>
@@ -33,14 +33,14 @@
             </configuration>
         </component>
 
-        <!-- Defines the artifact handling associated with the 'docbook-support' packaging -->
+        <!-- Defines the artifact handling associated with the 'jdocbook-style' packaging -->
 
         <component>
             <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
-            <role-hint>docbook-support</role-hint>
+            <role-hint>jdocbook-style</role-hint>
             <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
             <configuration>
-                <type>docbook-support</type>
+                <type>jdocbook-style</type>
                 <extension>jar</extension>
                 <packaging>jar</packaging>
                 <language>java</language>

Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/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 20:11:39 UTC (rev 13119)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/examples/custom-directories.apt	2007-07-05 22:04:50 UTC (rev 13120)
@@ -32,7 +32,7 @@
     images/
 +----+
 
-    We can tell the <DocBook Support Plugin> to use these directories by
+    We can tell the <jDocBook Style Plugin> to use these directories by
     specifying so in the configuration:
 
 +----+
@@ -42,7 +42,7 @@
         <plugins>
             <plugin>
                 <groupId>org.jboss.maven.plugins</groupId>
-                <artifactId>maven-docbook-support-plugin</artifactId>
+                <artifactId>maven-jdocbook-style-plugin</artifactId>
                 <extensions>true</extensions>
                 <configuration>
                     <cssSourceDirectory>${basedir}/src/main/resources/css</cssSourceDirectory>

Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/index.apt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/index.apt	2007-07-05 20:11:39 UTC (rev 13119)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/index.apt	2007-07-05 22:04:50 UTC (rev 13120)
@@ -20,13 +20,13 @@
 ~~
 ~~ Red Hat Author(s): Steve Ebersole
 
-Docbook Support Plugin
+jDocBook Style 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:
+    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.
@@ -39,10 +39,10 @@
 * 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
+    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}docbook-support:resources}}
+    [process-resources] binds the {{{resources-mojo.html}jdocbook-style:resources}}
         goal which "stages" the resources need for the XSLT transformations into the
         output directory.
 
@@ -56,7 +56,7 @@
 
 * Usage
 
-    Instructions on how to use the <DocBook Support Plugin> can be found {{{usage.html}here}}.
+    Instructions on how to use the <jDocBook Style Plugin> can be found {{{usage.html}here}}.
 
 * Examples
 

Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/usage.apt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/usage.apt	2007-07-05 20:11:39 UTC (rev 13119)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/apt/usage.apt	2007-07-05 22:04:50 UTC (rev 13120)
@@ -22,7 +22,7 @@
 
 Basic Usage
 
-    The <DocBook Support Plugin> defines a custom packaging.  Thus, the most
+    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.
 
@@ -34,13 +34,13 @@
 <project>
     <groupId>com.mygroup</groupId>
     <artifact>myproject</artifactId>
-    <type>docbook-support</type>
+    <type>jdocbook-style</type>
     ...
     <build>
         <plugins>
             <plugin>
                 <groupId>org.jboss.maven.plugins</groupId>
-                <artifactId>maven-docbook-support-plugin</artifactId>
+                <artifactId>maven-jdocbook-style-plugin</artifactId>
                 <extensions>true</extensions>
             </plugin>
         </plugins>

Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/site.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/site.xml	2007-07-05 20:11:39 UTC (rev 13119)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/site/site.xml	2007-07-05 22:04:50 UTC (rev 13120)
@@ -15,7 +15,7 @@
   ~
   ~ Red Hat Author(s): Steve Ebersole
   -->
-<project name="Maven">
+<project name="jDocBook Style Plugin">
 
     <body>
         <links>




More information about the jboss-svn-commits mailing list