[jboss-svn-commits] JBL Code SVN: r13212 - labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/gen/format.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Jul 7 10:31:45 EDT 2007


Author: steve.ebersole at jboss.com
Date: 2007-07-07 10:31:45 -0400 (Sat, 07 Jul 2007)
New Revision: 13212

Modified:
   labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/gen/format/BasicFormatHandler.java
Log:
changed main artifact from pom to inclusive war; changed directory where attach artifact are staged

Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/gen/format/BasicFormatHandler.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/gen/format/BasicFormatHandler.java	2007-07-07 14:31:25 UTC (rev 13211)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/gen/format/BasicFormatHandler.java	2007-07-07 14:31:45 UTC (rev 13212)
@@ -96,7 +96,11 @@
 
 		String warName = factory.getMavenProject().getBuild().getFinalName() +
 				"-" + formatting.getFormatName() + ".war";
-		File war = new File( factory.getTargetDirectory(), warName );
+		File attachmentDirectory = new File( factory.getTargetDirectory(), "../attach" );
+		if ( !attachmentDirectory.exists() ) {
+			attachmentDirectory.mkdirs();
+		}
+		File war = new File( attachmentDirectory, warName );
 
 		JarArchiver archiver = new JarArchiver();
 		archiver.setDestFile( war );




More information about the jboss-svn-commits mailing list