how do you get the path to the javascript file going through the rhino shell command line?
for example: java -jar js.jar / path / to / this / file.js
I would like to get /path/to/this/file.jsany ideas?
/path/to/this/file.js
I do not think this is possible without any Java. jsdoc solves it with a class that wraps a rhino and inserts the specified path (although it is a bit buggy). You can find its code (and the shell script that runs in the torso): http://code.google.com/p/jsdoc-toolkit/source/browse/trunk/jsdoc-toolkit/java/src/JsRun.java
Source: https://habr.com/ru/post/1756467/More articles:Can a process with a 32-bit compiled binary use more than 4 GB of memory? - pythonGetting data from a has_many relation in DBIx :: Class - perlConvert binary code to string and then back to binary - phpConsole Text Management? - .netPython: как переопределить атрибуты данных в вызовах методов? - pythonUsing multiple channels in simplepie with codeigniter - phpUPDATE IF THERE IS A REQUEST - c #How is the .NET event Application.OnIdle encoded in Win32? - eventsHow would a irc bot written on a tcl stack be against a python / node.js clone? - pythonHow to debug javascript? - javascriptAll Articles