doc: Add Maven targets to deploy the generated HTML files
[deliverable/tracecompass.git] / doc / org.eclipse.tracecompass.doc.dev / pom.xml
index c0376e705a00f145b30cc34c29d7485a213d1d68..cfc952d66abfbb85f613882a9e998f60431bb874 100644 (file)
     </plugins>
   </build>
 
+  <profiles>
+    <profile>
+      <id>deploy-doc</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>deploy</id>
+                <phase>install</phase>
+                  <goals>
+                    <goal>run</goal>
+                  </goals>
+                  <configuration>
+                  <target>
+                    <delete includeemptydirs="false">
+                      <fileset
+                        dir="${docDestination}/org.eclipse.tracecompass.doc.dev">
+                        <include name="**" />
+                      </fileset>
+                    </delete>
+
+                    <copy includeemptydirs="false" todir="${docDestination}/org.eclipse.tracecompass.doc.dev">
+                      <fileset dir="doc" includes="*.html,images/**"/>
+                    </copy>
+                  </target>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
   <groupId>org.eclipse.tracecompass</groupId>
 </project>
This page took 0.02483 seconds and 5 git commands to generate.