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