Author: piergiorgio
Date: Wed Apr 18 20:37:55 2018
New Revision: 1829482

URL: http://svn.apache.org/viewvc?rev=1829482&view=rev
Log:
Add an automatic build for generating md files from Forrest templates using 
Forrest2md JAR provided by David Ciamberlano (CONNECTORS-1495)

Added:
    manifoldcf/site/branches/CONNECTORS-1495/pom.xml   (with props)
    manifoldcf/site/branches/CONNECTORS-1495/src/documentation/content/md/

Added: manifoldcf/site/branches/CONNECTORS-1495/pom.xml
URL: 
http://svn.apache.org/viewvc/manifoldcf/site/branches/CONNECTORS-1495/pom.xml?rev=1829482&view=auto
==============================================================================
--- manifoldcf/site/branches/CONNECTORS-1495/pom.xml (added)
+++ manifoldcf/site/branches/CONNECTORS-1495/pom.xml Wed Apr 18 20:37:55 2018
@@ -0,0 +1,232 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<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/xsd/maven-4.0.0.xsd";>
+        
+       <parent>
+               <groupId>org.apache.manifoldcf</groupId>
+               <artifactId>mcf-parent</artifactId>
+               <version>2.10-SNAPSHOT</version>
+       </parent>
+       
+       <modelVersion>4.0.0</modelVersion>
+       <artifactId>site</artifactId>
+
+       <name>ManifoldCF - Site</name>
+       <packaging>pom</packaging>
+
+       <properties>
+               
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+               <maven.compiler.source>1.8</maven.compiler.source>
+    <maven.compiler.target>1.8</maven.compiler.target>
+    <forrest2md.version>0.1.0</forrest2md.version>
+       </properties>
+       
+       <build>
+               <plugins>
+                 <plugin>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-maven-plugin</artifactId>
+      </plugin>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>exec-maven-plugin</artifactId>
+                               <version>1.6.0</version>
+                               <executions>
+                                       <execution>
+                                               <id>ConvertXdocsToMd-Index</id>
+                                               <goals>
+                                                       <goal>exec</goal>
+                                               </goals>
+                                               <phase>prepare-package</phase>
+                                               <configuration>
+                                                       
<executable>java</executable>
+                                                       
<workingDirectory>/tmp</workingDirectory>
+                                                       <arguments>
+                                                               
<argument>-jar</argument>
+                                                               
<argument>${project.basedir}/lib/forrest2md-0.1.jar</argument>
+                                                               
<argument>${project.basedir}/src/documentation/content/xdocs/en_US/index.xml</argument>
+                                                               
<argument>${project.basedir}/src/documentation/content/md/en_US/index.md</argument>
+                                                       </arguments>
+                                               </configuration>
+                                       </execution>
+                                       <execution>
+                                               <id>ConvertXdocsToMd-Mail</id>
+                                               <goals>
+                                                       <goal>exec</goal>
+                                               </goals>
+                                               <phase>prepare-package</phase>
+                                               <configuration>
+                                                       
<executable>java</executable>
+                                                       
<workingDirectory>/tmp</workingDirectory>
+                                                       <arguments>
+                                                               
<argument>-jar</argument>
+                                                               
<argument>${project.basedir}/lib/forrest2md-0.1.jar</argument>
+                                                               
<argument>${project.basedir}/src/documentation/content/xdocs/en_US/mail.xml</argument>
+                                                               
<argument>${project.basedir}/src/documentation/content/md/en_US/mail.md</argument>
+                                                       </arguments>
+                                               </configuration>
+                                       </execution>
+                                       <execution>
+            <id>ConvertXdocsToMd-Verify</id>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <phase>prepare-package</phase>
+            <configuration>
+              <executable>java</executable>
+              <workingDirectory>/tmp</workingDirectory>
+              <arguments>
+                <argument>-jar</argument>
+                <argument>${project.basedir}/lib/forrest2md-0.1.jar</argument>
+                
<argument>${project.basedir}/src/documentation/content/xdocs/en_US/verify.xml</argument>
+                
<argument>${project.basedir}/src/documentation/content/md/en_US/verify.md</argument>
+              </arguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>ConvertXdocsToMd-Security</id>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <phase>prepare-package</phase>
+            <configuration>
+              <executable>java</executable>
+              <workingDirectory>/tmp</workingDirectory>
+              <arguments>
+                <argument>-jar</argument>
+                <argument>${project.basedir}/lib/forrest2md-0.1.jar</argument>
+                
<argument>${project.basedir}/src/documentation/content/xdocs/en_US/security.xml</argument>
+                
<argument>${project.basedir}/src/documentation/content/md/en_US/security.md</argument>
+              </arguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>ConvertXdocsToMd-Books-And-Presentation</id>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <phase>prepare-package</phase>
+            <configuration>
+              <executable>java</executable>
+              <workingDirectory>/tmp</workingDirectory>
+              <arguments>
+                <argument>-jar</argument>
+                <argument>${project.basedir}/lib/forrest2md-0.1.jar</argument>
+                
<argument>${project.basedir}/src/documentation/content/xdocs/en_US/books-and-presentations.xml</argument>
+                
<argument>${project.basedir}/src/documentation/content/md/en_US/books-and-presentations.md</argument>
+              </arguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>ConvertXdocsToMd-Developer-Resources</id>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <phase>prepare-package</phase>
+            <configuration>
+              <executable>java</executable>
+              <workingDirectory>/tmp</workingDirectory>
+              <arguments>
+                <argument>-jar</argument>
+                <argument>${project.basedir}/lib/forrest2md-0.1.jar</argument>
+                
<argument>${project.basedir}/src/documentation/content/xdocs/en_US/developer-resources.xml</argument>
+                
<argument>${project.basedir}/src/documentation/content/md/en_US/developer-resources.md</argument>
+              </arguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>ConvertXdocsToMd-Download</id>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <phase>prepare-package</phase>
+            <configuration>
+              <executable>java</executable>
+              <workingDirectory>/tmp</workingDirectory>
+              <arguments>
+                <argument>-jar</argument>
+                <argument>${project.basedir}/lib/forrest2md-0.1.jar</argument>
+                
<argument>${project.basedir}/src/documentation/content/xdocs/en_US/download.xml</argument>
+                
<argument>${project.basedir}/src/documentation/content/md/en_US/download.md</argument>
+              </arguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>ConvertXdocsToMd-Release-Documentation</id>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <phase>prepare-package</phase>
+            <configuration>
+              <executable>java</executable>
+              <workingDirectory>/tmp</workingDirectory>
+              <arguments>
+                <argument>-jar</argument>
+                <argument>${project.basedir}/lib/forrest2md-0.1.jar</argument>
+                
<argument>${project.basedir}/src/documentation/content/xdocs/en_US/release-documentation.xml</argument>
+                
<argument>${project.basedir}/src/documentation/content/md/en_US/release-documentation.md</argument>
+              </arguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>ConvertXdocsToMd-Who</id>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <phase>prepare-package</phase>
+            <configuration>
+              <executable>java</executable>
+              <workingDirectory>/tmp</workingDirectory>
+              <arguments>
+                <argument>-jar</argument>
+                <argument>${project.basedir}/lib/forrest2md-0.1.jar</argument>
+                
<argument>${project.basedir}/src/documentation/content/xdocs/en_US/who.xml</argument>
+                
<argument>${project.basedir}/src/documentation/content/md/en_US/who.md</argument>
+              </arguments>
+            </configuration>
+          </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                   <groupId>org.apache.maven.plugins</groupId>
+                   <artifactId>maven-antrun-plugin</artifactId>
+                   <executions>
+                       <execution>
+                           <id>download-files</id>
+                           <phase>initialize</phase>
+                           <goals>
+                               <goal>run</goal>
+                           </goals>
+                           <configuration>
+                               <target name="checkAndDownloadForrest2md">
+                                                                  <get 
src="https://github.com/david-ciamberlano/forrestxml2md/releases/download/v0.1.0/forrest2md-v0.1.0.jar";
+                                                                               
     dest="${project.build.directory}/lib/"
+                                                                               
     verbose="false"
+                                                                               
     usetimestamp="true"/>
+                                </target>
+                            </configuration>
+                        </execution>
+                    </executions>
+                 </plugin>
+                </plugins>
+       </build>
+
+</project>

Propchange: manifoldcf/site/branches/CONNECTORS-1495/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: manifoldcf/site/branches/CONNECTORS-1495/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: manifoldcf/site/branches/CONNECTORS-1495/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml


Reply via email to