Skip to content

Commit 23f7d10

Browse files
Include com.sun.tools dependency only if Java 8
This change causes com.sun.tools to be included as a dependency only if the JDK version is 1.8.
1 parent e1311fb commit 23f7d10

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@
7272
<connection>scm:hg:http://hg.mozilla.org/projects/htmlparser/</connection>
7373
<url>http://hg.mozilla.org/projects/htmlparser/</url>
7474
</scm>
75+
<profiles>
76+
<profile>
77+
<activation>
78+
<jdk>1.8</jdk>
79+
</activation>
80+
<dependencies>
81+
<dependency>
82+
<groupId>com.sun</groupId>
83+
<artifactId>tools</artifactId>
84+
<version>1.5.0</version>
85+
<scope>system</scope>
86+
<systemPath>${java.home}/../lib/tools.jar</systemPath>
87+
</dependency>
88+
</dependencies>
89+
</profile>
90+
</profiles>
7591
<build>
7692
<sourceDirectory>${project.build.directory}/src</sourceDirectory>
7793
<testSourceDirectory>${basedir}/test-src</testSourceDirectory>

0 commit comments

Comments
 (0)