[jboss-svn-commits] JBL Code SVN: r27043 - in labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin: src/main/java/org/jboss/maven and 2 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jun 19 17:44:11 EDT 2009
Author: steve.ebersole at jboss.com
Date: 2009-06-19 17:44:11 -0400 (Fri, 19 Jun 2009)
New Revision: 27043
Removed:
labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/java/org/jboss/maven/shared/
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
Log:
prep 2.0.0 release
Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/pom.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/pom.xml 2009-06-19 21:28:02 UTC (rev 27042)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/pom.xml 2009-06-19 21:44:11 UTC (rev 27043)
@@ -1,3 +1,24 @@
+<!--
+ ~ Copyright (c) 2009, Red Hat Middleware LLC or third-party contributors as
+ ~ indicated by the @author tags or express copyright attribution
+ ~ statements applied by the authors. All third-party contributions are
+ ~ distributed under license by Red Hat Middleware LLC.
+ ~
+ ~ 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, as published by the Free Software Foundation.
+ ~
+ ~ This program is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY 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
+ ~ along with this distribution; if not, write to:
+ ~ Free Software Foundation, Inc.
+ ~ 51 Franklin Street, Fifth Floor
+ ~ Boston, MA 02110-1301 USA
+ -->
<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>
@@ -11,7 +32,7 @@
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-style-plugin</artifactId>
<packaging>maven-plugin</packaging>
- <version>1.0.1-SNAPSHOT</version>
+ <version>2.0.0-SNAPSHOT</version>
<name>Maven Docbook Style Plugin</name>
<description>Defines the custom 'jdocbook-style' packaging.</description>
@@ -67,6 +88,11 @@
<artifactId>plexus-utils</artifactId>
<version>1.0.4</version>
</dependency>
+ <dependency>
+ <groupId>org.jboss.maven.util</groupId>
+ <artifactId>jboss-maven-utils</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
</dependencies>
<build>
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 2009-06-19 21:28:02 UTC (rev 27042)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/java/org/jboss/maven/plugins/docbook/support/ResourceMojo.java 2009-06-19 21:44:11 UTC (rev 27043)
@@ -1,17 +1,23 @@
/*
- * Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
+ * Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors. All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
*
* 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.
+ * Lesser General Public License, as published by the Free Software Foundation.
*
- * Red Hat Author(s): Steve Ebersole
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
*/
package org.jboss.maven.plugins.docbook.support;
@@ -21,7 +27,9 @@
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;
+import org.apache.maven.artifact.handler.ArtifactHandler;
+import org.apache.maven.project.MavenProject;
+import org.jboss.maven.util.file.DirectoryCopier;
/**
* Defines resources-like processing for the jdocbook-style packaging. Handles
@@ -71,11 +79,32 @@
*/
protected File outputDirectory;
+ /**
+ * INTERNAL : The project being built
+ *
+ * @parameter expression="${project}"
+ * @required
+ * @readonly
+ */
+ protected MavenProject project;
+
+ /**
+ * INTERNAL : The configured artifact handler for the 'jdocbook-style' packaging
+ *
+ * @parameter expression="${component.org.apache.maven.artifact.handler.ArtifactHandler#jdocbook-style}"
+ * @required
+ * @readonly
+ */
+ protected ArtifactHandler artifactHandler;
+
+
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" ) );
+
+ project.getArtifact().setArtifactHandler( artifactHandler );
}
private void copySource(File sourceDirectory, File targetDirectory) throws MojoExecutionException {
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 2009-06-19 21:28:02 UTC (rev 27042)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-style-plugin/src/main/resources/META-INF/plexus/components.xml 2009-06-19 21:44:11 UTC (rev 27043)
@@ -1,24 +1,32 @@
<!--
- ~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
+ ~ jDocBook, processing of DocBook sources as a Maven plugin
~
+ ~ Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ ~ indicated by the @author tags or express copyright attribution
+ ~ statements applied by the authors. All third-party contributions are
+ ~ distributed under license by Red Hat Middleware LLC.
+ ~
~ 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.
+ ~ Lesser General Public License, as published by the Free Software Foundation.
~
- ~ Red Hat Author(s): Steve Ebersole
+ ~ This program is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY 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
+ ~ along with this distribution; if not, write to:
+ ~ Free Software Foundation, Inc.
+ ~ 51 Franklin Street, Fifth Floor
+ ~ Boston, MA 02110-1301 USA
+ ~
-->
<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>
@@ -34,14 +42,13 @@
</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>
+ <extension>jdocbook-style</extension>
<packaging>jar</packaging>
<language>java</language>
</configuration>
More information about the jboss-svn-commits
mailing list