Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » some resource are not copied during build
some resource are not copied during build [message #220764] Fri, 16 December 2005 07:59 Go to next message
Eclipse UserFriend
Hello,

I have resources that need to be on the build path before execution.
The normal way is to put these resources in one of the source folder and
they should be copied.
But this does not work for .class resources. For my project I have .class
resources that are already compiled that I need them to be placed in the
build output path of the project.
I have tried to set include filters in the source folder holding my .class
resources but the build process is ignoring it.
If I directly put them in the build output path they are cleaned when a
build start.

Somthing seems to be missing in Eclipse as the builder decides which kind
of files are resources or not, I did not find anyway to set this up. I
have found a way to exclude file types in the preferences, but no way to
say add new resources type.

This request seems a bit wierd but beleive me that is what I need to do.
I am expecting people giving me workaround, but this is a requirement.

Does anybody knows how to do this.


SeB.
Re: some resource are not copied during build [message #220770 is a reply to message #220764] Fri, 16 December 2005 08:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

You would instead create a folder in your project containing the .class
files. Then go to the buildpath path page, select the libraries tab, and
push the Add Class Folder button. There you can select you folder
containing the .class files.

This will add the folder to the build path. It doesn't copy the contents
of the folder to the bin directory, but the folder will be on the build
path for compiling and the classpath when launching an application from
the project inside eclipse.


SeB.fr wrote:
> Hello,
>
> I have resources that need to be on the build path before execution.
> The normal way is to put these resources in one of the source folder and
> they should be copied.
> But this does not work for .class resources. For my project I have
> .class resources that are already compiled that I need them to be placed
> in the build output path of the project.
> I have tried to set include filters in the source folder holding my
> .class resources but the build process is ignoring it.
> If I directly put them in the build output path they are cleaned when a
> build start.
>
> Somthing seems to be missing in Eclipse as the builder decides which
> kind of files are resources or not, I did not find anyway to set this
> up. I have found a way to exclude file types in the preferences, but no
> way to say add new resources type.
>
> This request seems a bit wierd but beleive me that is what I need to do.
> I am expecting people giving me workaround, but this is a requirement.
>
> Does anybody knows how to do this.
>
>
> SeB.
>

--
Thanks,
Rich Kulp
Re: some resource are not copied during build [message #220879 is a reply to message #220770] Mon, 19 December 2005 00:43 Go to previous messageGo to next message
Eclipse UserFriend
I expected someone would advise me to do that but I run a VM that only
allow one folder as a classpath (to be short) so I need all my classes and
resources in one directory.
Thanks for this advice but this was not my requirement ;)

Any other Idea ?

SeB.
Re: some resource are not copied during build [message #220899 is a reply to message #220764] Mon, 19 December 2005 19:42 Go to previous messageGo to next message
Eclipse UserFriend
How about putting the .class resources into a bonified jar. That's where
they should be anyway, don't you think? Eclipse/java know jars well and
should behave as such.

IMHO.

Peace.
Re: some resource are not copied during build [message #220924 is a reply to message #220899] Tue, 20 December 2005 07:06 Go to previous message
Eclipse UserFriend
Thank you for you proposition but this is not possible.
I think I should give more details of the environment I work with.

We have our own implementation of a java VM that only takes 1 directory in
the classpath (to make it short) and only directories, not jars.
I know this is not flexible but these are my requirements.

Any other idea?


SeB.
Previous Topic:Check assignable of a org.eclipse.jdt.core.dom.Type and java.lang.String
Next Topic:Java formatter in Eclipse 3.1
Goto Forum:
  


Current Time: Sun Jul 27 15:33:14 EDT 2025

Powered by FUDForum. Page generated in 0.04484 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top