Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Import external Library
Import external Library [message #1706001] Thu, 20 August 2015 21:36 Go to next message
Thibault Le Ouay is currently offline Thibault Le OuayFriend
Messages: 23
Registered: October 2014
Junior Member
Hey,

I'm trying to setup a setup for an eclipse project but for my target platform i need some plugins which are not on any p2 repository (org.apache.commons.fileupload_1.3.1.201405120000.jar )

How could I do to import them for my target platform ?

I have tried to copy them into a repository and launch eclipse with -DLIB_LOCATION=path but it doesnt work,

Any tips ?

Best,

Thibault
Re: Import external Library [message #1706008 is a reply to message #1706001] Fri, 21 August 2015 05:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Thibault,

So you really need 1.3 and not 1.2.2 as you'd find in
http://download.eclipse.org/modeling/emf/cdo/orbit/latest-R

In the end, the plugin must resolve from either a p2 update site, or
from a git clone where the source version of the bundle is available
(from which Oomph can induce a p2 update site).


On 20/08/2015 11:36 PM, Thibault Le Ouay wrote:
> Hey,
>
> I'm trying to setup a setup for an eclipse project but for my target
> platform i need some plugins which are not on any p2 repository
> (org.apache.commons.fileupload_1.3.1.201405120000.jar )
>
> How could I do to import them for my target platform ?
> I have tried to copy them into a repository and launch eclipse with
> -DLIB_LOCATION=path but it doesnt work,
>
> Any tips ?
> Best,
>
> Thibault


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Import external Library [message #1706009 is a reply to message #1706001] Fri, 21 August 2015 05:37 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 20.08.2015 um 23:36 schrieb Thibault Le Ouay:
> Hey,
>
> I'm trying to setup a setup for an eclipse project but for my target platform i need some plugins which are not on any
> p2 repository (org.apache.commons.fileupload_1.3.1.201405120000.jar )
The plugin org.apache.commons.fileupload *1.2.2* is in Orbit:
http://download.eclipse.org/tools/orbit/downloads/drops/R20150519210750/

Simple p2 repo:
http://download.eclipse.org/tools/orbit/downloads/drops/R20150519210750/repository

Composite p2 repos:
http://download.eclipse.org/modeling/emf/cdo/orbit/latest-I
http://download.eclipse.org/modeling/emf/cdo/orbit/latest-M
http://download.eclipse.org/modeling/emf/cdo/orbit/latest-R
http://download.eclipse.org/modeling/emf/cdo/orbit/latest-S

In theory it would also be possible to enhance the TargletTask such that it can deal with plain folders instead of
full-blown p2 repos. A little bit similar to a dropins folder. But that would reuire quite some effort for the implementor.

>
> How could I do to import them for my target platform ?
> I have tried to copy them into a repository
That won't work. You'd have to use the p2 publisher to get a bundle into a p2 repository (i.e. create metadata for it).

> and launch eclipse with -DLIB_LOCATION=path but it doesnt work,
Not even sure what that's supposed to do.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Import external Library [message #1706019 is a reply to message #1706009] Fri, 21 August 2015 07:42 Go to previous messageGo to next message
Thibault Le Ouay is currently offline Thibault Le OuayFriend
Messages: 23
Registered: October 2014
Junior Member
Hey Eike

Thanks for your quick answer.

I knew org.apache.fileupload is in Orbit but It's for RAP and it needs 1.3.1, and i download it from here [1]

I will try to clone the apache-fileupload git repository [2]

Otherwise it might be "easier" if someone can push it orbit ?

Best,

Thibault

[1] http://build.eclipse.org/rt/rap/base-platforms/3.1/extra-dependencies/plugins/
[2] : https://github.com/apache/commons-fileupload
Re: Import external Library [message #1706022 is a reply to message #1706019] Fri, 21 August 2015 07:54 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 21.08.2015 um 09:42 schrieb Thibault Le Ouay:
> Hey Eike
> Thanks for your quick answer.
Well, Ed was quicker, but I didn't see that when I started typing...

> I knew org.apache.fileupload is in Orbit but It's for RAP and it needs 1.3.1, and i download it from here [1]
>
> I will try to clone the apache-fileupload git repository [2]
Not sure how that can help.

> Otherwise it might be "easier" if someone can push it orbit ?
Definitely! How does RAP consume that bundle in their builds?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Import external Library [message #1706025 is a reply to message #1706022] Fri, 21 August 2015 08:07 Go to previous messageGo to next message
Thibault Le Ouay is currently offline Thibault Le OuayFriend
Messages: 23
Registered: October 2014
Junior Member
For their extra dependancies they copy the files into a directory and turn it into a p2 repository with this script [1]


[1] : http://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/releng/org.eclipse.rap.build/scripts/bless.sh
Re: Import external Library [message #1706038 is a reply to message #1706025] Fri, 21 August 2015 10:30 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 21.08.2015 um 10:07 schrieb Thibault Le Ouay:
> For their extra dependancies they copy the files into a directory and turn it into a p2 repository with this script [1]
That doesn't seem very professional. Do they expect their users to go through that pain, too? In any case, you could use
their script to create/publish your own repo.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
>
> [1] : http://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/releng/org.eclipse.rap.build/scripts/bless.sh


Re: Import external Library [message #1706079 is a reply to message #1706038] Fri, 21 August 2015 20:50 Go to previous message
Thibault Le Ouay is currently offline Thibault Le OuayFriend
Messages: 23
Registered: October 2014
Junior Member
Hey,

Thanks,

I have create a feature update site containing the needed plugin which is hosted on github and it works, but the plugin should be moved to orbit soon Smile

Thanks again for your reactivity !

Thibault
Previous Topic:How to configure ResourceCopy task to run only after GitClone task?
Next Topic:Oomph enables the "Build Automatically" preference when it finishes the installation
Goto Forum:
  


Current Time: Sun Dec 08 06:35:57 GMT 2024

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

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

Back to the top