How prevent deleting resources from classpath [message #118610] |
Mon, 21 November 2005 10:25 |
Eclipse User |
|
|
|
Originally posted by: igorl.qlusters.com
Hi,
How can I prevent delete different resource files fro classpath after
first build? I would like to elaborate more: content of classpath
directory is initially created by build process (by maven), then I would
like to work with Eclipse, but after first build Eclipse actually deletes
all content of output path.
I searched differnet option, but didn't find anything.
Thank you,
Igor
|
|
|
Re: How prevent deleting resources from classpath [message #118751 is a reply to message #118610] |
Mon, 21 November 2005 19:25 |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Igor wrote:
> Hi,
> How can I prevent delete different resource files fro classpath after
> first build? I would like to elaborate more: content of classpath
> directory is initially created by build process (by maven), then I would
> like to work with Eclipse, but after first build Eclipse actually
> deletes all content of output path. I searched differnet option, but
> didn't find anything.
The problem is how does Eclipse distinguish between Maven-copied files
and old files that are no longer part of the source? If you remove an
old file from the source tree, Eclipse needs to remove it from the build
output, too. How would it know which ones are to be removed and which
ones were put there by Maven?
I suggest including the files that are being copied by Maven into the
Eclipse project's source location(s) - that way they will be copied into
the build output automatically.
HTH,
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.07896 seconds