How do I programmatically add an external class folder to build path? [message #116551] |
Wed, 12 November 2003 17:47  |
Eclipse User |
|
|
|
Hi,
I tried JavaCore.newLibraryEntry(folder, null,null) , it didn't
work, I guess it only accepts folders that are inside the workspace.
Is there a way to add an external class folder to the classpath
programmatically. I can do it within the UI (By creating a new folder
and linking it to the folder in the file system), so I would think it
would be possible to do it programmatically. Anybody have an idea on how
to do this?
Thanks,
Gina
|
|
|
Re: How do I programmatically add an external class folder to build path? [message #116611 is a reply to message #116551] |
Thu, 13 November 2003 03:51   |
Eclipse User |
|
|
|
See IFolder.createLink(IPath, int, IProgressMonitor) then use
JavaCore.newLibraryEntry(folder, null,null) with the IFolder's path.
Jerome
"Gina Assaf" <assaf@parasoft.com> wrote in message
news:boud2m$fk4$1@eclipse.org...
> Hi,
> I tried JavaCore.newLibraryEntry(folder, null,null) , it didn't
> work, I guess it only accepts folders that are inside the workspace.
> Is there a way to add an external class folder to the classpath
> programmatically. I can do it within the UI (By creating a new folder
> and linking it to the folder in the file system), so I would think it
> would be possible to do it programmatically. Anybody have an idea on how
> to do this?
> Thanks,
> Gina
>
|
|
|
Re: How do I programmatically add an external class folder to build path? [message #116813 is a reply to message #116611] |
Thu, 13 November 2003 18:41  |
Eclipse User |
|
|
|
Thanks, that worked.
-Gina
Jerome Lanneluc wrote:
> See IFolder.createLink(IPath, int, IProgressMonitor) then use
> JavaCore.newLibraryEntry(folder, null,null) with the IFolder's path.
>
> Jerome
>
> "Gina Assaf" <assaf@parasoft.com> wrote in message
> news:boud2m$fk4$1@eclipse.org...
>
>>Hi,
>> I tried JavaCore.newLibraryEntry(folder, null,null) , it didn't
>>work, I guess it only accepts folders that are inside the workspace.
>>Is there a way to add an external class folder to the classpath
>>programmatically. I can do it within the UI (By creating a new folder
>>and linking it to the folder in the file system), so I would think it
>>would be possible to do it programmatically. Anybody have an idea on how
>>to do this?
>>Thanks,
>> Gina
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03434 seconds