Skip to content

Instantly share code, notes, and snippets.

@haitaoyao
Created January 19, 2013 08:19
Show Gist options
  • Save haitaoyao/4571377 to your computer and use it in GitHub Desktop.
Save haitaoyao/4571377 to your computer and use it in GitHub Desktop.
hold tools.jar file location with diffent profile constants
<profiles>
<profile>
<id>windows_profile</id>
<activation>
<os>
<family>Windows</family>
</os>
</activation>
<properties>
<toolsjar>${java.home}/../lib/tools.jar</toolsjar>
</properties>
</profile>
<profile>
<id>osx_profile</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<properties>
<toolsjar>${java.home}/../Classes/classes.jar</toolsjar>
</properties>
</profile>
</profiles>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment