Skip to content

Commit

Permalink
Fix tools jar dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain Defrance committed Mar 27, 2013
1 parent 304ba20 commit 2c38d8e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin/pom.xml
Expand Up @@ -40,6 +40,14 @@
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6</version>
<scope>system</scope>
<systemPath>${tools.jar}</systemPath>
<optional>true</optional>
</dependency>
</dependencies>

<build>
Expand Down
15 changes: 15 additions & 0 deletions pom.xml
Expand Up @@ -25,6 +25,7 @@
<nbm.plugin.version>3.8</nbm.plugin.version>
<jar.plugin.version>2.2</jar.plugin.version>
<helper.plugin.version>1.7</helper.plugin.version>
<tools.jar>${java.home}/../lib/tools.jar</tools.jar>
</properties>

<modules>
Expand Down Expand Up @@ -127,5 +128,19 @@
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>mac</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<properties>
<tools.jar>${java.home}/../Classes/classes.jar</tools.jar>
</properties>
</profile>
</profiles>

</project>

0 comments on commit 2c38d8e

Please sign in to comment.