[jboss-cvs] JBossAS SVN: r88083 - in projects/fresh/trunk: fresh-scripting/src/main/java/org/jboss/fresh/deployer and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Apr 30 20:04:47 EDT 2009
Author: ctomc
Date: 2009-04-30 20:04:47 -0400 (Thu, 30 Apr 2009)
New Revision: 88083
Added:
projects/fresh/trunk/fresh-jar/src/main/resources/fresh-scripting.xml
Removed:
projects/fresh/trunk/fresh-jar/src/main/resources/cp2-scripting.xml
Modified:
projects/fresh/trunk/fresh-scripting/src/main/java/org/jboss/fresh/deployer/ScriptingService.java
Log:
renamed cp2-scripting to fresh-scripting
Deleted: projects/fresh/trunk/fresh-jar/src/main/resources/cp2-scripting.xml
===================================================================
--- projects/fresh/trunk/fresh-jar/src/main/resources/cp2-scripting.xml 2009-04-30 23:58:36 UTC (rev 88082)
+++ projects/fresh/trunk/fresh-jar/src/main/resources/cp2-scripting.xml 2009-05-01 00:04:47 UTC (rev 88083)
@@ -1,7 +0,0 @@
-<?xml version="1.0"?>
- <scripting>
- <provider language="javascript" ext="js" class="org.apache.bsf.engines.javascript.JavaScriptEngine" />
- <provider language="jython" ext="jy" class="org.apache.bsf.engines.jython.JythonEngine" />
- <provider language="beanshell" ext="bsh" class="bsh.util.BeanShellBSFEngine" />
- <provider language="judoscript" ext="jud;judo" class="com.judoscript.BSFJudoEngine" />
- </scripting>
\ No newline at end of file
Copied: projects/fresh/trunk/fresh-jar/src/main/resources/fresh-scripting.xml (from rev 88081, projects/fresh/trunk/fresh-jar/src/main/resources/cp2-scripting.xml)
===================================================================
--- projects/fresh/trunk/fresh-jar/src/main/resources/fresh-scripting.xml (rev 0)
+++ projects/fresh/trunk/fresh-jar/src/main/resources/fresh-scripting.xml 2009-05-01 00:04:47 UTC (rev 88083)
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+ <scripting>
+ <provider language="javascript" ext="js" class="org.apache.bsf.engines.javascript.JavaScriptEngine" />
+ <provider language="jython" ext="jy" class="org.apache.bsf.engines.jython.JythonEngine" />
+ <provider language="beanshell" ext="bsh" class="bsh.util.BeanShellBSFEngine" />
+ <provider language="judoscript" ext="jud;judo" class="com.judoscript.BSFJudoEngine" />
+ </scripting>
\ No newline at end of file
Property changes on: projects/fresh/trunk/fresh-jar/src/main/resources/fresh-scripting.xml
___________________________________________________________________
Name: svn:mergeinfo
+
Modified: projects/fresh/trunk/fresh-scripting/src/main/java/org/jboss/fresh/deployer/ScriptingService.java
===================================================================
--- projects/fresh/trunk/fresh-scripting/src/main/java/org/jboss/fresh/deployer/ScriptingService.java 2009-04-30 23:58:36 UTC (rev 88082)
+++ projects/fresh/trunk/fresh-scripting/src/main/java/org/jboss/fresh/deployer/ScriptingService.java 2009-05-01 00:04:47 UTC (rev 88083)
@@ -1,36 +1,9 @@
package org.jboss.fresh.deployer;
/**
- *
- * The usage would be something like:
- *
- * List l = svc.getSupportedLanguages();
- *
- * // check if the language of our script is supported
- *
- * BSFManager mgr = svc.getManager("javascript");
- *
- * mgr.declareBean("out", System.out, System.out.getClass());
- * mgr.exec("javascript", "nofile", 0, 0, IOUtils.getStringFromReader(reader));
- * mgr.terminate();
- *
+ * mbean that registers diferent scripting engines
*/
-
-/*
- * // register our own events so we can register event handlers in script
- *
- * svc.registerEventAdapter(new com.ibm.bsf.util.event.EventAdapterImpl() implements ScriptListener {
- * public void eventPerformed(ScriptEvent e){
- * eventProcessor.processEvent("scriptEventPerformed",new Object[]{e});
- * }
- * });
- * interface MyEventListener extends java.util.EventListener {
- * public void event(MyEvent e);
- * }
-*/
-
-
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.SAXParser;
@@ -100,7 +73,7 @@
in = new FileInputStream(cfgPath);
} else {
ClassLoader cl = Thread.currentThread().getContextClassLoader();
- URL url = cl.getResource("cp2-scripting.xml");
+ URL url = cl.getResource("fresh-scripting.xml");
if (url != null) {
in = url.openStream();
}
More information about the jboss-cvs-commits
mailing list