-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Build it in how? Anything having to do with system paths is going to be really fragile, we knew that. But, it's also what profiles were designed to do...the only problem is in detecting the specific JVM (rather than just the OS). I agree that it seems a little complex, but the concept of system scoped dependencies inherently means you have to be *very* careful to handle multiple environments.
If you have any ideas on how to make this cleaner, I'd be eager to discuss it. - -john Brett Porter wrote: | Can we file an issue to build some of this in, please? I don't think we | want everyone having to reproduce this one :) | | - Brett | | [EMAIL PROTECTED] wrote: | | |>Author: jdcasey |>Date: Thu Sep 15 12:11:16 2005 |>New Revision: 289290 |> |>URL: http://svn.apache.org/viewcvs?rev=289290&view=rev |>Log: |>Trying to adjust to work with OSX. |> |>Modified: |> maven/components/trunk/maven-core-it/it0063/pom.xml |> |>Modified: maven/components/trunk/maven-core-it/it0063/pom.xml |>URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/it0063/pom.xml?rev=289290&r1=289289&r2=289290&view=diff |>============================================================================== |>--- maven/components/trunk/maven-core-it/it0063/pom.xml (original) |>+++ maven/components/trunk/maven-core-it/it0063/pom.xml Thu Sep 15 12:11:16 2005 |>@@ -10,7 +10,7 @@ |> <artifactId>jdk-tools</artifactId> |> <version>1.4.2</version> |> <scope>system</scope> |>- <systemPath>${java.home}/../lib/tools.jar</systemPath> |>+ <systemPath>${toolsJarPath}</systemPath> |> </dependency> |> <dependency> |> <groupId>junit</groupId> |>@@ -19,4 +19,30 @@ |> <scope>test</scope> |> </dependency> |> </dependencies> |>+ <profiles> |>+ <profile> |>+ <id>default-tools.jar</id> |>+ <activation> |>+ <property> |>+ <name>java.vendor</name> |>+ <value>Sun Microsystems Inc.</value> |>+ </property> |>+ </activation> |>+ <properties> |>+ <toolsJarPath>${java.home}/../lib/tools.jar</toolsJarPath> |>+ </properties> |>+ </profile> |>+ <profile> |>+ <id>osx-tools.jar</id> |>+ <activation> |>+ <property> |>+ <name>java.vendor</name> |>+ <value>Apple Computer, Inc.</value> |>+ </property> |>+ </activation> |>+ <properties> |>+ <toolsJarPath>${java.home}/../Classes/classes.jar</toolsJarPath> |>+ </properties> |>+ </profile> |>+ </profiles> |></model> |> |> |> |>--------------------------------------------------------------------- |>To unsubscribe, e-mail: [EMAIL PROTECTED] |>For additional commands, e-mail: [EMAIL PROTECTED] |> |> |> | | | --------------------------------------------------------------------- | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFDKiS3K3h2CZwO/4URAn0HAJ9XtUaAfvw3iD1Se09kA6Tl30ywmACgsAF0 JqRUSFLaM6qH2oNq4QRG4Ks= =VRn3 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]