[ http://jira.codehaus.org/browse/MANTRUN-20?page=comments#action_81972 ] Tobias Bocanegra commented on MANTRUN-20: -----------------------------------------
can you explain why antrun uses jre and not jdk? especially when tasks need the tools.jar this causes headache with other platforms (eg MacOS) that do not have the tools.jar at the same location. > Antrun plugin defaults to using jre classpath instead of jdk > ------------------------------------------------------------ > > Key: MANTRUN-20 > URL: http://jira.codehaus.org/browse/MANTRUN-20 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Reporter: ruel loehr > Assigned To: Brett Porter > > When executing ant tasks via the antrun plugin, maven reconciles them with a > jre classpath. You can verify this by running the antrun plugin with the > following task: > <echo message="{java.home"/> > The solution I can see is to add a plugin dependency on the antrun plugin > which resolves to the tools.jar, however another bug prevents this from > working in anything but top level projects. Hence, the antrun plugin cannot > be used for any compilation purposes (javac, rmic) for child projects. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
