Author: gk
Date: Tue Sep 17 09:25:36 2019
New Revision: 1867045

URL: http://svn.apache.org/viewvc?rev=1867045&view=rev
Log:
- update pom parent
- update Groovy, fix missing locator scripts
- use Junit Jupiter (Juni5) with Juni4 test runner (maven surefire + tests)
- doc update

Added:
    turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/
    turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/bar/
    turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/bar/foo.groovy
    turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/foo.groovy
Modified:
    turbine/fulcrum/trunk/script/pom.xml
    
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/AbstractScriptTest.java
    
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/GroovyTest.java
    
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/RhinoTest.java
    turbine/fulcrum/trunk/script/xdocs/index.xml

Modified: turbine/fulcrum/trunk/script/pom.xml
URL: 
http://svn.apache.org/viewvc/turbine/fulcrum/trunk/script/pom.xml?rev=1867045&r1=1867044&r2=1867045&view=diff
==============================================================================
--- turbine/fulcrum/trunk/script/pom.xml (original)
+++ turbine/fulcrum/trunk/script/pom.xml Tue Sep 17 09:25:36 2019
@@ -14,92 +14,108 @@
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
--->
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-       <parent>
-               <artifactId>turbine-parent</artifactId>
-               <groupId>org.apache.turbine</groupId>
-               <version>6</version>
-       </parent>
-       <modelVersion>4.0.0</modelVersion>
-       <groupId>org.apache.fulcrum</groupId>
-       <artifactId>fulcrum-script</artifactId>
-       <version>1.0.1-SNAPSHOT</version>
-       <name>Fulcrum Script Component</name>
-       <inceptionYear>2004</inceptionYear>
-       <description>A JSR 223 scripting Avalon component</description>
-       <url>http://turbine.apache.org/fulcrum/fulcrum-script</url>
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <parent>
+    <artifactId>turbine-parent</artifactId>
+    <groupId>org.apache.turbine</groupId>
+    <version>6</version>
+    <relativePath /><!-- ignore default value -->
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.fulcrum</groupId>
+  <artifactId>fulcrum-script</artifactId>
+  <version>1.0.1-SNAPSHOT</version>
+  <name>Fulcrum Script Component</name>
+  <inceptionYear>2004</inceptionYear>
+  <description>A JSR 223 scripting Avalon component</description>
+  <url>http://turbine.apache.org/fulcrum/fulcrum-script</url>
 
-         <!-- Required for staging to work -->
-         <distributionManagement>
-            <site>
-               <id>turbine.apache.org</id>
-               <url>https://turbine.apache.org/fulcrum/fulcrum-script/</url>
-            </site>
-         </distributionManagement>
-       <scm>
-               
<connection>scm:svn:http://svn.apache.org/repos/asf/turbine/fulcrum/trunk/script</connection>
-               
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/turbine/fulcrum/trunk/script</developerConnection>
-               
<url>http://svn.apache.org/viewvc/turbine/fulcrum/trunk/script</url>
-       </scm>
+    <!-- Required for staging to work -->
+    <distributionManagement>
+       <site>
+    <id>turbine.apache.org</id>
+    <url>https://turbine.apache.org/fulcrum/fulcrum-script/</url>
+       </site>
+    </distributionManagement>
+  <scm>
+    
<connection>scm:svn:http://svn.apache.org/repos/asf/turbine/fulcrum/trunk/script</connection>
+    
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/turbine/fulcrum/trunk/script</developerConnection>
+    <url>http://svn.apache.org/viewvc/turbine/fulcrum/trunk/script</url>
+  </scm>
 
-       <developers>
-               <developer>
-                       <name>Siegfried Goeschl</name>
-                       <id>sgoeschl</id>
-                       <email>[email protected]</email>
-                       <organization />
-                       <roles>
-                               <role>Java Developer</role>
-                       </roles>
-               </developer>
-       </developers>
+  <developers>
+    <developer>
+      <name>Siegfried Goeschl</name>
+      <id>sgoeschl</id>
+      <email>[email protected]</email>
+      <organization />
+      <roles>
+        <role>Java Developer</role>
+      </roles>
+    </developer>
+  </developers>
 
-       <dependencies>
-               <dependency>
-                       <groupId>org.apache.fulcrum</groupId>
-                       <artifactId>fulcrum-resourcemanager</artifactId>
-                       <version>1.0.2-SNAPSHOT</version>
-               </dependency>
-               <!-- Testing dependencies -->
-               <dependency>
-                       <groupId>org.codehaus.groovy</groupId>
-                       <artifactId>groovy-all</artifactId>
-                       <version>2.4.4</version>
-                       <scope>test</scope>
-               </dependency>
-               <dependency>
-                       <groupId>org.codehaus.groovy</groupId>
-                       <artifactId>groovy-jsr223</artifactId>
-                       <version>2.4.4</version>
-                       <scope>test</scope>
-               </dependency>
-               <dependency>
-                       <groupId>org.apache.fulcrum</groupId>
-                       <artifactId>fulcrum-testcontainer</artifactId>
-                       <version>1.0.8</version>
-                       <scope>test</scope>
-               </dependency>
-               <dependency>
-                       <groupId>org.apache.fulcrum</groupId>
-                       <artifactId>fulcrum-yaafi</artifactId>
-                       <version>1.0.8</version>
-                       <scope>test</scope>
-               </dependency>
-       </dependencies>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.fulcrum</groupId>
+      <artifactId>fulcrum-resourcemanager</artifactId>
+      <version>1.0.2-SNAPSHOT</version>
+    </dependency>
+    <!-- Testing dependencies -->
+    <dependency>
+      <groupId>org.codehaus.groovy</groupId>
+      <artifactId>groovy</artifactId>
+      <version>2.5.8</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.groovy</groupId>
+      <artifactId>groovy-jsr223</artifactId>
+      <version>2.5.8</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.fulcrum</groupId>
+      <artifactId>fulcrum-testcontainer</artifactId>
+      <version>1.0.8</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.fulcrum</groupId>
+      <artifactId>fulcrum-yaafi</artifactId>
+      <version>1.0.8</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
 
-       <build>
-               <sourceDirectory>${basedir}/src/java</sourceDirectory>
-               <testSourceDirectory>${basedir}/src/test</testSourceDirectory>
-       </build>
+  <build>
+    <sourceDirectory>${basedir}/src/java</sourceDirectory>
+    <testSourceDirectory>${basedir}/src/test</testSourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>3.0.0-M3</version>
+        <dependencies>
+         <!-- activates JUnit4 platform suite filtering, in IDE may need 
explicit configuration, e.g. in eclipse set Test runner=Junit4  -->
+          <dependency>
+            <groupId>org.apache.maven.surefire</groupId>
+            <artifactId>surefire-junit47</artifactId>
+            <version>3.0.0-M3</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+    </plugins>
+  </build>
 
-       <properties>
-               <turbine.site.path>fulcrum/fulcrum-script</turbine.site.path>
+  <properties>
+    <turbine.site.path>fulcrum/fulcrum-script</turbine.site.path>
     
<turbine.scmPubCheckoutDirectory>${turbine.site.cache}/fulcrum/script</turbine.scmPubCheckoutDirectory>
     
<turbine.site.cache>${project.build.directory}/turbine-sites</turbine.site.cache>
     
<siteContent.path>${project.build.directory}/staging</siteContent.path><!-- 
default stagingSiteURL -->
-       </properties>
+  </properties>
 
 </project>

Modified: 
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/AbstractScriptTest.java
URL: 
http://svn.apache.org/viewvc/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/AbstractScriptTest.java?rev=1867045&r1=1867044&r2=1867045&view=diff
==============================================================================
--- 
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/AbstractScriptTest.java
 (original)
+++ 
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/AbstractScriptTest.java
 Tue Sep 17 09:25:36 2019
@@ -1,5 +1,10 @@
 package org.apache.fulcrum.script;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -20,6 +25,7 @@ package org.apache.fulcrum.script;
  */
 
 import java.util.Hashtable;
+
 import javax.script.ScriptContext;
 import javax.script.ScriptEngine;
 import javax.script.ScriptException;
@@ -27,14 +33,18 @@ import javax.script.SimpleBindings;
 import javax.script.SimpleScriptContext;
 
 import org.apache.fulcrum.script.impl.ScriptRunnableImpl;
-import org.apache.fulcrum.testcontainer.BaseUnitTest;
+import org.apache.fulcrum.testcontainer.BaseUnit5Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Tag;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestInfo;
 
 /**
  * Common test cases for all scripting languages.
  *
  * @author <a href="mailto:[email protected]";>Siegfried Goeschl</a>
  */
-public abstract class AbstractScriptTest extends BaseUnitTest
+public abstract class AbstractScriptTest extends BaseUnit5Test
 {
     protected ScriptService scriptService;
 
@@ -43,14 +53,13 @@ public abstract class AbstractScriptTest
      *
      * @param name the test case name.
      */
-    public AbstractScriptTest(String name)
+    public AbstractScriptTest()
     {
-        super(name);
     }
 
+    @BeforeEach
     protected void setUp() throws Exception
     {
-        super.setUp();
         this.scriptService = (ScriptService) 
this.lookup(ScriptService.class.getName());
     }
 
@@ -59,6 +68,7 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Test
     public void testCompilableInterface() throws Exception
     {
         for (int i = 0; i < 3; i++)
@@ -75,6 +85,7 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Test
     public void testHelloWorld() throws Exception
     {
         this.scriptService.eval("HelloWorld");
@@ -88,6 +99,8 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Tag("Ignore4Groovy")
+    @Test
     public void testInvocableIntf() throws Exception
     {
         MyInterface myInterface = (MyInterface) scriptService.getInterface(
@@ -112,7 +125,9 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
-    public void testNamespaceDemo2() throws Exception
+    @Tag("Ignore4Rhino")
+    @Test
+    public void testNamespaceDemo2(TestInfo testInfo) throws Exception
     {
         ScriptEngine engine = this.scriptService.getScriptEngine();
 
@@ -128,15 +143,29 @@ public abstract class AbstractScriptTest
         assertEquals("Testobj containing Original engine scope.", 
engine.get("key").toString().trim());
 
         //execute script using the namespace
-        this.scriptService.eval("NamespaceDemo2");
+        Object result = this.scriptService.eval("NamespaceDemo2");
+        if (result != null ) {
+            System.out.println("Result is \"" + result + "\"");
+            assertEquals("new value", result);
+        }
+        
         System.out.println("Ending value of key in engine scope is \"" + 
engine.get("key") + "\"");
-        assertEquals("new value", engine.get("key"));
+        assertEquals("new value", engine.get("key"));            
+
 
         // create a scriptcontext and set its engine scope namespace
         ScriptContext ctxt = new SimpleScriptContext();
         ctxt.setBindings(cNamespace, ScriptContext.ENGINE_SCOPE);
 
-        this.scriptService.eval("NamespaceDemo2", ctxt);
+        Object result2 = this.scriptService.eval("NamespaceDemo2", ctxt);
+        
+        if (result2 != null ) {
+            System.out.println("Result is \"" + result2 + "\"");
+            assertEquals("new value", result2);
+        } 
+        System.out.println("Ending value of key in engine scope is \"" + 
engine.get("key") + "\"");
+        assertEquals("new value", engine.get("key"));            
+        
         System.out.println("Ending value of key in engine scope is \"" + 
engine.get("key") + "\"");
         assertEquals("new value", engine.get("key"));
         System.out.println("Ending value of key in ENGINE_SCOPE of context is 
" + ctxt.getAttribute("key", ScriptContext.ENGINE_SCOPE));
@@ -148,6 +177,7 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Test
     public void testNamespaceDemo3() throws Exception
     {
         final int STATE1 = 1;
@@ -191,6 +221,7 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Test
     public void testAvalonContext() throws Exception
     {
         SimpleBindings args = new SimpleBindings();
@@ -204,6 +235,7 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Test
     public void testPerformance() throws Exception
     {
         long startTime = System.currentTimeMillis();
@@ -224,6 +256,7 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Test
     public void testExists() throws Exception
     {
         assertTrue(this.scriptService.exists("HelloWorld"));
@@ -235,6 +268,7 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Test
     public void testMultithreadingScript() throws Exception
     {
         Hashtable args0 = new Hashtable();
@@ -270,6 +304,7 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Test
     public void testRuntimeErrorScript() throws Exception
     {
         try
@@ -287,6 +322,8 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Tag("Ignore4Groovy")
+    @Test
     public void testCall() throws Exception
     {
         String newX = "New X String";
@@ -304,6 +341,7 @@ public abstract class AbstractScriptTest
      *
      * @throws Exception the test failed
      */
+    @Test
     public void testLocatorFunctionality() throws Exception
     {
         String result = null;

Modified: 
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/GroovyTest.java
URL: 
http://svn.apache.org/viewvc/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/GroovyTest.java?rev=1867045&r1=1867044&r2=1867045&view=diff
==============================================================================
--- 
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/GroovyTest.java 
(original)
+++ 
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/GroovyTest.java 
Tue Sep 17 09:25:36 2019
@@ -1,5 +1,12 @@
 package org.apache.fulcrum.script;
 
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.platform.runner.JUnitPlatform;
+import org.junit.platform.suite.api.ExcludeTags;
+import org.junit.platform.suite.api.IncludeClassNamePatterns;
+import org.junit.platform.suite.api.SuiteDisplayName;
+import org.junit.runner.RunWith;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,14 +26,18 @@ package org.apache.fulcrum.script;
  * under the License.
  */
 
-import junit.framework.Test;
-import junit.framework.TestSuite;
 
 /**
  * Regression test for Groovy
  *
  * @author <a href="mailto:[email protected]";>Siegfried Goeschl</a>
  */
+
+@RunWith(JUnitPlatform.class)
+@SuiteDisplayName("JUnit Groovy Script Test Suite")
+@ExcludeTags("Ignore4Groovy")
+//@SelectPackages("org.apache.fulcrum.script")
+@IncludeClassNamePatterns("^(.*GroovyTest.*|.*AbstractScriptTest.*)$")
 public class GroovyTest extends AbstractScriptTest
 {
     /**
@@ -34,38 +45,16 @@ public class GroovyTest extends Abstract
      *
      * @param name the testcase's name.
      */
-    public GroovyTest(String name)
+    public GroovyTest()
     {
-        super(name);
+        super();
         
this.setConfigurationFileName("./src/test/TestGroovyComponentConfig.xml");
     }
-
+    
+    @BeforeEach
     protected void setUp() throws Exception
     {
         super.setUp();
     }
-
-    /**
-     * Add all of our test suites.
-     *
-     * @return the Groovy test suite
-     */
-    public static Test suite()
-    {
-        TestSuite suite = new TestSuite("GroovyTest");
-
-        suite.addTest(new GroovyTest("testHelloWorld"));
-        suite.addTest(new GroovyTest("testAvalonContext"));
-        suite.addTest(new GroovyTest("testExists"));
-        suite.addTest(new GroovyTest("testPerformance"));
-        suite.addTest(new GroovyTest("testMultithreadingScript"));
-        suite.addTest(new GroovyTest("testRuntimeErrorScript"));
-
-        // tests from the JSR-223 Reference implementation
-        suite.addTest(new GroovyTest("testCompilableInterface"));
-        suite.addTest(new GroovyTest("testNamespaceDemo2"));
-        suite.addTest(new GroovyTest("testNamespaceDemo3"));
-
-        return suite;
-    }
+    
 }

Modified: 
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/RhinoTest.java
URL: 
http://svn.apache.org/viewvc/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/RhinoTest.java?rev=1867045&r1=1867044&r2=1867045&view=diff
==============================================================================
--- 
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/RhinoTest.java 
(original)
+++ 
turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/RhinoTest.java 
Tue Sep 17 09:25:36 2019
@@ -22,14 +22,26 @@ package org.apache.fulcrum.script;
 import javax.script.ScriptEngine;
 import javax.script.ScriptEngineManager;
 
-import junit.framework.Test;
-import junit.framework.TestSuite;
+import org.junit.Assert;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.junit.platform.runner.JUnitPlatform;
+import org.junit.platform.suite.api.ExcludeTags;
+import org.junit.platform.suite.api.IncludeClassNamePatterns;
+import org.junit.platform.suite.api.SuiteDisplayName;
+import org.junit.runner.RunWith;
+
 
 /**
  * Regression test for Rhino Javascript
  *
  * @author <a href="mailto:[email protected]";>Siegfried Goeschl</a>
  */
+@RunWith(JUnitPlatform.class)
+@SuiteDisplayName("JUnit Rhino Script Test Suite")
+@ExcludeTags("Ignore4Rhino")
+//@SelectPackages("org.apache.fulcrum.script")
+@IncludeClassNamePatterns("^(.*RhinoTest.*|.*AbstractScriptTest.*)$")
 public class RhinoTest extends AbstractScriptTest
 {
     /**
@@ -37,50 +49,26 @@ public class RhinoTest extends AbstractS
      *
      * @param name the testcase's name.
      */
-    public RhinoTest(String name)
+    public RhinoTest()
     {
-        super(name);
+        super();       
         
this.setConfigurationFileName("./src/test/TestRhinoComponentConfig.xml");
     }
+    
 
+    @BeforeEach
     protected void setUp() throws Exception
     {
         super.setUp();
     }
 
     /**
-     * Add all of our test suites
-     */
-    public static Test suite()
-    {
-        TestSuite suite = new TestSuite("RhinoTest");
-
-        suite.addTest(new RhinoTest("testDirectInvocation"));
-
-        suite.addTest(new RhinoTest("testHelloWorld"));
-        suite.addTest(new RhinoTest("testAvalonContext"));
-        suite.addTest(new RhinoTest("testExists"));
-        suite.addTest(new RhinoTest("testPerformance"));
-        suite.addTest(new RhinoTest("testMultithreadingScript"));
-        suite.addTest(new RhinoTest("testRuntimeErrorScript"));
-        suite.addTest(new RhinoTest("testCall"));
-        suite.addTest(new RhinoTest("testLocatorFunctionality"));
-
-        // tests from the JSR-223 Reference implementation
-        suite.addTest(new RhinoTest("testCompilableInterface"));
-        suite.addTest(new RhinoTest("testInvocableIntf"));
-        suite.addTest(new RhinoTest("testNamespaceDemo3"));
-
-        // this test does not work any longer with Nashorn
-        // suite.addTest(new RhinoTest("testNamespaceDemo2"));
-
-        return suite;
-    }
-
-    /**
      * A quick test case for directly evaluating a script using the
      * plain JDK 1.6 or 1.7 implementation.
+     * 
+     * See also https://docs.oracle.com/javase/10/nashorn/JSNUG.pdf
      */
+    @Test
     public void testDirectInvocation() throws Exception
     {
         ScriptEngineManager factory = new ScriptEngineManager();
@@ -91,6 +79,6 @@ public class RhinoTest extends AbstractS
                         "fib(n);"; // this will be returned
 
         Number result = (Number) engine.eval(script);
-        assertEquals(55, result.intValue());
+        Assert.assertEquals(55, result.intValue());
     }
 }

Added: 
turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/bar/foo.groovy
URL: 
http://svn.apache.org/viewvc/turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/bar/foo.groovy?rev=1867045&view=auto
==============================================================================
--- turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/bar/foo.groovy 
(added)
+++ turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/bar/foo.groovy 
Tue Sep 17 09:25:36 2019
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+String testMe() {
+  return "locator/bar/foo.groovy"
+}
+
+testMe()
+

Added: turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/foo.groovy
URL: 
http://svn.apache.org/viewvc/turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/foo.groovy?rev=1867045&view=auto
==============================================================================
--- turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/foo.groovy 
(added)
+++ turbine/fulcrum/trunk/script/src/test/scripts/groovy/locator/foo.groovy Tue 
Sep 17 09:25:36 2019
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+String testMe() 
+{
+  return "locator/foo.groovy"
+}
+
+testMe()

Modified: turbine/fulcrum/trunk/script/xdocs/index.xml
URL: 
http://svn.apache.org/viewvc/turbine/fulcrum/trunk/script/xdocs/index.xml?rev=1867045&r1=1867044&r2=1867045&view=diff
==============================================================================
--- turbine/fulcrum/trunk/script/xdocs/index.xml (original)
+++ turbine/fulcrum/trunk/script/xdocs/index.xml Tue Sep 17 09:25:36 2019
@@ -55,6 +55,7 @@
       </subsection>
 
       <subsection name="Scripting Language Support">
+        Following are the tested frameworks
         <table>
           <tr>
             <th>Language</th>
@@ -64,7 +65,7 @@
           <tr>
             <td><a href="http://www.mozilla.org/rhino";>Rhino 
JavaScript</a></td>
             <td>Done</td>
-            <td>Works nicely</td>
+            <td>Works nicely. Since Java 8 ""Nashorn"</td>
           </tr>
           <tr>
             <td><a href="http://groovy.codehaus.org";>Groovy</a></td>


Reply via email to