Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 76 forks source link

Enhancement: Ability to set a working directory #37

Closed swick7 closed 11 years ago

swick7 commented 11 years ago

Great job integrating NodeJS into eclipse! The look and feel is seamless.

Would it be possible for you to add a “Working Directory” option to the Run Configuration dialog for Node Applications?

Here’s my situation:

I’m using NodeJS to optimize the javascript for our website with RequireJS.

I have: C:\users\swick4\programs\node\node.exe C:\TFS\MyProject\Branches\1.2.0\FrontEnd\Presentation Layer\assets\scripts\libs\r.js C:\TFS\MyProject\Branches\1.2.0\FrontEnd\Presentation Layer\assets\app.build.js

For this to work, node.exe has to be run from the folder C:\TFS\MyProject\Branches\1.2.0\FrontEnd\Presentation Layer\assets

From DOS I have to execute the command: C:\TFS\MyProject\Branches\1.2.0\FrontEnd\Presentation Layer\assets> C:\users\swick4\programs\node\node.exe scripts\libs\r.js -o app.build.js

Right now there is no way to tell the Run Configuration for a Node Application to execute node.exe from a specific working directory.

paulvi commented 11 years ago

What is your project base folder? Have you tried create 2 projects? (It will add 2 .project files)

tomotaro1065 commented 11 years ago

This feature will be available on next version(0.4).

swick7 commented 11 years ago

My project base folder is C:\TFS\MyProject\Branches\1.2.0.

When I run node.exe from the working folder, C:\TFS\MyProject\Branches\1.2.0\FrontEnd\Presentation Layer\assets, it reads and writes to files in the parent folder, C:\TFS\MyProject\Branches\1.2.0\FrontEnd\Presentation Layer.

swick7 commented 11 years ago

Thanks!

tomotaro1065 commented 11 years ago

Version 0.4 has been released.