| 
| Eclipse project structure [message #335823] | Fri, 01 May 2009 19:16  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: jean.bovet.oracle.com 
 Hi,
 
 I am currently evaluating Eclipse to create an RCP version of our current
 Swing application and I have a few questions concerning the way Eclipse
 handles project structures:
 
 1) In our build structure (maven), the source and resources are in separate
 folders (src/main/java and src/main/resources). How can I configure Eclipse
 in order to have the eclipse-project specific files (.project, .classpath)
 in src/main/eclipse while having the resources in src/main/resources (e.g.
 meta-inf, plugin.xml) and the code in src/main/java? I am able to link the
 source files correctly but Eclipse refuses to consider the plugin as a
 bundle as long as the meta-inf/MANIFEST.MF is located in src/main/resources.
 Any suggestion if it is possible to achieve this setup?
 
 2) Is it possible to specify an output folder outside the project folder?
 
 3) All our project dependencies are located in a repository somewhere in the
 disk. In the Eclipse plugin runtime settings page, the Classpath section
 allows only to specify libraries located in the project (it is an RCP plugin
 project). Is there a way to specify a library that is located outside a
 project in the runtime classpath?
 
 Thanks a lot,
 
 Jean
 |  |  |  | 
|  | 
|  | 
|  | 
| 
| Re: Eclipse project structure [message #335855 is a reply to message #335823] | Tue, 05 May 2009 11:21   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: eclipse-news.rizzoweb.com 
 Jean Bovet wrote:
 > Hi,
 >
 > I am currently evaluating Eclipse to create an RCP version of our current
 > Swing application and I have a few questions concerning the way Eclipse
 > handles project structures:
 >
 > 1) In our build structure (maven), the source and resources are in separate
 > folders (src/main/java and src/main/resources). How can I configure Eclipse
 > in order to have the eclipse-project specific files (.project, .classpath)
 > in src/main/eclipse while having the resources in src/main/resources (e.g.
 > meta-inf, plugin.xml) and the code in src/main/java? I am able to link the
 > source files correctly but Eclipse refuses to consider the plugin as a
 > bundle as long as the meta-inf/MANIFEST.MF is located in src/main/resources.
 > Any suggestion if it is possible to achieve this setup?
 
 No, the Eclipse-specific files need to be in the specific places (mostly
 in the root of the project, except for manifest.mf which must be under
 meta-inf. These are "bootstrap" files that Eclipse has to know exactly
 where to kind in order to know what kind of project it is and how to
 handle it.
 There is a feature request to allow some flexibility in the placement of
 some of these files, but it is not something that will be implemented
 soon (ie, not for the upcoming 3.5 release).
 
 There are usually ways to structure the Eclipse Project (note the
 capital P) to get along with an existing project (not the little p)
 structure. The Help has a tutorial under the Java Development guide
 (online version is here:
 http://help.eclipse.org/ganymede/topic/org.eclipse.jdt.doc.u ser/gettingStarted/qs-ProjectConfiguration.htm)
 
 For example, if the root of your project structure is MyProject/ then
 you would ideally have this:
 
 MyProject/
 .project
 .classpath
 plugin.xml
 plugin.properties
 meta-inf/
 MANIFEST.MF
 src/
 main/
 java/
 <.java files live under here>
 resources/
 <non-Java files live here>
 
 Normally, everything there would be checked in. If you explain exactly
 why that kind of structure does not work for you, we might be able to
 offer work-arounds or alternative solutions to satisfy your existing
 project needs.
 
 Hope this helps,
 Eric
 |  |  |  | 
|  | 
|  | 
Powered by 
FUDForum. Page generated in 0.04616 seconds