Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2015-01-29 16:12:01 -0500
committerGerrit Code Review @ Eclipse.org2015-01-29 22:07:31 -0500
commit619216fca4e3a9161c7c1d3014db05fc331eeec4 (patch)
treee7ebdeb09efc8d77d3f6bc97b16db2c66fdc56e0 /build/org.eclipse.cdt.autotools.docs
parentc6156d2ee694dbdea3ec4190ddfcb5dcc1865741 (diff)
downloadorg.eclipse.cdt-619216fca4e3a9161c7c1d3014db05fc331eeec4.tar.gz
org.eclipse.cdt-619216fca4e3a9161c7c1d3014db05fc331eeec4.tar.xz
org.eclipse.cdt-619216fca4e3a9161c7c1d3014db05fc331eeec4.zip
Add build flag (-DskipDoc) to be able to skip building documentation
Building documentation can take several minutes and is often not necessary. I suggest that we leave it on by default so that people building locally still get a full, consistent build of CDT but that it should be possible to skip it on demand. My build time went from 4:14s to 1:45s (without running tests). Change-Id: Ic7c4535f3faf82080534d39ccbe6f452d8b52317 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Diffstat (limited to 'build/org.eclipse.cdt.autotools.docs')
-rw-r--r--build/org.eclipse.cdt.autotools.docs/pom.xml82
1 files changed, 46 insertions, 36 deletions
diff --git a/build/org.eclipse.cdt.autotools.docs/pom.xml b/build/org.eclipse.cdt.autotools.docs/pom.xml
index 879c4b3ebe..7ffb3abb18 100644
--- a/build/org.eclipse.cdt.autotools.docs/pom.xml
+++ b/build/org.eclipse.cdt.autotools.docs/pom.xml
@@ -14,39 +14,49 @@
<version>2.0.2-SNAPSHOT</version>
<artifactId>org.eclipse.cdt.autotools.docs</artifactId>
<packaging>eclipse-plugin</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-eclipserun-plugin</artifactId>
- <version>${tycho-extras-version}</version>
- <configuration>
- <appArgLine>-application org.eclipse.ant.core.antRunner -buildfile build-index.xml build.index</appArgLine>
- <dependencies>
- <dependency>
- <artifactId>org.apache.ant</artifactId>
- <type>eclipse-plugin</type>
- </dependency>
- <dependency>
- <artifactId>org.eclipse.help.base</artifactId>
- <type>eclipse-plugin</type>
- </dependency>
- <dependency>
- <artifactId>org.eclipse.ant.core</artifactId>
- <type>eclipse-plugin</type>
- </dependency>
- </dependencies>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>eclipse-run</goal>
- </goals>
- <phase>compile</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project> \ No newline at end of file
+
+ <profiles>
+ <profile>
+ <id>build-doc</id>
+ <activation>
+ <property>
+ <name>!skipDoc</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-eclipserun-plugin</artifactId>
+ <version>${tycho-extras-version}</version>
+ <configuration>
+ <appArgLine>-application org.eclipse.ant.core.antRunner -buildfile build-index.xml build.index</appArgLine>
+ <dependencies>
+ <dependency>
+ <artifactId>org.apache.ant</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ <dependency>
+ <artifactId>org.eclipse.help.base</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ <dependency>
+ <artifactId>org.eclipse.ant.core</artifactId>
+ <type>eclipse-plugin</type>
+ </dependency>
+ </dependencies>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>eclipse-run</goal>
+ </goals>
+ <phase>compile</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>

Back to the top