https://issues.apache.org/jira/browse/EXTSCRIPT-177
adding missing license headers

git-svn-id: https://svn.apache.org/repos/asf/myfaces/extensions/scripting/trunk@1400852 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe1.java b/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe1.java
new file mode 100644
index 0000000..0f33d63
--- /dev/null
+++ b/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe1.java
@@ -0,0 +1,84 @@
+import org.jruby.Ruby;
+import org.jruby.RubyClass;
+import org.jruby.RubyObject;
+import org.jruby.javasupport.util.RuntimeHelpers;
+import org.jruby.runtime.builtin.IRubyObject;
+
+
+public class TestProbe1 extends RubyObject  {
+    private static final Ruby __ruby__ = Ruby.getGlobalRuntime();
+    private static final RubyClass __metaclass__;
+
+    static {
+        String source = new StringBuilder("# a small ruby testing class to test for a valid compilation\n" +
+            "# from the compiler\n" +
+            "# @author Werner Punz\n" +
+            "class TestProbe1\n" +
+            "  java_signature 'void helloWorld()'\n" +
+            "  def helloWorld\n" +
+            "      puts \"Hello from Ruby\"\n" +
+            "  end\n" +
+            "\n" +
+            "  java_signature 'public String stringReturn()'\n" +
+            "  def stringReturn\n" +
+            "    'hello world'\n" +
+            "  end\n" +
+            "\n" +
+            "end\n" +
+            "").toString();
+        __ruby__.executeScript(source, "TestProbe1JRuby.rb");
+        RubyClass metaclass = __ruby__.getClass("TestProbe1");
+        metaclass.setRubyStaticAllocator(TestProbe1.class);
+        if (metaclass == null) throw new NoClassDefFoundError("Could not load Ruby class: TestProbe1");
+        __metaclass__ = metaclass;
+    }
+
+    /**
+     * Standard Ruby object constructor, for construction-from-Ruby purposes.
+     * Generally not for user consumption.
+     *
+     * @param ruby The JRuby instance this object will belong to
+     * @param metaclass The RubyClass representing the Ruby class of this object
+     */
+    private TestProbe1(Ruby ruby, RubyClass metaclass) {
+        super(ruby, metaclass);
+    }
+
+    /**
+     * A static method used by JRuby for allocating instances of this object
+     * from Ruby. Generally not for user comsumption.
+     *
+     * @param ruby The JRuby instance this object will belong to
+     * @param metaclass The RubyClass representing the Ruby class of this object
+     */
+    public static IRubyObject __allocate__(Ruby ruby, RubyClass metaClass) {
+        return new TestProbe1(ruby, metaClass);
+    }
+        
+    /**
+     * Default constructor. Invokes this(Ruby, RubyClass) with the classloader-static
+     * Ruby and RubyClass instances assocated with this class, and then invokes the
+     * no-argument 'initialize' method in Ruby.
+     */
+    public TestProbe1() {
+        this(__ruby__, __metaclass__);
+        RuntimeHelpers.invoke(__ruby__.getCurrentContext(), this, "initialize");
+    }
+
+    
+    public void helloWorld() {
+
+        IRubyObject ruby_result = RuntimeHelpers.invoke(__ruby__.getCurrentContext(), this, "helloWorld");
+        return;
+
+    }
+
+    
+    public String stringReturn() {
+
+        IRubyObject ruby_result = RuntimeHelpers.invoke(__ruby__.getCurrentContext(), this, "stringReturn");
+        return (String)ruby_result.toJava(String.class);
+
+    }
+
+}
diff --git a/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe1JRuby.rb b/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe1JRuby.rb
index 04ec2b9..99aae60 100644
--- a/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe1JRuby.rb
+++ b/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe1JRuby.rb
@@ -1,9 +1,28 @@
+=begin
+ 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.
+=end
+
 java_package 'compiler'
 java_import 'javax.faces.bean.ManagedBean'
 # a small ruby testing class to test for a valid compilation
 # from the compiler
 # @author Werner Punz
-add_class_annotation '@ManagedBean'
+
 class TestProbe1JRuby
   java_signature 'void helloWorld()'
   def helloWorld
diff --git a/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe2JRuby.rb b/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe2JRuby.rb
index 5a25c52..29fb39f 100644
--- a/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe2JRuby.rb
+++ b/extscript-core-root/extscript-core/src/test/resources/compiler/TestProbe2JRuby.rb
@@ -1,3 +1,22 @@
+=begin
+ 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.
+=end
+
 java_package 'compiler'
 class TestProbe2JRuby
 
diff --git a/extscript-core-root/extscript-core/src/test/resources/compiler/myPackage/WhiteListedProbeRuby.rb b/extscript-core-root/extscript-core/src/test/resources/compiler/myPackage/WhiteListedProbeRuby.rb
index 6cb57f9..d5b93a5 100644
--- a/extscript-core-root/extscript-core/src/test/resources/compiler/myPackage/WhiteListedProbeRuby.rb
+++ b/extscript-core-root/extscript-core/src/test/resources/compiler/myPackage/WhiteListedProbeRuby.rb
@@ -1,3 +1,22 @@
+=begin
+ 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.
+=end
+
 java_package 'compiler.myPackage'
 class WhisteListedProbeJRuby
 
diff --git a/extscript-core-root/extscript-core/src/test/ruby/test.rb b/extscript-core-root/extscript-core/src/test/ruby/test.rb
deleted file mode 100644
index 9f34748..0000000
--- a/extscript-core-root/extscript-core/src/test/ruby/test.rb
+++ /dev/null
@@ -1 +0,0 @@
-putstr "hello world"
\ No newline at end of file
diff --git a/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/ruby/org/apache/myfaces/jrubyloader/bean/HelloJRubyBean.rb b/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/ruby/org/apache/myfaces/jrubyloader/bean/HelloJRubyBean.rb
index 2dddee6..5e3a8c5 100644
--- a/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/ruby/org/apache/myfaces/jrubyloader/bean/HelloJRubyBean.rb
+++ b/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/ruby/org/apache/myfaces/jrubyloader/bean/HelloJRubyBean.rb
@@ -1,3 +1,21 @@
+=begin
+ 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.
+=end
 java_package 'org.apache.myfaces.jrubyloader.bean'
 
 class HelloJRubyBean