Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Linke to folder in teh file system - problem(to link a folder fails if the group dir already exists)
Linke to folder in teh file system - problem [message #642420] Wed, 01 December 2010 09:31 Go to next message
dbrich is currently offline dbrichFriend
Messages: 17
Registered: March 2010
Location: Austria
Junior Member
Hi,
I have two projects using the same package structure, means the high qualifier is the same (in my case "rnd"). I need to use classes from one project in the other (but not via jar, as they are still "work in progress") - so I wanted to create a "link to folder in the file system" - unfortunately it fails.
In the project I create the link into are packages like "rnd.rap" and "rnd.views", the linked classes are in package "rnd.sockets".
It seems the link-process tries to create the directory "rnd", but it already exists, so the link-creation fails, instead of simply reusing the existing dir.

My work-around is to create the link in the OS (which is no problem in Linux, but would be one on Windows) - nevertheless I feel this is a bug and should work - but being an Eclipse beginner I want to check first, maybe I didn't understand some concept yet.

Any ideas, comments or suggestions?

Thanks
Richard
Re: Linke to folder in teh file system - problem [message #642524 is a reply to message #642420] Wed, 01 December 2010 16:26 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 12/1/2010 3:01 PM, dbrich wrote:
> Hi,
> I have two projects using the same package structure, means the high
> qualifier is the same (in my case "rnd"). I need to use classes from one
> project in the other (but not via jar, as they are still "work in
> progress") - so I wanted to create a "link to folder in the file system"
> - unfortunately it fails. In the project I create the link into are
> packages like "rnd.rap" and "rnd.views", the linked classes are in
> package "rnd.sockets".
> It seems the link-process tries to create the directory "rnd", but it
> already exists, so the link-creation fails, instead of simply reusing
> the existing dir.
>
> My work-around is to create the link in the OS (which is no problem in
> Linux, but would be one on Windows) - nevertheless I feel this is a bug
> and should work - but being an Eclipse beginner I want to check first,
> maybe I didn't understand some concept yet.
>
> Any ideas, comments or suggestions?
>
> Thanks
> Richard
Why don't you just add one project to the build path of the other ?
Re: Linke to folder in teh file system - problem [message #642526 is a reply to message #642524] Wed, 01 December 2010 16:44 Go to previous messageGo to next message
dbrich is currently offline dbrichFriend
Messages: 17
Registered: March 2010
Location: Austria
Junior Member
Well, I forgot to mention that I am working on a RAP project - RAP runs against a target platform and doesn't care about build path - therefore adding a second project is not working in this case.

Richard
Re: Linke to folder in teh file system - problem [message #642621 is a reply to message #642526] Thu, 02 December 2010 02:56 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 12/1/2010 10:14 PM, dbrich wrote:
> Well, I forgot to mention that I am working on a RAP project - RAP runs
> against a target platform and doesn't care about build path - therefore
Are you sure ? Target platform comes into picture when you are
developing plug-ins, if you are developing plug-ins it is better to add
a plug-in dependency from one plug-in project to another. If you have
plain Java Projects then you should configure the build path. (In
Package Explorer Right click on project and from the context menu Build
Path > Configure Build path > Projects tab)

(Note that build path is used by both plain Java projects and plug-in
projects)

> adding a second project is not working in this case.
>
> Richard
Re: Linke to folder in teh file system - problem [message #642705 is a reply to message #642621] Thu, 02 December 2010 13:00 Go to previous messageGo to next message
dbrich is currently offline dbrichFriend
Messages: 17
Registered: March 2010
Location: Austria
Junior Member
Please, bear with me as I am new to these technologies.
Yes, I am developing a plug-in for a RAP (and RCP) target. But I also have some packages I need in this plug-in which I developed in plain Java (sockets and other utilities). I do not want to add them to the target, as that has to be done in a jar and is therefore not very flexible - the project is in start and I do make still changes to these classes on the go if I need it for the plug-in.
The source for these classes is actually in a SVN repository - my first idea was to create two additional projects and add them into the build path. That didn't work - I am actually getting syntax errors, as Eclipse does not find the classes even during coding.
Second idea was to add them as a external link - which also didn't work.
Is there maybe other way to do it? I do not need the classes in a separate project in this workspace, but I didn't find any way to add a package from SVN (I do not want to add the classes, because there are too many to do it one by one).
Re: Linke to folder in teh file system - problem [message #642774 is a reply to message #642705] Thu, 02 December 2010 16:26 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 12/2/2010 6:30 PM, dbrich wrote:
> Please, bear with me as I am new to these technologies.
> Yes, I am developing a plug-in for a RAP (and RCP) target. But I also
> have some packages I need in this plug-in which I developed in plain
> Java (sockets and other utilities). I do not want to add them to the
> target, as that has to be done in a jar and is therefore not very
> flexible - the project is in start and I do make still changes to these
> classes on the go if I need it for the plug-in.
Right, the target contains already existing plug-ins.

> The source for these
> classes is actually in a SVN repository - my first idea was to create
> two additional projects and add them into the build path.That didn't
> work - I am actually getting syntax errors, as Eclipse does not find the
> classes even during coding.
What were the errors? This should have worked... maybe the classes were
not public? (Note that you could convert your plain java
projects/classes into a plug-in, just to use the plug-in dependency
mechanism.)

> Second idea was to add them as a external link - which also didn't work.
> Is there maybe other way to do it? I do not need the classes in a
> separate project in this workspace, but I didn't find any way to add a
> package from SVN (I do not want to add the classes, because there are
> too many to do it one by one).
Re: Link to folder in the file system - problem [message #643594 is a reply to message #642774] Tue, 07 December 2010 15:39 Go to previous messageGo to next message
dbrich is currently offline dbrichFriend
Messages: 17
Registered: March 2010
Location: Austria
Junior Member
Well, I am not able to recreate the syntax error - looks like you are right that adding the project into dependencies cures that problem.
I still cannot run the plug-in though - it does not find the classes from these projects.

I suppose I can make plug-in from my "plain" classes, but would that not mean to export them into a jar then?
If not that could be my solution - to create a "utilities" plug-in and put all these classes into it, could be even useful during deployment.

But should not be possible to create a link to other file even if the high-level directory already exists?
Re: Link to folder in the file system - problem [message #643729 is a reply to message #643594] Wed, 08 December 2010 02:56 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 12/7/2010 9:09 PM, dbrich wrote:
> Well, I am not able to recreate the syntax error - looks like you are
> right that adding the project into dependencies cures that problem.
> I still cannot run the plug-in though - it does not find the classes
> from these projects.
>
> I suppose I can make plug-in from my "plain" classes, but would that not
> mean to export them into a jar then?
A plugin is usually a jar :)

>If not that could be my solution -
> to create a "utilities" plug-in and put all these classes into it, could
> be even useful during deployment.
Exactly!
>
> But should not be possible to create a link to other file even if the
> high-level directory already exists?
Maybe, I did not look into this. The support for links was added to
Eclipse Platform recently and mostly for people doing C,C++ dev. In the
Java world I have not really seen a good use for links.
Previous Topic:IDL compiler plugin for Eclipse
Next Topic:Failed to connect to remote JVM, connection timed out
Goto Forum:
  


Current Time: Thu Mar 28 22:50:59 GMT 2024

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

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

Back to the top