Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » How to use the existing *.target file in oomph setup file(How to use the existing *.target file in oomph setup file)
How to use the existing *.target file in oomph setup file [message #1728408] Mon, 04 April 2016 08:46 Go to next message
Avneesh Singh is currently offline Avneesh SinghFriend
Messages: 22
Registered: September 2015
Junior Member
index.php/fa/25513/0/Hi,
In my project, I need to use my existing *.target file and I found the clue from your old post that "You can use a Target Platform task. In that task, you can specify the name of the target definition file; just the file name without the
..target extension" but I think I am making some mistake. Please help me. I have added a screenshot below. Where to specify the location of the target file and how to make this target as default target.

P.S: "New Target" is the target name.

Thanks,
Avneesh

  • Attachment: test.PNG
    (Size: 51.29KB, Downloaded 930 times)
Re: How to use the existing *.target file in oomph setup file [message #1728424 is a reply to message #1728408] Mon, 04 April 2016 09:53 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
Am 04.04.2016 um 10:46 schrieb Avneesh Singh:
> Hi,
> In my project, I need to use my existing *.target file and I found the clue from your old post that "You can use a Target Platform task. In that task, you can specify the name of the target definition file; just the file name without the
> ..target extension" but I think I am making some mistake. Please help me. I have added a screenshot below. Where to specify the location of the target file and how to make this target as default target.
>
> P.S: "New Target" is the target name.
Your .target file (its project) must already be imported into the workspace. Then the Target Platform task can load and
process the target by name, "New Target" in your case.

Cheers
/Eike

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


Re: How to use the existing *.target file in oomph setup file [message #1728429 is a reply to message #1728424] Mon, 04 April 2016 10:34 Go to previous messageGo to next message
Avneesh Singh is currently offline Avneesh SinghFriend
Messages: 22
Registered: September 2015
Junior Member
Thanks Eike!!
Its true but I wanted my target"New Target" to be selected by default in the "target platform" in the preferences.

How to do it??
Re: How to use the existing *.target file in oomph setup file [message #1728555 is a reply to message #1728429] Tue, 05 April 2016 12:30 Go to previous messageGo to next message
Avneesh Singh is currently offline Avneesh SinghFriend
Messages: 22
Registered: September 2015
Junior Member
Sorry. Now, I understood u. But I am getting a following error .

Class 'TargetPlatformTask' is not found or is abstract. (archive:http://www.eclipse.org/setups/setups.zip!/http/git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/ETS_Eclipse_project.setup, 141, 26)

Please help

Thanks
Avneesh
Re: How to use the existing *.target file in oomph setup file [message #1728626 is a reply to message #1728555] Wed, 06 April 2016 04:19 Go to previous messageGo to next message
Avneesh Singh is currently offline Avneesh SinghFriend
Messages: 22
Registered: September 2015
Junior Member
Hi Again,

I have tried and it works now. I have to add the ecore for target platform task(which is pde) manually like below.

xmlns:pde="http://www.eclipse.org/oomph/setup/pde/1.0"
xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
xsi:schemaLocation="http://www.eclipse.org/oomph/setup/projects/1.0 models/Projects.ecore http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/pde.ecore".

Why it can't get added automatically in the setup editor as soon as wee add the task?
Re: How to use the existing *.target file in oomph setup file [message #1728674 is a reply to message #1728626] Wed, 06 April 2016 11:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
I really don't know what steps you took that lead to a problem. The
PDE.ecore model has this annotation:

<eAnnotations source="http://www.eclipse.org/oomph/setup/Enablement">
<details key="variableName" value="setup.pde.p2"/>
<details key="repository" value="${oomph.update.url}"/>
<details key="installableUnits"
value="org.eclipse.oomph.setup.pde.feature.group"/>
</eAnnotations>

So normally when a task from that model is part of a project setup, the
Setup PDE feature will be installed automatically into that IDE.

And normally in an IDE where you are editing Setup models, a dynamic
version of the model is available. And to create a Target Platform
Task, the enabled actions in the editor let you install the Setup PDE
feature to be able to create the task.

So I don't know what setups I'd need to follow to reproduce a problem.


On 06.04.2016 06:19, Avneesh Singh wrote:
> Hi Again,
>
> I have tried and it works now. I have to add the ecore for target
> platform task(which is pde) manually like below.
>
> xmlns:pde="http://www.eclipse.org/oomph/setup/pde/1.0"
> xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
> xsi:schemaLocation="http://www.eclipse.org/oomph/setup/projects/1.0
> models/Projects.ecore http://www.eclipse.org/oomph/setup/git/1.0
> http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/pde.ecore".
>
> Why it can't get added automatically in the setup editor as soon as
> wee add the task?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Edit: Can Oomph import a project from TFVC?
Next Topic:TargetDefinitionGenerator generates incomplete .target file
Goto Forum:
  


Current Time: Tue Sep 24 23:10:14 GMT 2024

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

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

Back to the top