saiddfhi / gwt-maven

Automatically exported from code.google.com/p/gwt-maven
0 stars 0 forks source link

Add some examples with os activated profiles in the POM #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Like so:

<profiles>
        <profile>
            <id>gwt-mac</id>
            <activation>
                <os>
                    <family>mac</family>
                </os>
            </activation>
            <properties>
                <google.webtoolkit.home>
                    ${env.GWT_HOME}/gwt-mac-1.4.61
                </google.webtoolkit.home>
                <google.webtoolkit.extrajvmargs>
                    -XstartOnFirstThread
                </google.webtoolkit.extrajvmargs>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>com.google.gwt</groupId>
                    <artifactId>gwt-dev-mac</artifactId>
                    <version>1.4.61</version>
                    <scope>system</scope>
                    <systemPath>
                        ${google.webtoolkit.home}/gwt-dev-mac.jar
                    </systemPath>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>gwt-linux</id>
            <activation>
                <os>
                    <name>Linux</name>
                </os>
            </activation>
            <properties>
                <google.webtoolkit.home>
                    ${env.GWT_HOME}/gwt-linux-1.4.61
                </google.webtoolkit.home>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>com.google.gwt</groupId>
                    <artifactId>gwt-dev-linux</artifactId>
                    <version>1.4.61</version>
                    <scope>system</scope>
                    <systemPath>
                        ${google.webtoolkit.home}/gwt-dev-linux.jar
                    </systemPath>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>gwt-windows</id>
            <activation>
                <os>
                    <family>windows</family>
                </os>
            </activation>
            <properties>
                <google.webtoolkit.home>
                    ${env.GWT_HOME}/gwt-windows-1.4.61
                </google.webtoolkit.home>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>com.google.gwt</groupId>
                    <artifactId>gwt-dev-windows</artifactId>
                    <version>1.4.61</version>
                    <scope>system</scope>
                    <systemPath>
                        ${google.webtoolkit.home}/gwt-dev-windows.jar
                    </systemPath>
                </dependency>
            </dependencies>
        </profile>
    </profiles>

Original issue reported on code.google.com by charlie....@gmail.com on 12 Feb 2008 at 1:43

GoogleCodeExporter commented 9 years ago
Using the automatic method now in samples, don't need profile. 

Original comment by charlie....@gmail.com on 2 Apr 2008 at 2:44