integration tests fail on Mac OS X because tools.jar
----------------------------------------------------

                 Key: MWEBSTART-175
                 URL: https://jira.codehaus.org/browse/MWEBSTART-175
             Project: Maven 2.x Webstart Plugin
          Issue Type: Bug
          Components: build
    Affects Versions: 1.0-beta-2
         Environment: Mac OS X 10.6
            Reporter: The Alchemist
         Attachments: maven-webstart-fix.it.tests.on.mac.os.x.txt

{{tools.jar}} doesn't exist on Mac OS X (at least not until OpenJDK is ported 
to it and it becomes the standard JVM).  The proper way is to use profiles to 
use Mac OS X's {{classes.jar}} instead:

{code:xml}
<profiles>
    <profile>
        <id>default-profile</id>
        <activation>
            <activeByDefault>true</activeByDefault>
            <file>
                <exists>${java.home}/../lib/tools.jar</exists>
            </file>
        </activation>
        <properties>
            <toolsjar>${java.home}/../lib/tools.jar</toolsjar>
        </properties>
    </profile>
    <profile>
        <id>mac-profile</id>
        <activation>
            <activeByDefault>false</activeByDefault>
            <file>
                <exists>${java.home}/../Classes/classes.jar</exists>
            </file>
        </activation>
        <properties>
            <toolsjar>${java.home}/../Classes/classes.jar</toolsjar>
        </properties>
    </profile>
</profiles>
{code}

The patch adds this to the integration tests that need it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to