Author: cziegeler
Date: Fri Feb 21 09:38:42 2014
New Revision: 1570501
URL: http://svn.apache.org/r1570501
Log:
Move dependency to tools.jar into a profile
Modified:
sling/trunk/bundles/engine/pom.xml
Modified: sling/trunk/bundles/engine/pom.xml
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/engine/pom.xml?rev=1570501&r1=1570500&r2=1570501&view=diff
==============================================================================
--- sling/trunk/bundles/engine/pom.xml (original)
+++ sling/trunk/bundles/engine/pom.xml Fri Feb 21 09:38:42 2014
@@ -89,15 +89,6 @@
</goals>
</execution>
</executions>
- <dependencies>
- <dependency>
- <groupId>com.sun</groupId>
- <artifactId>tools</artifactId>
- <version>1.5.0</version>
- <scope>system</scope>
- <systemPath>${java.home}/../lib/tools.jar</systemPath>
- </dependency>
- </dependencies>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
@@ -250,6 +241,25 @@
</dependency>
</dependencies>
<profiles>
+ <!-- Dependency to tools.jar for the ant task -->
+ <profile>
+ <id>default-tools.jar</id>
+ <activation>
+ <property>
+ <name>java.vendor</name>
+ <value>Sun Microsystems Inc.</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun</groupId>
+ <artifactId>tools</artifactId>
+ <version>1.5.0</version>
+ <scope>system</scope>
+ <systemPath>${java.home}/../lib/tools.jar</systemPath>
+ </dependency>
+ </dependencies>
+ </profile>
<profile>
<id>benchmarks</id>
<build>