Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Creating Run/Debug configuration(How can I create a Run/Debug configuration via oomph)
Creating Run/Debug configuration [message #1758018] Wed, 22 March 2017 18:36 Go to next message
BHARTESH DOSHI is currently offline BHARTESH DOSHIFriend
Messages: 1
Registered: March 2017
Junior Member
Hi,

I need to create a run / debug configuration via oomph. What is the suitable task that can help me achieve this?

Thanks,
Bhartesh
Re: Creating Run/Debug configuration [message #1758109 is a reply to message #1758018] Thu, 23 March 2017 15:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Typically you would use the Common tab to store the launch configuration as a shared file in some project that you import into the workspace. That would seem the best way.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Creating Run/Debug configuration [message #1758606 is a reply to message #1758109] Thu, 30 March 2017 14:18 Go to previous message
Velizar Nenov is currently offline Velizar NenovFriend
Messages: 13
Registered: July 2016
Junior Member
Hello,

This is an example how I import External Tools Configurations with Oomph, in my opinion we can use the same approach to import Run / Debug configurations:

<?xml version="1.0" encoding="UTF-8"?>
<setup:Project
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="launch.cfg.settings"
    label="Launch configurations">
  <setupTask
      xsi:type="setup:ResourceCreationTask"
      filter=""
      content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?>&#xA;&lt;launchConfiguration type=&quot;org.eclipse.ui.externaltools.ProgramLaunchConfigurationType&quot;>&#xA;&#x9;&lt;listAttribute key=&quot;org.eclipse.debug.ui.favoriteGroups&quot;>&#xA;&#x9;&#x9;&lt;listEntry value=&quot;org.eclipse.ui.externaltools.launchGroup&quot;/>&#xA;&#x9;&lt;/listAttribute>&#xA;&#x9;&lt;stringAttribute key=&quot;org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE&quot; value=&quot;$${none}&quot;/>&#xA;&#x9;&lt;stringAttribute key=&quot;org.eclipse.ui.externaltools.ATTR_LOCATION&quot; value=&quot;$${env_var:windir}\explorer.exe&quot;/>&#xA;&#x9;&lt;stringAttribute key=&quot;org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS&quot; value=&quot;$${workspace_loc}&quot;/>&#xA;&lt;/launchConfiguration>"
      targetURL="file:/${workspace.location}\.metadata\.plugins\org.eclipse.debug.core\.launches\Open workspace directory.launch"
      encoding="UTF-8">
    <description></description>
  </setupTask>
  <setupTask
      xsi:type="setup:ResourceCreationTask"
      content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?>&#xA;&lt;launchConfiguration type=&quot;org.eclipse.ui.externaltools.ProgramLaunchConfigurationType&quot;>&#xA;&#x9;&lt;listAttribute key=&quot;org.eclipse.debug.ui.favoriteGroups&quot;>&#xA;&#x9;&#x9;&lt;listEntry value=&quot;org.eclipse.ui.externaltools.launchGroup&quot;/>&#xA;&#x9;&lt;/listAttribute>&#xA;&#x9;&lt;stringAttribute key=&quot;org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE&quot; value=&quot;$${none}&quot;/>&#xA;&#x9;&lt;stringAttribute key=&quot;org.eclipse.ui.externaltools.ATTR_LOCATION&quot; value=&quot;$${eclipse_home}\eclipse.exe&quot;/>&#xA;&#x9;&lt;stringAttribute key=&quot;org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS&quot; value=&quot;$${workspace_loc}/.metadata/.log&quot;/>&#xA;&lt;/launchConfiguration>"
      targetURL="file:/${workspace.location}\.metadata\.plugins\org.eclipse.debug.core\.launches\Open workspace .log file.launch"
      encoding="UTF-8"/>
  <stream name="master" label="Master"/>
  <logicalProjectContainer xsi:type="setup:ProjectCatalog" href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']"/>
  <description>Import External Tools Launch configurations.</description>
</setup:Project>


what you need to do is to enter the XML content of .launch file in content field of the Resource Creation task:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
	<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
		<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
	</listAttribute>
	<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE" value="$${none}"/>
	<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="$${eclipse_home}\eclipse.exe"/>
	<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="$${workspace_loc}/.metadata/.log"/>
</launchConfiguration>


But also please take into consideration the approach mentioned by Ed Merks.

Regards,
Velizar
Previous Topic:[Closed] Refere product setups in catalog
Next Topic:Install Eclipse executable package silently via Chef
Goto Forum:
  


Current Time: Fri Dec 06 14:09:19 GMT 2024

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

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

Back to the top