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> | |
31 | <executions> | |
32 | <execution> | |
33 | <id>generate-documentation</id> | |
34 | <phase>generate-sources</phase> | |
35 | <configuration> | |
8995fed0 | 36 | <echo>Generating Help Files</echo> |
f4b0de0f | 37 | <target> |
82de5675 AM |
38 | <property name="compile_classpath" refid="maven.compile.classpath" /> |
39 | <ant target="build" inheritRefs="true" antfile="build.xml" /> | |
f4b0de0f | 40 | </target> |
82de5675 AM |
41 | </configuration> |
42 | <goals> | |
43 | <goal>run</goal> | |
44 | </goals> | |
45 | </execution> | |
46 | <execution> | |
47 | <id>clean-documentation</id> | |
48 | <phase>clean</phase> | |
49 | <configuration> | |
8995fed0 | 50 | <echo>Cleaning up generated Help Files</echo> |
f4b0de0f | 51 | <target> |
82de5675 | 52 | <ant target="clean" antfile="build.xml" /> |
f4b0de0f | 53 | </target> |
82de5675 AM |
54 | </configuration> |
55 | <goals> | |
56 | <goal>run</goal> | |
57 | </goals> | |
58 | </execution> | |
59 | </executions> | |
60 | ||
61 | <dependencies> | |
62 | <dependency> | |
63 | <groupId>org.apache.ant</groupId> | |
64 | <artifactId>ant</artifactId> | |
65 | <version>1.8.1</version> | |
66 | </dependency> | |
67 | ||
68 | <dependency> | |
69 | <groupId>org.apache.ant</groupId> | |
70 | <artifactId>ant-launcher</artifactId> | |
71 | <version>1.8.1</version> | |
72 | </dependency> | |
73 | ||
74 | <dependency> | |
75 | <groupId>org.apache.ant</groupId> | |
76 | <artifactId>ant-nodeps</artifactId> | |
77 | <version>1.8.1</version> | |
78 | </dependency> | |
79 | ||
80 | </dependencies> | |
81 | </plugin> | |
887cb879 MAL |
82 | <!-- Build help index --> |
83 | <plugin> | |
84 | <groupId>org.eclipse.tycho.extras</groupId> | |
85 | <artifactId>tycho-eclipserun-plugin</artifactId> | |
887cb879 MAL |
86 | <configuration> |
87 | <appArgLine>-application org.eclipse.ant.core.antRunner -buildfile build.xml build.index</appArgLine> | |
88 | </configuration> | |
89 | </plugin> | |
90 | <!-- We don't use the ant file to clean because of http://jira.codehaus.org/browse/MANTRUN-78 --> | |
91 | <plugin> | |
92 | <artifactId>maven-clean-plugin</artifactId> | |
887cb879 MAL |
93 | <executions> |
94 | <execution> | |
95 | <id>clean-index</id> | |
96 | <phase>clean</phase> | |
97 | <configuration> | |
98 | <filesets> | |
99 | <fileset><directory>index/</directory></fileset> | |
100 | </filesets> | |
101 | </configuration> | |
102 | <goals> | |
103 | <goal>clean</goal> | |
104 | </goals> | |
105 | </execution> | |
106 | </executions> | |
107 | </plugin> | |
82de5675 AM |
108 | </plugins> |
109 | </build> | |
110 | ||
963f45d5 AM |
111 | <profiles> |
112 | <profile> | |
113 | <id>deploy-doc</id> | |
114 | <build> | |
115 | <plugins> | |
116 | <plugin> | |
117 | <artifactId>maven-antrun-plugin</artifactId> | |
118 | <executions> | |
119 | <execution> | |
120 | <id>deploy</id> | |
121 | <phase>install</phase> | |
122 | <goals> | |
123 | <goal>run</goal> | |
124 | </goals> | |
125 | <configuration> | |
126 | <target> | |
127 | <delete includeemptydirs="false"> | |
128 | <fileset | |
129 | dir="${docDestination}/org.eclipse.tracecompass.doc.user"> | |
130 | <include name="**" /> | |
131 | </fileset> | |
132 | </delete> | |
133 | ||
134 | <copy includeemptydirs="false" todir="${docDestination}/org.eclipse.tracecompass.doc.user"> | |
135 | <fileset dir="doc" includes="*.html,images/**"/> | |
136 | </copy> | |
137 | </target> | |
138 | </configuration> | |
139 | </execution> | |
140 | </executions> | |
141 | </plugin> | |
142 | </plugins> | |
143 | </build> | |
144 | </profile> | |
145 | </profiles> | |
146 | ||
89882f20 | 147 | </project> |