Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-core-dev] Creating the .project file *not* at root level...

Hello. I posted this on the newsgroups, and did not get any response. I have
been googling for a few days now.. no luck. Any help would be highly
appreciated:

========================================
Hello,

I am trying to create an eclipse project (.project) for everyone to use in
our team: trying to convert some people from IDEA to Eclipse ;)

What I need is, to have the .project (and .classpath) files inside the
project hierarchy, instead of the project root directory.

For example: Consider a project, named "foo", files located in c:\foo. I
have to create .project and .classpath in the folder
c:\foo\optional\ide\eclipse (in keeping with the standard
c:\foo\optional\ide\idea, and others)

Any ideas on how to do this ?

The main problem I am facing is that I cannot create a folder link to
c:\foo
(error message: Cannot create a link to c:\foo because it overlaps the
location of the project that contains the linked resource), and thus cannot
use /foo/fooroot/java/source, /foo/fooroot/lib, and other folders, as I
would have liked to. As a workaround, I tried to link the lib folder
directly:
<linkedResources>
	<link>
		<name>lib</name>
		<type>2</type>
		<location>c:/foo/lib</location>
	</link>
</linkedResources>
and was able to use /foo/lib/foo-bar.jar in the project.

Another problem is that I am not able to specify relative paths in the
project file. If I were to change the <location> in above to ../../../lib,
the link does not work! I need this as everyone may not have the foo project
in c:\foo. I myself have it in c:\myprojects\foo

Any help / recommendations / suggestions to get this working would be highly
appreciated.

Thanks,

Ajay
========================================



************************************************************************** 
This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.





Back to the top