Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » How to specify LaunchTask
How to specify LaunchTask [message #1809156] Wed, 10 July 2019 10:01 Go to next message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 312
Registered: February 2012
Location: Düsseldorf
Senior Member
Hi,
what is the exact syntax to specify a LaunchTask.
I have a launch for maven install in my project and want this to be triggered upon installation to generate sources from wsdl.

I have the following task added in my setup. The launcher points to a valid file.

    <setupTask
        xsi:type="launching:LaunchTask"
        id="my.maven.install"
        launcher="${git.clone.my.location/myProject|uri}/mvn_install.launch">
      <description>Install maven</description>
    </setupTask>


I keep getting:

Performing Launch file:/C:/develop/eclipse-installations/myEclipseInstallation/git/myGit/myProject/mvn_install.launch
java.lang.Exception: No launcher found for file:/C:/develop/eclipse-installations/myEclipseInstallation/git/myGit/myProject/mvn_install.launch


Instead of triggering a maven install i also tried to execute a launch for a local java application which also fails.

Could someone give me a hint on how to use this LaunchTask?

Regards,
Thorsten
Re: How to specify LaunchTask [message #1809179 is a reply to message #1809156] Wed, 10 July 2019 15:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
It's always good to look in the Eclipse Project catalog to see how others do this. E.g., you could find this example:
<?xml version="1.0" encoding="UTF-8"?>
<launching:LaunchTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:launching="http://www.eclipse.org/oomph/setup/launching/1.0"
    xsi:schemaLocation="http://www.eclipse.org/oomph/setup/launching/1.0 index:/models/Launching.ecore"
    id="CreateTestLibraries"
    launcher="Create Test Libraries"/>
The id is not important unless you want to reference this task from another task (to induce order different from the order in the model. The important point is you specify just the name of the launcher (as it appears in the launch configurations dialog), so just "mvn_install" in your case.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to specify LaunchTask [message #1809234 is a reply to message #1809179] Fri, 12 July 2019 08:20 Go to previous messageGo to next message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 312
Registered: February 2012
Location: Düsseldorf
Senior Member
Thanks Ed, I appreciate your clarification.
I looked into samples but for some weird reason I did not realize, that the qualification of the launcher path is not needed.
Thanks again for pointing this out.
Re: How to specify LaunchTask [message #1809249 is a reply to message #1809234] Fri, 12 July 2019 10:15 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
The LaunchTask.launcher attribute specifies the name of the launcher, not the path or file name.

Previous Topic:DefaultProfile.profile\.lock (Access is denied)
Next Topic:Oomph: how to update local .setup to the recent remote version
Goto Forum:
  


Current Time: Fri Mar 29 11:09:48 GMT 2024

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

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

Back to the top