|
Re: Merge 2 folder at publish time [message #169600 is a reply to message #169456] |
Thu, 18 May 2006 18:02 |
Eclipse User |
|
|
|
Originally posted by: dserodio.gmail.com
Marcos Lopez wrote:
> Hi all
>
> I have a full webapp in a folder called "base-webapp" inside my eclipse
> project. This webapp is a stable product and i don't intend to change
> it. Besides this, i have a folder called "test-personalization", which
> contains new files and configuration that i want to add to the base
> product.
>
> What i want to achieve is that when the Eclipse Project is published, it
> first copies all files from "base-webapp" folder and then
> "test-personalization". If there is any file with the same name, it
> should be overwritten. Personalization has priority over "base-webapp".
>
> I have looked how to do this, and the closer i have been is by editing
> /settings/.component and write there:
>
> <wb-resource deploy-path="/" source-path="/base-webapp"/>
> <wb-resource deploy-path="/" source-path="/test-personalization"/>
>
> But sometimes is published correctly and other ones don't. I don't know
> why.
I think you're doing it correctly. Correctly publishing sometimes but
not all the time sounds like a bug.
Which version of WTP are you using? I've been using 1.5RC2 for quite a
while and it "feels" much more stable than 1.0.2.
The only problem is that projects using 1.x and 1.5x are "a little
different" (at least wrt JUnit library and J2EE Builder), so you may
have problems in a team environment.
HTH,
Daniel Serodio
|
|
|
|
|
|
Re: Merge 2 folder at publish time [message #169763 is a reply to message #169754] |
Mon, 22 May 2006 13:52 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Hi Marcos,
To request an enhancement, just report it like a bug but set the
Severity field to "enhancement". I wouldn't hold your breath as I doubt
it's very practical to implement.
You may have better luck trying to deal with the OutOfMemoryException.
It suggests that running the Ant build is leaking memory, either by Ant
or Ecplise's support for Ant. Are you running with a "Separate JRE" or
the one running the workspace?
If you can share an Ant script (simpler the better) and it's
configuration so that I can duplicate the problem, I'll try to take a
look. I have other uses for Ant scripts and it would be good to try to
address such leaks, if possible.
Cheers,
Larry
Marcos Lopez wrote:
> Hello
>
> What i was doing until now is to use an ant script that does the
> merging. I have configured it in the Builders Option of the Project
> properties to be executed every time the files are saved, and after then
> to refresh the whole project so that the publish can be done.
>
> The problem with this solution is that lasts more or less 5 seconds in
> publishing, and when i use it during 1 or 2 hours, Eclipse starts giving
> error messages of OutOfMemoryException.
>
> Is there a way that this ant task can be executed in a more efficient
> way? In case it can't be done, i would like to report the enhancement
> request that you have told me about. Where can i do this?
>
> Thank you very much!!!
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03413 seconds