Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Programmatically set target platform to manage external libraries
Programmatically set target platform to manage external libraries [message #1821497] Thu, 13 February 2020 10:44 Go to next message
Eclipse UserFriend
Hello,

I have added a p2 repository in my Xtext project's ".target" project to be able to use an external library. However, for Eclipse to resolve this dependency I have to change the target platform manually in "Window" -> "Preferences" -> "Plug-in Development" -> "Target Platform" from "Running Platform" (which just points at my eclipse installation folder) to the ".target" project of my Xtext project. Is there a way to programmatically get Eclipse to recognize the ".target" project as the default target platform?

(if this is not possible, is there another way to depend on external libraries with a Tycho/Maven build?)

[Updated on: Thu, 13 February 2020 11:02] by Moderator

Re: Programmatically set target platform to manage external libraries [message #1821569 is a reply to message #1821497] Sat, 15 February 2020 02:46 Go to previous message
Eclipse UserFriend
you may have a look at oomph
it allows you to create targets in oomph and derive the target file from that. oomph automatically sets the target platform then (based on the definition in oomph)
https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Generating_PDE_Target_Definition_files_.28.2A.target.29_and_their_use_by_Tycho
Previous Topic:Deriving model from binary class files
Next Topic:Deriving model from binary class files
Goto Forum:
  


Current Time: Thu Jul 10 00:46:06 EDT 2025

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

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

Back to the top