pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r910657 - in /pdfbox/site: author/pom.xml publish/
Date Tue, 16 Feb 2010 19:33:01 GMT
Author: jukka
Date: Tue Feb 16 19:33:01 2010
New Revision: 910657

URL: http://svn.apache.org/viewvc?rev=910657&view=rev
Log:
PDFBOX-623: Separate the PDFBox web site from trunk

Prepare for svnpubsub.

Added:
    pdfbox/site/publish/
Modified:
    pdfbox/site/author/pom.xml

Modified: pdfbox/site/author/pom.xml
URL: http://svn.apache.org/viewvc/pdfbox/site/author/pom.xml?rev=910657&r1=910656&r2=910657&view=diff
==============================================================================
--- pdfbox/site/author/pom.xml (original)
+++ pdfbox/site/author/pom.xml Tue Feb 16 19:33:01 2010
@@ -58,5 +58,57 @@
     <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
   </properties>
 
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-site-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>install</phase>
+            <goals>
+              <goal>site</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.groovy.maven</groupId>
+        <artifactId>gmaven-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <phase>install</phase>
+            <goals>
+              <goal>execute</goal>
+            </goals>
+            <configuration>
+              <source>
+                def source = new File(project.basedir, 'target/site')
+                if (!source.isDirectory()) {
+                    fail("Site directory not found!");
+                }
+
+                def target = new File(project.basedir.getParent(), 'publish')
+                if (!target.isDirectory()) {
+                    fail("Publish directory not found!");
+                }
+
+                ant.fixcrlf srcDir: source
+                ant.copy todir: target, {
+                    fileset dir: source
+                }
+                ant.exec executable: "svn", {
+                    arg value: "add"
+                    arg value: "--force"
+                    arg value: target
+                }
+              </source>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>
 



Mime
View raw message