Skip to content

Commit ff479ac

Browse files
Set fork=true if Java 8
1 parent 21a426f commit ff479ac

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

pom.xml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,6 @@
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>
9175
<build>
9276
<sourceDirectory>${project.build.directory}/src</sourceDirectory>
9377
<testSourceDirectory>${basedir}/test-src</testSourceDirectory>
@@ -131,8 +115,8 @@
131115
<property name="translator.sources" value="${basedir}/translator-src"/>
132116
<property name="translator.classes" value="${project.build.directory}/translator-classes"/>
133117
<mkdir dir="${translator.classes}"/>
134-
<javac srcdir="${translator.sources}" includes="nu/validator/htmlparser/generator/ApplyHotSpotWorkaround.java" destdir="${translator.classes}" includeantruntime="false"/>
135-
<java classname="nu.validator.htmlparser.generator.ApplyHotSpotWorkaround">
118+
<javac srcdir="${translator.sources}" includes="nu/validator/htmlparser/generator/ApplyHotSpotWorkaround.java" destdir="${translator.classes}" includeantruntime="false" fork="${fork}"/>
119+
<java classname="nu.validator.htmlparser.generator.ApplyHotSpotWorkaround" fork="${fork}">
136120
<classpath>
137121
<pathelement location="${translator.classes}"/>
138122
</classpath>
@@ -247,5 +231,25 @@
247231
<rpm.java.dir>/usr/share/java</rpm.java.dir>
248232
<rpm.javadoc.dir>/usr/share/javadoc</rpm.javadoc.dir>
249233
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
234+
<property name="fork" value="false"/>
250235
</properties>
236+
<profiles>
237+
<profile>
238+
<activation>
239+
<jdk>1.8</jdk>
240+
</activation>
241+
<properties>
242+
<property name="fork" value="true"/>
243+
</properties>
244+
<dependencies>
245+
<dependency>
246+
<groupId>com.sun</groupId>
247+
<artifactId>tools</artifactId>
248+
<version>1.5.0</version>
249+
<scope>system</scope>
250+
<systemPath>${java.home}/../lib/tools.jar</systemPath>
251+
</dependency>
252+
</dependencies>
253+
</profile>
254+
</profiles>
251255
</project>

0 commit comments

Comments
 (0)