Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » ClasspathContainer and "custom" entries (.tar archives)
ClasspathContainer and "custom" entries (.tar archives) [message #251444] Fri, 15 February 2008 19:08 Go to next message
Eclipse UserFriend
Originally posted by: angelo.tata.gmail.com

Hi, all.

I'm writing a custom ClasspathContainer to manage project dependencies
defined in custom configuration files. I parse those files, resolve the
dependencies, and add them to the container. So far, so good.

My current problem is that some of those dependencies (.jars) are stored
in .tar archives.

Now, I can access those archived jars directly using some 3rd party
library, or even load the actual classes using Apache Commons
VFSClassLoader, but I can't think of a way to add them as entries to my
ClasspathContainer (apart from trying to override the classloader used
by JDT, which scares me a bit and probably isn't even possible).

Extracting those files in some folder inside my plugin state area could
be a workaround, of course, but what I'd like to know is: can the
desired behaviour be achieved through JDT APIs?

Any suggestion is welcome...

Thanks in advance,

Angelo
Re: ClasspathContainer and "custom" entries (.tar archives) [message #251559 is a reply to message #251444] Wed, 20 February 2008 11:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: angelo.tata.gmail.com

Angelo Tata ha scritto:
> Hi, all.
>
> I'm writing a custom ClasspathContainer to manage project dependencies
> defined in custom configuration files. I parse those files, resolve
> the dependencies, and add them to the container. So far, so good.
>
> My current problem is that some of those dependencies (.jars) are
> stored in .tar archives.
>
> Now, I can access those archived jars directly using some 3rd party
> library, or even load the actual classes using Apache Commons
> VFSClassLoader, but I can't think of a way to add them as entries to
> my ClasspathContainer (apart from trying to override the classloader
> used by JDT, which scares me a bit and probably isn't even possible).
>
> Extracting those files in some folder inside my plugin state area
> could be a workaround, of course, but what I'd like to know is: can
> the desired behaviour be achieved through JDT APIs?
>
> Any suggestion is welcome...
>
> Thanks in advance,
>
> Angelo
Any thoughts? Even a "you can't do it" would give relief to my sleepless
nights... ;-)

Angelo
Re: ClasspathContainer and "custom" entries (.tar archives) [message #251567 is a reply to message #251559] Wed, 20 February 2008 12:33 Go to previous messageGo to next message
Eclipse UserFriend
Angelo Tata wrote:
> Angelo Tata ha scritto:
>> Hi, all.
>>
>> I'm writing a custom ClasspathContainer to manage project dependencies
>> defined in custom configuration files. I parse those files, resolve
>> the dependencies, and add them to the container. So far, so good.
>>
>> My current problem is that some of those dependencies (.jars) are
>> stored in .tar archives.
>>
>> Now, I can access those archived jars directly using some 3rd party
>> library, or even load the actual classes using Apache Commons
>> VFSClassLoader, but I can't think of a way to add them as entries to
>> my ClasspathContainer (apart from trying to override the classloader
>> used by JDT, which scares me a bit and probably isn't even possible).
>>
>> Extracting those files in some folder inside my plugin state area
>> could be a workaround, of course, but what I'd like to know is: can
>> the desired behaviour be achieved through JDT APIs?
>>
>> Any suggestion is welcome...
>>
>> Thanks in advance,
>>
>> Angelo
> Any thoughts? Even a "you can't do it" would give relief to my sleepless
> nights... ;-)
>
> Angelo
Sorry, nested jars are supported neither by JDT nor by the Platform.

Jerome
Re: ClasspathContainer and "custom" entries (.tar archives) [message #251582 is a reply to message #251567] Thu, 21 February 2008 04:17 Go to previous message
Eclipse UserFriend
Originally posted by: angelo.tata.gmail.com

This is a multi-part message in MIME format.
--------------020206040606080703010004
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Jerome Lanneluc ha scritto:
> Angelo Tata wrote:
>> Angelo Tata ha scritto:
>>> Hi, all.
>>>
>>> I'm writing a custom ClasspathContainer to manage project
>>> dependencies defined in custom configuration files. I parse those
>>> files, resolve the dependencies, and add them to the container. So
>>> far, so good.
>>>
>>> My current problem is that some of those dependencies (.jars) are
>>> stored in .tar archives.
>>>
>>> Now, I can access those archived jars directly using some 3rd party
>>> library, or even load the actual classes using Apache Commons
>>> VFSClassLoader, but I can't think of a way to add them as entries to
>>> my ClasspathContainer (apart from trying to override the classloader
>>> used by JDT, which scares me a bit and probably isn't even possible).
>>>
>>> Extracting those files in some folder inside my plugin state area
>>> could be a workaround, of course, but what I'd like to know is: can
>>> the desired behaviour be achieved through JDT APIs?
>>>
>>> Any suggestion is welcome...
>>>
>>> Thanks in advance,
>>>
>>> Angelo
>> Any thoughts? Even a "you can't do it" would give relief to my
>> sleepless nights... ;-)
>>
>> Angelo
> Sorry, nested jars are supported neither by JDT nor by the Platform.
>
> Jerome
Whoops. I was vaguely aware of that since reading bug 157375
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=157375#c19> some time
ago, but I didn't realize that mine was a similar use case.
Thanks for the clarification.

A.


--------------020206040606080703010004
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jerome Lanneluc ha scritto:
<blockquote cite="mid:fpho8g$dm1$1@build.eclipse.org" type="cite">Angelo
Tata wrote:
<br>
<blockquote type="cite">Angelo Tata ha scritto:
<br>
<blockquote type="cite">Hi, all.
<br>
<br>
I'm writing a custom ClasspathContainer to manage project dependencies
defined in custom configuration files. I parse those files, resolve
the&nbsp; dependencies, and add them to the container. So far, so good.
<br>
<br>
My current problem is that some of those dependencies (.jars) are
stored in .tar archives.
<br>
<br>
Now, I can access those archived jars directly using some 3rd party
library, or even load the actual classes using Apache Commons
VFSClassLoader, but I can't think of a way to add them as entries to my
ClasspathContainer (apart from trying to override the classloader used
by JDT, which scares me a bit and probably isn't even possible).
<br>
<br>
Extracting those files in some folder inside my plugin state area could
be a workaround, of course, but what I'd like to know is: can the
desired behaviour be achieved through JDT APIs?
<br>
<br>
Any suggestion is welcome...
<br>
<br>
Thanks in advance,
<br>
<br>
Angelo
<br>
</blockquote>
Any thoughts? Even a "you can't do it" would give relief to my
sleepless nights... ;-)
<br>
<br>
Angelo
<br>
</blockquote>
Sorry, nested jars are supported neither by JDT nor by the Platform.
<br>
<br>
Jerome
<br>
</blockquote>
Whoops. I was vaguely aware of that since reading <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=157375#c19">bug
157375</a> some time ago, but I didn't realize that mine was a similar
use case.<br>
Thanks for the clarification.<br>
<br>
A.<br>
<br>
</body>
</html>

--------------020206040606080703010004--
Previous Topic:Re: Classpath in Launchconfiguration
Next Topic:Need a recap on JSR-045 !
Goto Forum:
  


Current Time: Thu Apr 17 21:59:13 EDT 2025

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

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

Back to the top