maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MANTRUN-91) Cannot run javac from tasks
Date Tue, 20 Jan 2009 16:16:20 GMT

    [ http://jira.codehaus.org/browse/MANTRUN-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161726#action_161726
] 

Benjamin Bentmann commented on MANTRUN-91:
------------------------------------------

bq. how would you do it?
That what I've seen in other plugins:
{code:xml}
<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.4.2</version>
      <scope>system</scope>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
    </dependency>
  </dependencies>
</profile>
{code}

bq. and would that work for OS X?
AFAIK yes, because the contents of {{tools.jar}} is part of the {{classes.jar}} on OS X, i.e.
is on the normal bootstrap classpath.

> Cannot run javac from tasks
> ---------------------------
>
>                 Key: MANTRUN-91
>                 URL: http://jira.codehaus.org/browse/MANTRUN-91
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Bug
>            Reporter: Thomas Diesler
>            Assignee: Carlos Sanchez
>
> Embedded error: The following error occurred while executing this line:
> /home/tdiesler/svn/jbossws/stack/native/trunk/modules/testsuite/native-tests/scripts/antrun-wstools.xml:65:
Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK

-- 
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

        

Mime
View raw message