Enhancement: Ability to set a working directory #37

Closed
swick7 opened this Issue May 13, 2013 · 5 comments

Comments

Projects
None yet
3 participants
@swick7

swick7 commented May 13, 2013

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

This comment has been minimized.

Show comment
Hide comment
@paulvi

paulvi May 14, 2013

Member

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

Member

paulvi commented May 14, 2013

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

@ghost ghost assigned tomotaro1065 May 14, 2013

@tomotaro1065

This comment has been minimized.

Show comment
Hide comment
@tomotaro1065

tomotaro1065 May 14, 2013

Member

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

Member

tomotaro1065 commented May 14, 2013

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

@swick7

This comment has been minimized.

Show comment
Hide comment
@swick7

swick7 May 15, 2013

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 May 15, 2013

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

This comment has been minimized.

Show comment
Hide comment

swick7 commented May 15, 2013

Thanks!

@tomotaro1065

This comment has been minimized.

Show comment
Hide comment
@tomotaro1065

tomotaro1065 May 19, 2013

Member

Version 0.4 has been released.

Member

tomotaro1065 commented May 19, 2013

Version 0.4 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment