Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Files copied from src to bin on compile - config?
Files copied from src to bin on compile - config? [message #335575] Wed, 15 April 2009 14:32 Go to next message
Bruno Melloni is currently offline Bruno MelloniFriend
Messages: 13
Registered: July 2009
Junior Member
I noticed a strange behavior with Eclipse's normal build mechanism:

Context:
- Using Ganymede
- The project type is Java Project
- The project is use to produce a libary jar.
- The project is referenced by other projects during their build/deploy.
- The project contains a .properties and a .cfg.xml files under /src.

Issue noticed:
- During a build, the .properties file is copied to /bin, the .xml file is
not.
- During an export to JAR, both files properly show at the root of the jar
- which puts them properly in the classpath.
- When referenced by another project, the .xml files is not found in the
classpath - probably because it was not copied to /bin.

Questions:

1) Is there an Eclipse configuration item to tell it what file types to
copy from /src to /bin during compile? If so, where?

2) If not, what is the proper location to place project config files so
that Eclipse will correctly place them in the classpath when the project
is referenced by another project or included in the deployment of a
referencing project to an app server (i.e.: web app using the library)?

3) If Eclipse isn't capable of doing either (1) or (2), is the only
alternative abandoning Eclipse build/deploys and switch to either Ant or
Maven builds?
Re: Files copied from src to bin on compile - config? [message #335577 is a reply to message #335575] Wed, 15 April 2009 14:37 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
> 1) Is there an Eclipse configuration item to tell it what file types to
> copy from /src to /bin during compile? If so, where?

Preferences->Java->Compiler->Building->Filtered Resources

- Prakash
--

http://blog.eclipse-tips.com
Re: Files copied from src to bin on compile - config? [message #335579 is a reply to message #335575] Wed, 15 April 2009 14:51 Go to previous messageGo to next message
Bruno Melloni is currently offline Bruno MelloniFriend
Messages: 13
Registered: July 2009
Junior Member
I forgot to mention: As a dirty hack, using the same (/src) directory for
both source and compiled code (instead of using /bin for compiled code)
bypasses the problem. But it is clearly a dirty solution.

I almost have to wonder... is this an Eclipse bug?
Re: Files copied from src to bin on compile - config? [message #335581 is a reply to message #335577] Wed, 15 April 2009 14:57 Go to previous messageGo to next message
Bruno Melloni is currently offline Bruno MelloniFriend
Messages: 13
Registered: July 2009
Junior Member
Thank you Prakash. That worked perfectly!
Re: Files copied from src to bin on compile - config? [message #335583 is a reply to message #335579] Wed, 15 April 2009 15:19 Go to previous message
Owen Rees is currently offline Owen ReesFriend
Messages: 41
Registered: July 2009
Member
bruno.melloni@chickasaw.net (Bruno Melloni) writes:

> I almost have to wonder... is this an Eclipse bug?

If you have the TPTP plugin installed you may be suffering from
https://bugs.eclipse.org/bugs/show_bug.cgi?id=230050

It is worth checking the version if you have TPTP as I believe it is
supposed to be fixed.

--
Owen Rees; speaking personally, and not on behalf of HP.
========================================================
Hewlett-Packard Limited. Registered No: 690597 England
Registered Office: Cain Road, Bracknell, Berks RG12 1HN
Previous Topic:Responce time
Next Topic:Text Editor line breaks
Goto Forum:
  


Current Time: Tue Nov 12 22:22:51 GMT 2024

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

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

Back to the top