You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by tv...@apache.org on 2007/05/05 08:58:51 UTC

svn commit: r535465 [18/49] - in /jakarta/turbine/fulcrum/trunk: ./ bsf/ bsf/src/java/org/apache/fulcrum/bsf/ bsf/src/test/ bsf/xdocs/ cache/ cache/src/java/org/apache/fulcrum/cache/ cache/src/java/org/apache/fulcrum/cache/impl/ cache/src/test/ cache/s...

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/RhinoTest.java
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/RhinoTest.java?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/RhinoTest.java (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/RhinoTest.java Fri May  4 23:58:06 2007
@@ -1,70 +1,72 @@
-package org.apache.fulcrum.script;
-
-/*
- * Copyright 2005 Apache Software Foundation
- * Licensed  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.
- */
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * Regression test for Rhino Javascript
- *
- * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
- */
-public class RhinoTest extends AbstractScriptTest
-{    
-    /**
-     * Defines the testcase name for JUnit.
-     *
-     * @param name the testcase's name.
-     */
-    public RhinoTest(String name)
-    {
-        super(name);
-        this.setConfigurationFileName("./src/test/TestRhinoComponentConfig.xml");
-    }
-
-    protected void setUp() throws Exception
-    {
-        super.setUp();
-    }
-    
-    /**
-     * Add all of our test suites
-     */
-    public static Test suite()
-    {
-        TestSuite suite= new TestSuite("RhinoTest");
-        
-        // tests from the JSR-223 Reference implementation
-        suite.addTest( new RhinoTest("testHelloWorld") );
-        suite.addTest( new RhinoTest("testCompilableInterface") );
-        suite.addTest( new RhinoTest("testNamespaceDemo2") );
-        suite.addTest( new RhinoTest("testNamespaceDemo3") );
-        suite.addTest( new RhinoTest("testInvocableIntf") );
-        
-        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") );
-                                
-        return suite;
-    }    
-}
+package org.apache.fulcrum.script;
+
+/*
+ * 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.
+ */
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * Regression test for Rhino Javascript
+ *
+ * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
+ */
+public class RhinoTest extends AbstractScriptTest
+{
+    /**
+     * Defines the testcase name for JUnit.
+     *
+     * @param name the testcase's name.
+     */
+    public RhinoTest(String name)
+    {
+        super(name);
+        this.setConfigurationFileName("./src/test/TestRhinoComponentConfig.xml");
+    }
+
+    protected void setUp() throws Exception
+    {
+        super.setUp();
+    }
+
+    /**
+     * Add all of our test suites
+     */
+    public static Test suite()
+    {
+        TestSuite suite= new TestSuite("RhinoTest");
+
+        // tests from the JSR-223 Reference implementation
+        suite.addTest( new RhinoTest("testHelloWorld") );
+        suite.addTest( new RhinoTest("testCompilableInterface") );
+        suite.addTest( new RhinoTest("testNamespaceDemo2") );
+        suite.addTest( new RhinoTest("testNamespaceDemo3") );
+        suite.addTest( new RhinoTest("testInvocableIntf") );
+
+        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") );
+
+        return suite;
+    }
+}

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/Testobj.java
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/Testobj.java?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/Testobj.java (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/org/apache/fulcrum/script/Testobj.java Fri May  4 23:58:06 2007
@@ -1,52 +1,70 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may
-be used to endorse or promote products derived from this software without
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-
-package org.apache.fulcrum.script;
-
-public class Testobj {
-    private String val;
-    public Testobj(String s) {
-        val = s;
-    }
-    public void setVal(String v) {
-        val = v;
-    }
-    public String getVal() {
-        return val;
-    }
-    public String toString() {
-        return "Testobj containing " + val;
-    }
-}
-
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+
+package org.apache.fulcrum.script;
+
+public class Testobj {
+    private String val;
+    public Testobj(String s) {
+        val = s;
+    }
+    public void setVal(String v) {
+        val = v;
+    }
+    public String getVal() {
+        return val;
+    }
+    public String toString() {
+        return "Testobj containing " + val;
+    }
+}
+

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/Avalon.groovy
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/Avalon.groovy?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/Avalon.groovy (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/Avalon.groovy Fri May  4 23:58:06 2007
@@ -1,45 +1,63 @@
-/**
-  * Copyright 2004 Apache Software Foundation
-  * Licensed  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.
-  *
-  * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
-  *
-  */
- 
-import java.io.File;
-import java.util.Properties;
-
-// 1) parse the arguments
-
-int foo = bar.intValue();
-
-// 2) access the avalonContext
-
-File applicationDir = avalonContext.getApplicationDir();
-File tempDir = avalonContext.getTempDir();
-
-// 3) create a property instance
-
-Properties props = new Properties();
-props.setProperty( "foo", bar.toString());
-assert( props.size() == 1 );
-props.clear();
-assert( props.size() == 0 );
-
-// 4) return a result
-
-int result = foo*10;
-
-return result;
\ No newline at end of file
+/*
+ * 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.
+ */
+/**
+  * Copyright 2004 Apache Software Foundation
+  * Licensed  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.
+  *
+  * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
+  *
+  */
+
+import java.io.File;
+import java.util.Properties;
+
+// 1) parse the arguments
+
+int foo = bar.intValue();
+
+// 2) access the avalonContext
+
+File applicationDir = avalonContext.getApplicationDir();
+File tempDir = avalonContext.getTempDir();
+
+// 3) create a property instance
+
+Properties props = new Properties();
+props.setProperty( "foo", bar.toString());
+assert( props.size() == 1 );
+props.clear();
+assert( props.size() == 0 );
+
+// 4) return a result
+
+int result = foo*10;
+
+return result;

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/CompilableInterface.groovy
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/CompilableInterface.groovy?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/CompilableInterface.groovy (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/CompilableInterface.groovy Fri May  4 23:58:06 2007
@@ -1,45 +1,63 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice, 
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may 
-be used to endorse or promote products derived from this software without 
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL 
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-
-switch (count) {
-    case 0:
-        counter = "first time"; break;
-    case 1:
-        counter = "second time"; break;
-    case 2:
-        counter = "third time";
-}
-println("\nRun compiled script, the " + counter);
-time = new Date(currentTime);
-println("Current time is " + time);
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+
+switch (count) {
+    case 0:
+        counter = "first time"; break;
+    case 1:
+        counter = "second time"; break;
+    case 2:
+        counter = "third time";
+}
+println("\nRun compiled script, the " + counter);
+time = new Date(currentTime);
+println("Current time is " + time);

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/HelloWorld.groovy
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/HelloWorld.groovy?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/HelloWorld.groovy (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/HelloWorld.groovy Fri May  4 23:58:06 2007
@@ -1,34 +1,52 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice, 
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may 
-be used to endorse or promote products derived from this software without 
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL 
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-println '\nHello World!';
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+println '\nHello World!';

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/MultiThreaded.groovy
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/MultiThreaded.groovy?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/MultiThreaded.groovy (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/MultiThreaded.groovy Fri May  4 23:58:06 2007
@@ -1,22 +1,40 @@
-/**
-* Copyright 2004 Apache Software Foundation
-* Licensed  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.
-*
-* @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
-*/
-
-avalonContext.getLogger().debug( Thread.currentThread().getName() + " - Starting to run" );
-foo = foo * 2.0;
-avalonContext.getLogger().debug( Thread.currentThread().getName() + " - Finished running" );
+/*
+ * 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.
+ */
+/**
+* Copyright 2004 Apache Software Foundation
+* Licensed  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.
+*
+* @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
+*/
+
+avalonContext.getLogger().debug( Thread.currentThread().getName() + " - Starting to run" );
+foo = foo * 2.0;
+avalonContext.getLogger().debug( Thread.currentThread().getName() + " - Finished running" );

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/NamespaceDemo2.groovy
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/NamespaceDemo2.groovy?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/NamespaceDemo2.groovy (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/NamespaceDemo2.groovy Fri May  4 23:58:06 2007
@@ -1,39 +1,57 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice, 
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may 
-be used to endorse or promote products derived from this software without 
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL 
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-println("\n-----Start executing script...");
-value = key.getVal();
-println("The current value of key is " + value);
-println("\nReplacing value of key with \"new value\"");
-key = "new value";
-println("-----End of script-----\n");
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+println("\n-----Start executing script...");
+value = key.getVal();
+println("The current value of key is " + value);
+println("\nReplacing value of key with \"new value\"");
+key = "new value";
+println("-----End of script-----\n");

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/NamespaceDemo3.groovy
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/NamespaceDemo3.groovy?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/NamespaceDemo3.groovy (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/NamespaceDemo3.groovy Fri May  4 23:58:06 2007
@@ -1,52 +1,70 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice, 
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may 
-be used to endorse or promote products derived from this software without 
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL 
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-println("\n-----Starting script");
-
-initial = state;
-println("In script....Initial state is " + initial);
-loop = 1;
-while (loop == 1) {
-	println("Script continues at state = " + state);
-	if (state != initial) {
-		println("State changed (state = " + state + "). Exit script.");
-		loop = 0;
-	}
-	//it takes groovy to long to start
-	if (state == 2) {
-		loop = 0
-	}
-}
-println("-----End of script-----\n");
-
-
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+println("\n-----Starting script");
+
+initial = state;
+println("In script....Initial state is " + initial);
+loop = 1;
+while (loop == 1) {
+	println("Script continues at state = " + state);
+	if (state != initial) {
+		println("State changed (state = " + state + "). Exit script.");
+		loop = 0;
+	}
+	//it takes groovy to long to start
+	if (state == 2) {
+		loop = 0
+	}
+}
+println("-----End of script-----\n");
+
+

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/RuntimeError.groovy
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/RuntimeError.groovy?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/RuntimeError.groovy (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/groovy/RuntimeError.groovy Fri May  4 23:58:06 2007
@@ -1,21 +1,39 @@
-/**
- * Copyright 2004 Apache Software Foundation
- * Licensed  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.
- *
- * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
- *
- */
- 
-println(foobar);
\ No newline at end of file
+/*
+ * 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.
+ */
+/**
+ * Copyright 2004 Apache Software Foundation
+ * Licensed  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.
+ *
+ * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
+ *
+ */
+
+println(foobar);

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/Avalon.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/Avalon.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/Avalon.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/Avalon.js Fri May  4 23:58:06 2007
@@ -1,60 +1,59 @@
-/*
- * Copyright 2004 Apache Software Foundation
- * Licensed  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.
- *
- * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
- *
- */
- 
-importPackage(java.util);
-
-testMe(bar);
-
-function testMe(aBar) 
-{
-  // 1) parse the arguments
-
-  var foo = parseInt(aBar);
-
-  // 2) access the avalonContext
-
-  var logger = avalonContext.getLogger();
-  var applicationDir = avalonContext.getApplicationDir();
-  var tempDir = avalonContext.getTempDir();
-  var serviceManager = avalonContext.getServiceManager();
-  var parameters = avalonContext.getParameters();
-  var configuration = avalonContext.getConfiguration();
-  var isDebug = configuration.getChild("isDebug").getValueAsBoolean(false);
-  serviceManager.lookup("org.apache.fulcrum.script.ScriptService").exists("Avalon");
-  
-  // print("applicationDir = " + applicationDir);
-  // print("tempDir = " + tempDir);
-  // print("isDebug = " + isDebug);
-  logger.info("Logging from within a script ... :-)");
-  
-  // 3) create a property instance
-
-  var props = new Properties();
-  props.setProperty( "foo", bar );
-  if( props.size() != 1 ) throw "setting a property failed";
-  props.clear();
-  if( props.size() != 0 ) throw "setting a property failed";
-  
-  // 4) return a result
-
-  var result = foo*10;
-
-  return result;
-}
\ No newline at end of file
+/*
+ * 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.
+ */
+
+importPackage(java.util);
+
+testMe(bar);
+
+function testMe(aBar)
+{
+  // 1) parse the arguments
+
+  var foo = parseInt(aBar);
+
+  // 2) access the avalonContext
+
+  var logger = avalonContext.getLogger();
+  var applicationDir = avalonContext.getApplicationDir();
+  var tempDir = avalonContext.getTempDir();
+  var serviceManager = avalonContext.getServiceManager();
+  var parameters = avalonContext.getParameters();
+  var configuration = avalonContext.getConfiguration();
+  var isDebug = configuration.getChild("isDebug").getValueAsBoolean(false);
+  serviceManager.lookup("org.apache.fulcrum.script.ScriptService").exists("Avalon");
+
+  // print("applicationDir = " + applicationDir);
+  // print("tempDir = " + tempDir);
+  // print("isDebug = " + isDebug);
+  logger.info("Logging from within a script ... :-)");
+
+  // 3) create a property instance
+
+  var props = new Properties();
+  props.setProperty( "foo", bar );
+  if( props.size() != 1 ) throw "setting a property failed";
+  props.clear();
+  if( props.size() != 0 ) throw "setting a property failed";
+
+  // 4) return a result
+
+  var result = foo*10;
+
+  return result;
+}

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/CompilableInterface.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/CompilableInterface.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/CompilableInterface.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/CompilableInterface.js Fri May  4 23:58:06 2007
@@ -1,47 +1,65 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice, 
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may 
-be used to endorse or promote products derived from this software without 
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL 
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-importPackage(java.util);
-var counter;
-switch (parseInt(count)) {
-	case 0:
-		counter = "first time"; break;
-	case 1:
-		counter = "second time"; break;
-	case 2:
-		counter = "third time";
-}
-// print("\nRun compiled script, the " + counter);
-// print ( "\nCurrentTime in milliSecond = " + currentTime );
-var time = new java.util.Date( new java.lang.Long( currentTime).longValue() );
-print("Current time is " + time);
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+importPackage(java.util);
+var counter;
+switch (parseInt(count)) {
+	case 0:
+		counter = "first time"; break;
+	case 1:
+		counter = "second time"; break;
+	case 2:
+		counter = "third time";
+}
+// print("\nRun compiled script, the " + counter);
+// print ( "\nCurrentTime in milliSecond = " + currentTime );
+var time = new java.util.Date( new java.lang.Long( currentTime).longValue() );
+print("Current time is " + time);

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/HelloWorld.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/HelloWorld.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/HelloWorld.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/HelloWorld.js Fri May  4 23:58:06 2007
@@ -1,34 +1,52 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice, 
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may 
-be used to endorse or promote products derived from this software without 
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL 
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-print("\nHello World!");
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+print("\nHello World!");

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/InvocableIntf.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/InvocableIntf.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/InvocableIntf.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/InvocableIntf.js Fri May  4 23:58:06 2007
@@ -1,52 +1,70 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice, 
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may 
-be used to endorse or promote products derived from this software without 
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL 
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-var x = "X string";
-var y  = 5;
-
-function getX() {
-	return x;
-}
-
-function setX(value) {
-	x = value;
-}
-
-function getY() {
-	return new java.lang.Integer(y);
-}
-
-function setY(value) {
-	y = value;
-}
-
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+var x = "X string";
+var y  = 5;
+
+function getX() {
+	return x;
+}
+
+function setX(value) {
+	x = value;
+}
+
+function getY() {
+	return new java.lang.Integer(y);
+}
+
+function setY(value) {
+	y = value;
+}
+

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/MultiThreaded.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/MultiThreaded.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/MultiThreaded.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/MultiThreaded.js Fri May  4 23:58:06 2007
@@ -1,25 +1,43 @@
-/**
-* Copyright 2004 Apache Software Foundation
-* Licensed  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.
-*
-* @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
-*/
-
-importPackage(java.lang);
-
-avalonContext.getLogger().debug( Thread.currentThread().getName() + " - Starting to run" );
-Thread.sleep(1000);
-foo = foo * 2.0;
-avalonContext.getLogger().debug( Thread.currentThread().getName() + " - Finished running" );
+/*
+ * 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.
+ */
+/**
+* Copyright 2004 Apache Software Foundation
+* Licensed  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.
+*
+* @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
+*/
+
+importPackage(java.lang);
+
+avalonContext.getLogger().debug( Thread.currentThread().getName() + " - Starting to run" );
+Thread.sleep(1000);
+foo = foo * 2.0;
+avalonContext.getLogger().debug( Thread.currentThread().getName() + " - Finished running" );

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/NamespaceDemo2.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/NamespaceDemo2.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/NamespaceDemo2.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/NamespaceDemo2.js Fri May  4 23:58:06 2007
@@ -1,39 +1,57 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice, 
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may 
-be used to endorse or promote products derived from this software without 
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL 
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-print("\n-----Start executing script...");
-var value = key.getVal();
-print("The current value of key is " + value);
-print("\nReplacing value of key with \"new value\"");
-key = "new value";
-print("-----End of script-----\n");
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+print("\n-----Start executing script...");
+var value = key.getVal();
+print("The current value of key is " + value);
+print("\nReplacing value of key with \"new value\"");
+key = "new value";
+print("-----End of script-----\n");

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/NamespaceDemo3.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/NamespaceDemo3.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/NamespaceDemo3.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/NamespaceDemo3.js Fri May  4 23:58:06 2007
@@ -1,51 +1,69 @@
-/*
-Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
--Redistribution of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
--Redistribution in binary form must reproduce the above copyright notice, 
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-Neither the name of Sun Microsystems, Inc. or the names of contributors may 
-be used to endorse or promote products derived from this software without 
-specific prior written permission.
-
-This software is provided "AS IS," without a warranty of any kind. ALL 
-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
-ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
-OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
-AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
-AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
-DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
-REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
-INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
-OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-You acknowledge that this software is not designed, licensed or intended
-for use in the design, construction, operation or maintenance of any
-nuclear facility.
-*/
-print("\n-----Starting script");
-
-var initial = parseInt(state);
-print("In script....Initial state is " + initial);
-var loop = 1;
-while (loop == 1) {
-	print("Script continues at state = " + state);
-	if (parseInt(state) != initial) {
-		print("State changed (state = " + state + "). Exit script.");
-		loop = 0;
-	}
-	//it may take the script engine too long to start
-	if (parseInt(state)==2) {
-		loop = 0;
-	}
-}
-print("-----End of script-----\n");
-
+/*
+ * 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.
+ */
+/*
+ * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * -Redistribution of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * -Redistribution in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+ */
+print("\n-----Starting script");
+
+var initial = parseInt(state);
+print("In script....Initial state is " + initial);
+var loop = 1;
+while (loop == 1) {
+	print("Script continues at state = " + state);
+	if (parseInt(state) != initial) {
+		print("State changed (state = " + state + "). Exit script.");
+		loop = 0;
+	}
+	//it may take the script engine too long to start
+	if (parseInt(state)==2) {
+		loop = 0;
+	}
+}
+print("-----End of script-----\n");
+

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/RuntimeError.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/RuntimeError.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/RuntimeError.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/RuntimeError.js Fri May  4 23:58:06 2007
@@ -1,21 +1,20 @@
-/*
- * Copyright 2004 Apache Software Foundation
- * Licensed  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.
- *
- * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
- *
- */
- 
-print(foobar);
\ No newline at end of file
+/*
+ * 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.
+ */
+
+print(foobar);

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/locator/bar/foo.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/locator/bar/foo.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/locator/bar/foo.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/locator/bar/foo.js Fri May  4 23:58:06 2007
@@ -1,6 +1,24 @@
-testMe();
-
-function testMe(aBar) 
-{
-  return "locator/bar/foo.js";
-}
+/*
+ * 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.
+ */
+testMe();
+
+function testMe(aBar)
+{
+  return "locator/bar/foo.js";
+}

Modified: jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/locator/foo.js
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/locator/foo.js?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/locator/foo.js (original)
+++ jakarta/turbine/fulcrum/trunk/script/src/test/scripts/js/locator/foo.js Fri May  4 23:58:06 2007
@@ -1,6 +1,24 @@
-testMe();
-
-function testMe(aBar) 
-{
-  return "locator/foo.js";
-}
+/*
+ * 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.
+ */
+testMe();
+
+function testMe(aBar)
+{
+  return "locator/foo.js";
+}

Modified: jakarta/turbine/fulcrum/trunk/script/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jakarta/turbine/fulcrum/trunk/script/xdocs/changes.xml?view=diff&rev=535465&r1=535464&r2=535465
==============================================================================
--- jakarta/turbine/fulcrum/trunk/script/xdocs/changes.xml (original)
+++ jakarta/turbine/fulcrum/trunk/script/xdocs/changes.xml Fri May  4 23:58:06 2007
@@ -1,19 +1,37 @@
-<?xml version="1.0"?>
-<document>
-  <properties>
-    <title>Fulcrum Script Service</title>
-    <author email="siegfried.goeschl@it20one.at">Siegfried Goeschl</author>
-  </properties>
-
-  <body>
-    <release version="1.0.0" date="in SVN">
-      <action dev="seade" type="update">
-        Updated Groovy dependency to 1.0-jsr-05.
-      </action>
-      <action dev="sgoeschl" type="add">
-        Initial version
-      </action>
-    </release>
-  </body>
-</document>
-
+<?xml version="1.0"?>
+<!--
+ 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.
+-->
+<document>
+  <properties>
+    <title>Fulcrum Script Service</title>
+    <author email="siegfried.goeschl@it20one.at">Siegfried Goeschl</author>
+  </properties>
+
+  <body>
+    <release version="1.0.0" date="in SVN">
+      <action dev="seade" type="update">
+        Updated Groovy dependency to 1.0-jsr-05.
+      </action>
+      <action dev="sgoeschl" type="add">
+        Initial version
+      </action>
+    </release>
+  </body>
+</document>
+



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org