struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [23/31] git commit: Instead exporting docs directly from wiki, fetches them from website
Date Sun, 06 Apr 2014 19:14:25 GMT
Instead exporting docs directly from wiki, fetches them from website


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/01d6f1a5
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/01d6f1a5
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/01d6f1a5

Branch: refs/heads/feature/use-js-to-support-multiple-buttons
Commit: 01d6f1a52be726454ec16f061b6bde6254ea3967
Parents: 31b60c9
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Sun Apr 6 10:17:41 2014 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Sun Apr 6 10:17:41 2014 +0200

----------------------------------------------------------------------
 assembly/pom.xml | 86 +++++++++++++++++++++------------------------------
 1 file changed, 36 insertions(+), 50 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/01d6f1a5/assembly/pom.xml
----------------------------------------------------------------------
diff --git a/assembly/pom.xml b/assembly/pom.xml
index a752770..0c828b7 100644
--- a/assembly/pom.xml
+++ b/assembly/pom.xml
@@ -77,6 +77,42 @@
             </plugin>
 
             <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>cwiki-docs</id>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <mkdir dir="${project.build.directory}/cwiki/" />
+                                <exec executable="wget">
+                                    <arg value="-erobots=off" />
+                                    <arg value="-nH" />
+                                    <arg value="--cut-dirs=3" />
+                                    <arg value="-nv" />
+                                    <arg value="-E" />
+                                    <arg value="-L" />
+                                    <arg value="-l 0" />
+                                    <arg value="-np" />
+                                    <arg value="--directory-prefix=${project.build.directory}/cwiki"
/>
+                                    <arg value="--no-check-certificate" />
+                                    <arg value="-r" />
+                                    <arg value="http://struts.apache.org/development/2.x/docs/"
/>
+                                </exec>
+                                <delete>
+                                    <fileset dir="${project.build.directory}/cwiki/" includes="index.*"/>
+                                </delete>
+                                <copy file="${project.build.directory}/cwiki/home.html"
tofile="${project.build.directory}/cwiki/index.html"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
                 <artifactId>maven-assembly-plugin</artifactId>
                 <executions>
                     <execution>
@@ -103,59 +139,9 @@
         </plugins>
     </build>
 
-    <profiles>
-        <profile>
-            <id>export-cwiki</id>
-            <activation>
-                <property>
-                    <name>!skipWiki</name>
-                </property>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.codehaus.mojo</groupId>
-                        <artifactId>exec-maven-plugin</artifactId>
-                        <version>1.2</version>
-                        <executions>
-                            <execution>
-                                <id>cwiki-docs</id>
-                                <phase>prepare-package</phase>
-                                <goals>
-                                    <goal>java</goal>
-                                </goals>
-                                <configuration>
-                                    <classpathScope>runtime</classpathScope>
-                                    <includeProjectDependencies>true</includeProjectDependencies>
-                                    <mainClass>org.apache.cxf.cwiki.SiteExporter</mainClass>
-                                    <arguments>
-                                        <argument>-d</argument>
-                                        <argument>${project.build.directory}/cwiki/WW</argument>
-                                        <argument>-password</argument>
-                                        <argument>${confluence.password}</argument>
-                                        <argument>-user</argument>
-                                        <argument>${confluence.user}</argument>
-                                        <argument>${basedir}/src/main/resources/docs.cfg</argument>
-                                    </arguments>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
-
     <dependencies>
 
         <dependency>
-            <groupId>org.apache.cxf.site-export</groupId>
-            <artifactId>cxf-site-export</artifactId>
-            <version>1.0-SNAPSHOT</version>
-            <scope>runtime</scope>
-        </dependency>
-
-        <dependency>
             <groupId>org.apache.struts</groupId>
             <artifactId>struts2-cdi-plugin</artifactId>
         </dependency>


Mime
View raw message