Statistics
| Revision:

root / tmp / org.txm.groovy.core / src / groovy / org / txm / macro / debug / JavascriptVersionMacro.groovy @ 479

History | View | Annotate | Download (449 Bytes)

1
// Copyright © 2016 ENS de Lyon, CNRS, University of Franche-Comté
2
// Licensed under the terms of the GNU General Public License (http://www.gnu.org/licenses)
3
// @author sheiden
4

    
5
import javax.script.*
6

    
7
manager = new ScriptEngineManager()
8
engine = manager.getEngineByName("JavaScript")
9
factory = engine.getFactory()
10

    
11
println factory.getLanguageName()+" "+factory.getLanguageVersion()+" ("+factory.getEngineName()+" "+factory.getEngineVersion()+")"