Hi Lachlan;

Thanks -- Henrique actually replied to me off-list and I should have copied to list (see below). Now I have a "war" issue where WO doesn't take a straight directory with "Resources/Info.plist" to be a bundle. So actual builds work, but development with Eclipse WTP fails to run as it expects to launch the servlet in Jetty from a directory of resources and classes. Note sure how you "war" build guys get around this. I registered an issue with Apple on this.

cheers.

The maven-wolifecycle-plugin (the one responsible for WO application and framework packaging) has a configuration named "flattenResources". If you change this property to true, the resources inside src/main/resources (or other defined resources folder like Resources) will be flattened respecting components, models and localizable folders. Here is an example of the configuration you have to add to your pom.xml inside the <build> section:

<plugin>
        <groupId>org.objectstyle.woproject.maven2</groupId>
        <artifactId>maven-wolifecycle-plugin</artifactId>
        <version>2.0.17</version>
        <extensions>true</extensions>
        <configuration>
                <flattenResources>true</flattenResources>
        </configuration>
</plugin>

If you are using Maven to package the application as a WAR, there is no special plug-in like the wolifecycle. So, there is no special option to flatten resources using the default maven-war-plugin. You have to create a rule for each subfolder in the resources folder to achieve the same goal in the "Maven way". Here is an example of how to "flatten" the resources inside the folder src/main/webserver- resources/images to the WebServerResources folder:

<resource>
        <targetPath>WebServerResources</targetPath>
        <directory>
                ${basedir}/src/main/webserver-resources/images
        </directory>
        <includes>
                <include>*.jpg</include>
                <include>*.gif</include>
        </includes>
</resource>

You can find more information about this subject in the end of this tutorial [1] in the WOProject Wiki. BTW, we are planning to write a special plug-in to handle true WAR packaging in the future.

___
Andrew Lindesay
www.lindesay.co.nz

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to