How run javaScript form eclipse in commondline [message #1004959] |
Thu, 24 January 2013 08:00 |
|
Simple question:
I have one javaScript File , and eclipse.
Is it possible to run that script file using eclipse through command line.
If yes:
what i have to do .
If no:
Is there is any possibility to do this. any input will appreciated.
Thanks.
|
|
|
Re: How run javaScript form eclipse in commondline [message #1005463 is a reply to message #1004959] |
Fri, 25 January 2013 14:37 |
John Steele Messages: 50 Registered: January 2010 |
Member |
|
|
Are you trying to execute the javascript file from the host Eclipse console, or from within a custom plugin or rcp application? In either case, you might want to look into creating your own Gogo Command, which essentially allows you to easily add your own command to the console. Check this help doc out: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fconsole_shell.htm. Take a look at the Writing Gogo Commands. I would imagine you would write a command (e.g., >jscript myJavaScriptFile.js), which would pass the name or path of the .js file to execute, and from there you can run it. I don't write javascript, and I've never executed javascript from within Eclipse, so if there's already functionality to do this from the command line I'm not aware of it; however, if it were available, it would probably be implemented by writing a Gogo command, where it then takes the path of the javascript file and feeds it to the javascript builder, or whatever is used for javascript.
Hope this helps, or at least stirs up some ideas.
[Updated on: Fri, 25 January 2013 15:14] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03122 seconds