• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebServerResources patternset
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebServerResources patternset


  • Subject: Re: WebServerResources patternset
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 14 Apr 2010 14:30:57 -0700


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 <chill@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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: WebServerResources patternset
      • From: John Huss <email@hidden>
References: 
 >WebServerResources patternset (From: John Huss <email@hidden>)
 >Re: WebServerResources patternset (From: Chuck Hill <email@hidden>)
 >Re: WebServerResources patternset (From: John Huss <email@hidden>)

  • Prev by Date: Re: WebServerResources patternset
  • Next by Date: Re: Basic question - lightweight to-one relationship from entity to POJO/enum
  • Previous by thread: Re: WebServerResources patternset
  • Next by thread: Re: WebServerResources patternset
  • Index(es):
    • Date
    • Thread