Re: Eclipse, WOLips and getting the Web Resources right
Re: Eclipse, WOLips and getting the Web Resources right
- Subject: Re: Eclipse, WOLips and getting the Web Resources right
- From: Michael Bøcker-Larsen <email@hidden>
- Date: Fri, 12 Jan 2007 14:32:53 +0100
Hi Henrique
I'm using Ant. I had experienced what you describe too, but I altered
the ant build file to accommodate this.
in the build.woa task you have to change the path from '.' to
wherever your resources you use. I use
./src/main/webresources/
Thanks,
Michael
On Jan 12, 2007, at 1:18 PM, Henrique Prange wrote:
Hi Michael,
Which build style are you using? Ant or incremental?
I'm using a very similar directory structure as you are. When I use
the ant build style, resources are copied with the full path:
dist/Project.woa/Contents/WebServerResources/src/main/webserver-
resources/example.gif
So, my application doesn't find any resources. With the incremental
build style, everything works fine:
build/Project.woa/Contents/WebServerResources/example.gif
Cheers,
Henrique
Michael Bøcker-Larsen wrote:
Hi Lachlan (and others)
On Jan 12, 2007, at 12:46 AM, Lachlan Deck wrote:
Hi Michael,
On 12/01/2007, at 2:46 AM, Michael Bøcker-Larsen wrote:
I am using Eclipse/WOLips to make a WO application (migrating
from XCode) and I am having problems making the application
access the web resources even-though I have marked them as such.
I use the default build.xml
This is my project file structure:
workspace/Project/src/main/java - java file structure
workspace/Project/src/main/resources - resource files
workspace/Project/src/main/webresources - here my webresources
reside
The default structure of a WOLips WOApplication:
workspace/Project/src (or Sources)
workspace/Project/Libraries
workspace/Project/Resources
workspace/Project/Components
workspace/Project/WebServerResources
Try creating a blank project in WOLips and observe the file
structure. The ant build file relies on these unless you've
changed it.
I can try and do that, but what difference does that make. From
what I can see the project is build correctly. What relevance does
the default paths have for the final build?
The web resources are there alright (in the build, and where they
are supposed to be). That is what puzzles me.
Is there any way to look for or change WOLips default paths. I
have also considered changing the default build path ./dist/ but
when trying to run my application from Eclipse I'm prompted with:
'./dist/ does not exists', or something like that.
<...>
What could be going wrong?
Coming from XCode I'm used to getting two woa-folders ready to
be deployed on the application server and the web server. Using
Eclipse/WOLips I only get the one. Is this the intention of the
default build.xml?
The default build file is not set up for split builds
Thanks for your answers,
Michael
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
--
\o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda
| Phone: 55-21-2710-0178 E-mail: email@hidden
/ \ http://www.moleque.com.br
_______________________________________________
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