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> | |
2b042910 | 59 | </plugin> |
887cb879 MAL |
60 | <!-- Build help index --> |
61 | <plugin> | |
62 | <groupId>org.eclipse.tycho.extras</groupId> | |
63 | <artifactId>tycho-eclipserun-plugin</artifactId> | |
887cb879 MAL |
64 | <configuration> |
65 | <appArgLine>-application org.eclipse.ant.core.antRunner -buildfile build.xml build.index</appArgLine> | |
66 | </configuration> | |
67 | </plugin> | |
68 | <!-- We don't use the ant file to clean because of http://jira.codehaus.org/browse/MANTRUN-78 --> | |
69 | <plugin> | |
70 | <artifactId>maven-clean-plugin</artifactId> | |
887cb879 MAL |
71 | <executions> |
72 | <execution> | |
73 | <id>clean-index</id> | |
74 | <phase>clean</phase> | |
75 | <configuration> | |
76 | <filesets> | |
77 | <fileset><directory>index/</directory></fileset> | |
78 | </filesets> | |
79 | </configuration> | |
80 | <goals> | |
81 | <goal>clean</goal> | |
82 | </goals> | |
83 | </execution> | |
84 | </executions> | |
85 | </plugin> | |
2b042910 BH |
86 | </plugins> |
87 | </build> | |
88 | ||
963f45d5 AM |
89 | <profiles> |
90 | <profile> | |
91 | <id>deploy-doc</id> | |
92 | <build> | |
93 | <plugins> | |
94 | <plugin> | |
95 | <artifactId>maven-antrun-plugin</artifactId> | |
96 | <executions> | |
97 | <execution> | |
98 | <id>deploy</id> | |
99 | <phase>install</phase> | |
100 | <goals> | |
101 | <goal>run</goal> | |
102 | </goals> | |
103 | <configuration> | |
104 | <target> | |
105 | <delete includeemptydirs="false"> | |
106 | <fileset | |
107 | dir="${docDestination}/org.eclipse.tracecompass.rcp.doc.user"> | |
108 | <include name="**" /> | |
109 | </fileset> | |
110 | </delete> | |
111 | ||
112 | <copy includeemptydirs="false" todir="${docDestination}/org.eclipse.tracecompass.rcp.doc.user"> | |
113 | <fileset dir="doc" includes="*.html,images/**"/> | |
114 | </copy> | |
115 | </target> | |
116 | </configuration> | |
117 | </execution> | |
118 | </executions> | |
119 | </plugin> | |
120 | </plugins> | |
121 | </build> | |
122 | </profile> | |
123 | </profiles> | |
124 | ||
2b042910 | 125 | </project> |