[hibernate-commits] Hibernate SVN: r20639 - core/trunk/documentation/quickstart.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Sep 15 13:25:58 EDT 2010


Author: steve.ebersole at jboss.com
Date: 2010-09-15 13:25:58 -0400 (Wed, 15 Sep 2010)
New Revision: 20639

Modified:
   core/trunk/documentation/quickstart/pom.xml
Log:
HHH-5441 - Create "Getting Started Guide"


Modified: core/trunk/documentation/quickstart/pom.xml
===================================================================
--- core/trunk/documentation/quickstart/pom.xml	2010-09-15 14:34:49 UTC (rev 20638)
+++ core/trunk/documentation/quickstart/pom.xml	2010-09-15 17:25:58 UTC (rev 20639)
@@ -46,7 +46,52 @@
 
     <build>
         <plugins>
+
             <plugin>
+                <groupId>org.codehaus.groovy.maven</groupId>
+                <artifactId>gmaven-plugin</artifactId>
+                <version>1.0</version>
+                <executions>
+                    <execution>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>execute</goal>
+                        </goals>
+                        <configuration>
+                            <!-- we need to zip up the tutorial code -->
+                            <source>
+                                <![CDATA[
+                                        zipName = 'hibernate-tutorials.zip'
+                                        baseDocBookDir = "${pom.basedir}/target/docbook/publish/en-US"
+                                        htmlDir = "${baseDocBookDir}/html/files"
+                                        ant.mkdir( dir: htmlDir )
+
+                                        zipFile = "${htmlDir}/${zipName}"
+                                        ant.zip( destfile: zipFile ) {
+                                            zipfileset( dir: "${pom.basedir}/tutorials" ) {
+                                                exclude( name: "**/*.ipr" )
+                                                exclude( name: "**/*.iml" )
+                                                exclude( name: "**/*.iws" )
+                                                exclude( name: "**/.idea" )
+                                                exclude( name: "**/.classpath" )
+                                                exclude( name: "**/.project" )
+                                                exclude( name: "**/.settings" )
+                                                exclude( name: "target/**" )
+                                                exclude( name: "?*/target/**" )
+                                            }
+                                        }
+
+                                        htmlSingleDir = "${baseDocBookDir}/html_single/files"
+                                        ant.mkdir( dir: htmlSingleDir )
+                                        ant.copy( toDir: htmlSingleDir, file: zipFile )
+                                ]]>
+                            </source>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
                 <groupId>org.jboss.maven.plugins</groupId>
                 <artifactId>maven-jdocbook-plugin</artifactId>
 



More information about the hibernate-commits mailing list