On Apr 14, 2010, at 1:43 PM, John Huss wrote:

Just the regular stuff:

        <target name="build.woapp" depends="compile">
<taskdef name="woapplication" classname="org.objectstyle.woproject.ant.WOApplication"/>

<woapplication name="${build.app.name}" frameworksBaseURL="/ WebObjects/${build.app.name}.woa/Frameworks" destDir="${dest.dir}" customInfoPListContent="${customInfoPListContent}" principalClass="$ {principalClass}" webXML="${webXML}" webXML_CustomContent="$ {webXML_CustomContent}" servletAdaptor="er.extensions.jspservlet.ERXServletAdaptor">
                        <classes dir="${classes.dir}">
                                <includesfile 
name="woproject/classes.include.patternset" />
                                <excludesfile 
name="woproject/classes.exclude.patternset" />
                        <exclude if="javaClient" name="**/client/**/*.*"/>
                        </classes>

                        <wsresources dir=".">
                                <includesfile 
name="woproject/wsresources.include.patternset" />
                                <excludesfile 
name="woproject/wsresources.exclude.patternset" />
                        </wsresources>

OK, I am not sure that it is "copying the war folder itself instead of just the contents of it - which is different than the WSR", the WebServerResources in

App.woa/Contents/WebServerResources/app.css

is part of the path from "." I think. I hate this part of Ant. It makes my head hurt. And I suspect woproject of sneaky tricks to make normal things "just work". Abnormal things (like what you are doing) then don't "just work".

I _think_ what you want is something like this:

<wsresources dir=".">
    <includesfile name="woproject/wsresources.include.patternset" />
    <excludesfile name="woproject/wsresources.exclude.patternset" />
</wsresources>

and take war/**/* out of wsresources.include.patternset and add this:

<wsresources dir="war">
    <includes name="**/*" />
</wsresources>


Chuck



                        <resources dir=".">
                                <includesfile 
name="woproject/resources.include.patternset" />
                                <excludesfile 
name="woproject/resources.exclude.patternset" />
                        <exclude if="javaClient" name="**/client/**/*.*"/>
                        </resources>

<frameworks root="ProjectLocal" embed="${embed.ProjectLocal}" eclipse="true" /> <frameworks root="External" embed="${embed.External}" eclipse="true" />
                        <frameworks root="Local" embed="${embed.Local}" 
eclipse="true" />
                        <frameworks root="User" embed="${embed.User}" 
eclipse="true" />
                        <frameworks root="System" embed="${embed.System}" 
eclipse="true" />
<frameworks root="Network" embed="${embed.Network}" eclipse="true" />

                        <lib dir="Libraries">
                                <include name="**/*.jar" />
                        </lib>
                </woapplication>
        </target>


On Wed, Apr 14, 2010 at 3:37 PM, Chuck Hill <ch...@global- village.net> wrote:
What is in the woapplication task in your build.xml  file?

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________
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