Commit | Line | Data |
---|---|---|
89882f20 SG |
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> | |
8995fed0 | 15 | <artifactId>org.eclipse.tracecompass.doc</artifactId> |
8336b412 | 16 | <groupId>org.eclipse.tracecompass</groupId> |
38a9b03f | 17 | <version>2.0.0-SNAPSHOT</version> |
89882f20 SG |
18 | </parent> |
19 | ||
8995fed0 | 20 | <artifactId>org.eclipse.tracecompass.doc.user</artifactId> |
4cc0dbca | 21 | <version>1.1.0-SNAPSHOT</version> |
89882f20 SG |
22 | <packaging>eclipse-plugin</packaging> |
23 | ||
8995fed0 | 24 | <name>Trace Compass User Guide</name> |
89882f20 | 25 | |
82de5675 AM |
26 | <build> |
27 | <plugins> | |
28 | <plugin> | |
29 | <groupId>org.apache.maven.plugins</groupId> | |
30 | <artifactId>maven-antrun-plugin</artifactId> | |
7679e68a | 31 | <version>1.8</version> |
82de5675 AM |
32 | <executions> |
33 | <execution> | |
34 | <id>generate-documentation</id> | |
35 | <phase>generate-sources</phase> | |
36 | <configuration> | |
8995fed0 | 37 | <echo>Generating Help Files</echo> |
f4b0de0f | 38 | <target> |
82de5675 AM |
39 | <property name="compile_classpath" refid="maven.compile.classpath" /> |
40 | <ant target="build" inheritRefs="true" antfile="build.xml" /> | |
f4b0de0f | 41 | </target> |
82de5675 AM |
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> | |
8995fed0 | 51 | <echo>Cleaning up generated Help Files</echo> |
f4b0de0f | 52 | <target> |
82de5675 | 53 | <ant target="clean" antfile="build.xml" /> |
f4b0de0f | 54 | </target> |
82de5675 AM |
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> | |
887cb879 MAL |
83 | <!-- Build help index --> |
84 | <plugin> | |
85 | <groupId>org.eclipse.tycho.extras</groupId> | |
86 | <artifactId>tycho-eclipserun-plugin</artifactId> | |
87 | <version>${tycho-extras-version}</version> | |
88 | <configuration> | |
89 | <appArgLine>-application org.eclipse.ant.core.antRunner -buildfile build.xml build.index</appArgLine> | |
90 | </configuration> | |
91 | </plugin> | |
92 | <!-- We don't use the ant file to clean because of http://jira.codehaus.org/browse/MANTRUN-78 --> | |
93 | <plugin> | |
94 | <artifactId>maven-clean-plugin</artifactId> | |
95 | <version>2.6.1</version> | |
96 | <executions> | |
97 | <execution> | |
98 | <id>clean-index</id> | |
99 | <phase>clean</phase> | |
100 | <configuration> | |
101 | <filesets> | |
102 | <fileset><directory>index/</directory></fileset> | |
103 | </filesets> | |
104 | </configuration> | |
105 | <goals> | |
106 | <goal>clean</goal> | |
107 | </goals> | |
108 | </execution> | |
109 | </executions> | |
110 | </plugin> | |
82de5675 AM |
111 | </plugins> |
112 | </build> | |
113 | ||
963f45d5 AM |
114 | <profiles> |
115 | <profile> | |
116 | <id>deploy-doc</id> | |
117 | <build> | |
118 | <plugins> | |
119 | <plugin> | |
120 | <artifactId>maven-antrun-plugin</artifactId> | |
121 | <executions> | |
122 | <execution> | |
123 | <id>deploy</id> | |
124 | <phase>install</phase> | |
125 | <goals> | |
126 | <goal>run</goal> | |
127 | </goals> | |
128 | <configuration> | |
129 | <target> | |
130 | <delete includeemptydirs="false"> | |
131 | <fileset | |
132 | dir="${docDestination}/org.eclipse.tracecompass.doc.user"> | |
133 | <include name="**" /> | |
134 | </fileset> | |
135 | </delete> | |
136 | ||
137 | <copy includeemptydirs="false" todir="${docDestination}/org.eclipse.tracecompass.doc.user"> | |
138 | <fileset dir="doc" includes="*.html,images/**"/> | |
139 | </copy> | |
140 | </target> | |
141 | </configuration> | |
142 | </execution> | |
143 | </executions> | |
144 | </plugin> | |
145 | </plugins> | |
146 | </build> | |
147 | </profile> | |
148 | </profiles> | |
149 | ||
556101f3 | 150 | <groupId>org.eclipse.tracecompass</groupId> |
89882f20 | 151 | </project> |