29 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34 // This script assumes you've built jdk9 or using latest
35 // jdk9 image and put the 'bin' directory in the PATH
36
37 $EXEC.throwOnError=true
38
39 // compile UnderscoreNameLinkerExporter
40 `javac -cp ../../dist/nashorn.jar UnderscoreNameLinkerExporter.java`
41
42 // make a jar file out of pluggable linker
43 `jar cvf underscore_linker.jar UnderscoreNameLinkerExporter*.class META-INF/`
44
45 // run a sample script that uses pluggable linker
46 // but make sure classpath points to the pluggable linker jar!
47
48 `jjs -cp underscore_linker.jar underscore.js`
49 print($OUT)
50
|
29 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34 // This script assumes you've built jdk9 or using latest
35 // jdk9 image and put the 'bin' directory in the PATH
36
37 $EXEC.throwOnError=true
38
39 // compile UnderscoreNameLinkerExporter
40 `javac -cp ../../dist/nashorn.jar UnderscoreNameLinkerExporter.java`
41
42 // make a jar file out of pluggable linker
43 `jar cvf underscore_linker.jar UnderscoreNameLinkerExporter*.class META-INF/`
44
45 // run a sample script that uses pluggable linker
46 // but make sure classpath points to the pluggable linker jar!
47
48 `jjs -cp underscore_linker.jar underscore.js`
49 print($ERR)
50 print($OUT)
51
|