[
https://issues.apache.org/jira/browse/ODFTOOLKIT-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182158#comment-13182158
]
Dennis E. Hamilton commented on ODFTOOLKIT-299:
-----------------------------------------------
Here's the patch:
Index: trunk/taglets/pom.xml
===================================================================
--- trunk/taglets/pom.xml (revision 1228758)
+++ trunk/taglets/pom.xml (working copy)
@@ -198,11 +198,29 @@
<url>http://svn.apache.org/viewvc/incubator/odf/trunk/taglets</url>
</scm>
<profiles>
- <profile>
- <id>tools.jar</id>
+ <profile><!-- For JDK 7 and later with Oracle Brand -->
+ <id>tools-Oracle.jar</id>
<activation>
<property>
<name>java.vendor</name>
+ <value>Oracle Corporation</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><!-- For JDK 6 and OpenJDK with Sun as java.vendor -->
+ <id>tools-Sun.jar</id>
+ <activation>
+ <property>
+ <name>java.vendor</name>
<value>Sun Microsystems Inc.</value>
</property>
</activation>
> Build with JDK 7 as well as Earlier versions
> --------------------------------------------
>
> Key: ODFTOOLKIT-299
> URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-299
> Project: ODF Toolkit
> Issue Type: Improvement
> Components: taglets
> Affects Versions: 0.8.8
> Reporter: Dennis E. Hamilton
> Assignee: Devin Han
> Priority: Minor
> Labels: patch
>
> The Maven POM for Taglets finds tools.jar in the JDK only if the java.vendor
> is Sun Microsystems.
> The java.vendor for JDK 7 is Oracle Corporation.
> The POM can be modified to build properly in either case by splitting the
> tools.jar profile into two, one for each java.vendor case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira