Skip to content

Commit f564acc

Browse files
committed
save LaunchConfiguration within project
1 parent 60a58b1 commit f564acc

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

org.nodeclipse.help/contents/.run.md.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5-
<title>C:\Users\weibl\git\Enide-nodeclipse-1\org.nodeclipse.help\contents\.run.md.html</title>
5+
<title>D:\Workspaces\Nodeclipse-DEV\nodeclipse-1\org.nodeclipse.help\contents\.run.md.html</title>
66

77

88
<style type="text/css">
@@ -453,16 +453,16 @@
453453
<h2> <a name="running" class="anchor" href="..md.html#running"><span class="octicon octicon-link"></span></a>Running</h2>
454454
<p>Right-click <code>.js</code> file with Node.js app and select &quot;Run As -&gt; Node Application&quot; (similar to Java applications).</p>
455455
<p>Press <kbd>Ctrl+F11</kbd> to run [again].</p>
456-
<h3> <a name="warning-06-behavior" class="anchor" href="..md.html#warning-06-behavior"><span class="octicon octicon-link"></span></a>Warning 0.6 behavior</h3>
457-
<p>In Nodeclipse version 0.6 add possibility to run Node.js app with monitor (see Monitor page) or launch coffee util to compile <code>*.coffee</code> files. However these have ran into problem <a href="http://stackoverflow.com/questions/19157302/eclipse-plugin-development-saved-launchconfiguration-overrides-launchtype">http://stackoverflow.com/questions/19157302/eclipse-plugin-development-saved-launchconfiguration-overrides-launchtype</a> That will be fixed as soon as solution is found.</p>
458456
<h3> <a name="run-configuration" class="anchor" href="..md.html#run-configuration"><span class="octicon octicon-link"></span></a>Run Configuration</h3>
459-
<p>Right-click <code>.js</code> file with Node.js app and select &quot;Run As -&gt; Run Configuration...&quot;</p>
457+
<p>You can configure node and apps parameters workspace wide in <code>Preferences -&gt; Nodeclipse</code> or per file:</p>
458+
<p>Right-click <code>.js</code> file with Node.js app and select &quot;Run As -&gt; Run Configuration...&quot; (Hint: the easiest way to create LaunchConfiguration is actually run the file once.)</p>
460459
<p>You can configure to pass</p>
461460
<ul>
462461
<li>program arguments</li>
463462
<li>Node arguments</li>
464463
<li>set working directory</li>
465464
</ul>
465+
<p>To have LaunchConfiguration saved within Project folder, select path in <code>Shared File</code> field on <code>Common</code> Tab of LaunchConfiguration. (Yes, dialog string is confusing)</p>
466466
<p>Since Nodeclipse 0.5 it is possible to set environment variables in a launch configuration. The &quot;Environment&quot; tab is not there in the Node launcher.</p>
467467
<p>As an alternative way you can also add another JS file that sets the variables before it calls the node app and run that instead.</p>
468468
<p>e.g.</p>
@@ -473,6 +473,8 @@ <h3> <a name="run-configuration" class="anchor" href="..md.html#run-configuratio
473473
<span class="p">},</span><span class="mi">100</span><span class="p">);</span>
474474
</pre>
475475
</div>
476+
<h3> <a name="warning-06-behavior" class="anchor" href="..md.html#warning-06-behavior"><span class="octicon octicon-link"></span></a>Warning 0.6 behavior</h3>
477+
<p>In Nodeclipse version 0.6 add possibility to run Node.js app with monitor (see Monitor page) or launch coffee util to compile <code>*.coffee</code> files. However these have ran into problem <a href="http://stackoverflow.com/questions/19157302/eclipse-plugin-development-saved-launchconfiguration-overrides-launchtype">http://stackoverflow.com/questions/19157302/eclipse-plugin-development-saved-launchconfiguration-overrides-launchtype</a> </p>
476478
<h3> <a name="sources" class="anchor" href="..md.html#sources"><span class="octicon octicon-link"></span></a>Sources</h3>
477479
<p>Check <a href="https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.debug/src/org/nodeclipse/debug/launch/LaunchConfigurationDelegate.java">LaunchConfigurationDelegate.java</a> for launching Node.js logic.</p>
478480
<h3> <a name="contribute" class="anchor" href="..md.html#contribute"><span class="octicon octicon-link"></span></a>Contribute</h3>

org.nodeclipse.help/contents/run.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,26 @@ Right-click `.js` file with Node.js app and select "Run As -> Node Application"
77

88
Press <kbd>Ctrl+F11</kbd> to run [again].
99

10-
### Warning 0.6 behavior
11-
12-
In Nodeclipse version 0.6 add possibility to run Node.js app with monitor (see Monitor page)
13-
or launch coffee util to compile `*.coffee` files. However these have ran into
14-
problem <http://stackoverflow.com/questions/19157302/eclipse-plugin-development-saved-launchconfiguration-overrides-launchtype>
15-
That will be fixed as soon as solution is found.
16-
1710
### Run Configuration
1811

12+
You can configure node and apps parameters workspace wide in `Preferences -> Nodeclipse`
13+
or per file:
14+
1915
Right-click `.js` file with Node.js app and select "Run As -> Run Configuration..."
16+
(Hint: the easiest way to create LaunchConfiguration is actually run the file once.)
2017

2118
You can configure to pass
2219

2320
- program arguments
2421
- Node arguments
2522
- set working directory
2623

24+
To have LaunchConfiguration saved within Project folder, select path in `Shared File` field on `Common` Tab of LaunchConfiguration.
25+
(Yes, dialog string is confusing)
26+
<!--
27+
http://stackoverflow.com/questions/8625060/store-run-configuration-with-project-in-eclipse
28+
-->
29+
2730
Since Nodeclipse 0.5 it is possible to set environment variables in a launch configuration.
2831
The "Environment" tab is not there in the Node launcher.
2932

@@ -38,6 +41,12 @@ require("./app.js");
3841
},100);
3942
```
4043

44+
### Warning 0.6 behavior
45+
46+
In Nodeclipse version 0.6 add possibility to run Node.js app with monitor (see Monitor page)
47+
or launch coffee util to compile `*.coffee` files. However these have ran into
48+
problem <http://stackoverflow.com/questions/19157302/eclipse-plugin-development-saved-launchconfiguration-overrides-launchtype>
49+
4150
### Sources
4251

4352
Check [LaunchConfigurationDelegate.java](https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.debug/src/org/nodeclipse/debug/launch/LaunchConfigurationDelegate.java)

0 commit comments

Comments
 (0)