| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2011, Red Hat, Inc. |
| 4 | |
| 5 | All rights reserved. This program and the accompanying materials |
| 6 | are made available under the terms of the Eclipse Public License v1.0 |
| 7 | which accompanies this distribution, and is available at |
| 8 | http://www.eclipse.org/legal/epl-v10.html |
| 9 | --> |
| 10 | <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
| 11 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 12 | <modelVersion>4.0.0</modelVersion> |
| 13 | |
| 14 | <parent> |
| 15 | <artifactId>org.eclipse.tracecompass.doc</artifactId> |
| 16 | <groupId>org.eclipse.tracecompass</groupId> |
| 17 | <version>1.0.0-SNAPSHOT</version> |
| 18 | </parent> |
| 19 | |
| 20 | <artifactId>org.eclipse.tracecompass.doc.user</artifactId> |
| 21 | <version>1.0.0-SNAPSHOT</version> |
| 22 | <packaging>eclipse-plugin</packaging> |
| 23 | |
| 24 | <name>Trace Compass User Guide</name> |
| 25 | |
| 26 | <build> |
| 27 | <plugins> |
| 28 | <plugin> |
| 29 | <groupId>org.apache.maven.plugins</groupId> |
| 30 | <artifactId>maven-antrun-plugin</artifactId> |
| 31 | <version>1.8</version> |
| 32 | <executions> |
| 33 | <execution> |
| 34 | <id>generate-documentation</id> |
| 35 | <phase>generate-sources</phase> |
| 36 | <configuration> |
| 37 | <echo>Generating Help Files</echo> |
| 38 | <target> |
| 39 | <property name="compile_classpath" refid="maven.compile.classpath" /> |
| 40 | <ant target="build" inheritRefs="true" antfile="build.xml" /> |
| 41 | </target> |
| 42 | </configuration> |
| 43 | <goals> |
| 44 | <goal>run</goal> |
| 45 | </goals> |
| 46 | </execution> |
| 47 | <execution> |
| 48 | <id>clean-documentation</id> |
| 49 | <phase>clean</phase> |
| 50 | <configuration> |
| 51 | <echo>Cleaning up generated Help Files</echo> |
| 52 | <target> |
| 53 | <ant target="clean" antfile="build.xml" /> |
| 54 | </target> |
| 55 | </configuration> |
| 56 | <goals> |
| 57 | <goal>run</goal> |
| 58 | </goals> |
| 59 | </execution> |
| 60 | </executions> |
| 61 | |
| 62 | <dependencies> |
| 63 | <dependency> |
| 64 | <groupId>org.apache.ant</groupId> |
| 65 | <artifactId>ant</artifactId> |
| 66 | <version>1.8.1</version> |
| 67 | </dependency> |
| 68 | |
| 69 | <dependency> |
| 70 | <groupId>org.apache.ant</groupId> |
| 71 | <artifactId>ant-launcher</artifactId> |
| 72 | <version>1.8.1</version> |
| 73 | </dependency> |
| 74 | |
| 75 | <dependency> |
| 76 | <groupId>org.apache.ant</groupId> |
| 77 | <artifactId>ant-nodeps</artifactId> |
| 78 | <version>1.8.1</version> |
| 79 | </dependency> |
| 80 | |
| 81 | </dependencies> |
| 82 | </plugin> |
| 83 | </plugins> |
| 84 | </build> |
| 85 | |
| 86 | <profiles> |
| 87 | <profile> |
| 88 | <id>deploy-doc</id> |
| 89 | <build> |
| 90 | <plugins> |
| 91 | <plugin> |
| 92 | <artifactId>maven-antrun-plugin</artifactId> |
| 93 | <executions> |
| 94 | <execution> |
| 95 | <id>deploy</id> |
| 96 | <phase>install</phase> |
| 97 | <goals> |
| 98 | <goal>run</goal> |
| 99 | </goals> |
| 100 | <configuration> |
| 101 | <target> |
| 102 | <delete includeemptydirs="false"> |
| 103 | <fileset |
| 104 | dir="${docDestination}/org.eclipse.tracecompass.doc.user"> |
| 105 | <include name="**" /> |
| 106 | </fileset> |
| 107 | </delete> |
| 108 | |
| 109 | <copy includeemptydirs="false" todir="${docDestination}/org.eclipse.tracecompass.doc.user"> |
| 110 | <fileset dir="doc" includes="*.html,images/**"/> |
| 111 | </copy> |
| 112 | </target> |
| 113 | </configuration> |
| 114 | </execution> |
| 115 | </executions> |
| 116 | </plugin> |
| 117 | </plugins> |
| 118 | </build> |
| 119 | </profile> |
| 120 | </profiles> |
| 121 | |
| 122 | <groupId>org.eclipse.tracecompass</groupId> |
| 123 | </project> |