Author: antelder Date: Mon Mar 23 22:59:29 2009 New Revision: 757581 URL: http://svn.apache.org/viewvc?rev=757581&view=rev Log: Set svn properties
Modified: jakarta/bsf/trunk/bsf3/RELEASE_NOTES (contents, props changed) jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/pom.xml (contents, props changed) jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java (contents, props changed) jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/pom.xml (contents, props changed) jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java (contents, props changed) Modified: jakarta/bsf/trunk/bsf3/RELEASE_NOTES URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/RELEASE_NOTES?rev=757581&r1=757580&r2=757581&view=diff ============================================================================== --- jakarta/bsf/trunk/bsf3/RELEASE_NOTES (original) +++ jakarta/bsf/trunk/bsf3/RELEASE_NOTES Mon Mar 23 22:59:29 2009 @@ -1,9 +1,9 @@ -Apache BSF 3 Beta3 Release Notes --------------------------------- - -Apache BSF 3 is an implementation of JSR-223, the Scripting for the Java Platform APIs. -Note that this software hasn't been tested with the JSR 223 TCK, and therefore is not a -compatible implementation of JSR-223. - -This 3.0-beta3 release is a maintenance release update to support for the latest releases -of various script language engines. +Apache BSF 3 Beta3 Release Notes +-------------------------------- + +Apache BSF 3 is an implementation of JSR-223, the Scripting for the Java Platform APIs. +Note that this software hasn't been tested with the JSR 223 TCK, and therefore is not a +compatible implementation of JSR-223. + +This 3.0-beta3 release is a maintenance release update to support for the latest releases +of various script language engines. Propchange: jakarta/bsf/trunk/bsf3/RELEASE_NOTES ------------------------------------------------------------------------------ svn:eol-style = native Modified: jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/pom.xml URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/pom.xml?rev=757581&r1=757580&r2=757581&view=diff ============================================================================== --- jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/pom.xml (original) +++ jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/pom.xml Mon Mar 23 22:59:29 2009 @@ -1,55 +1,55 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * 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. ---> -<project> - <parent> - <groupId>org.apache.bsf</groupId> - <artifactId>parent</artifactId> - <version>3.0-SNAPSHOT</version> - </parent> - - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <groupId>org.apache.bsf.testing</groupId> - <artifactId>bsf-testing-jruby-1.1.2</artifactId> - <name>Apache BSF testing for JRuby 1.1.2</name> - <description>Apache BSF testing for JRuby 1.1.2</description> - - <dependencies> - <dependency> - <groupId>org.apache.bsf</groupId> - <artifactId>bsf-all</artifactId> - <version>3.0-SNAPSHOT</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.jruby</groupId> - <artifactId>jruby-complete</artifactId> - <version>1.1.2</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - <scope>test</scope> - </dependency> - </dependencies> - -</project> +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * 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. +--> +<project> + <parent> + <groupId>org.apache.bsf</groupId> + <artifactId>parent</artifactId> + <version>3.0-SNAPSHOT</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <groupId>org.apache.bsf.testing</groupId> + <artifactId>bsf-testing-jruby-1.1.2</artifactId> + <name>Apache BSF testing for JRuby 1.1.2</name> + <description>Apache BSF testing for JRuby 1.1.2</description> + + <dependencies> + <dependency> + <groupId>org.apache.bsf</groupId> + <artifactId>bsf-all</artifactId> + <version>3.0-SNAPSHOT</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.jruby</groupId> + <artifactId>jruby-complete</artifactId> + <version>1.1.2</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + <scope>test</scope> + </dependency> + </dependencies> + +</project> Propchange: jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Modified: jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java?rev=757581&r1=757580&r2=757581&view=diff ============================================================================== --- jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java (original) +++ jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java Mon Mar 23 22:59:29 2009 @@ -1,58 +1,58 @@ -/* - * 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. - */ -package org.apache.bsf.testing.javascript; - -import javax.script.Invocable; -import javax.script.ScriptEngine; -import javax.script.ScriptEngineManager; -import javax.script.ScriptException; - -import junit.framework.TestCase; - - -public class RubyTestcase extends TestCase { - -// public void testEval() throws ScriptException { -// ScriptEngineManager manager = new ScriptEngineManager(); -// ScriptEngine engine = manager.getEngineByExtension("js"); -// assertTrue(((Boolean)engine.eval("true;")).booleanValue()); -// assertFalse(((Boolean)engine.eval("false;")).booleanValue()); -// } - - public void testInvokeFunction() throws ScriptException, NoSuchMethodException { - ScriptEngineManager manager = new ScriptEngineManager(); - ScriptEngine engine = manager.getEngineByExtension("rb"); - engine.eval("def hello(s)\n return \"Hello \" + s\nend" ); - assertTrue(engine instanceof Invocable); - Invocable invocableScript = (Invocable) engine; - assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"})); - } - -// public void testInvokeMethod() throws ScriptException { -// ScriptEngineManager manager = new ScriptEngineManager(); -// ScriptEngine engine = manager.getEngineByExtension("js"); -// engine.eval("function hello(s) { return 'Hello ' + s; }" ); -// assertTrue(engine instanceof Invocable); -// Invocable invocableScript = (Invocable) engine; -// -// Object thiz = engine.eval("this;"); -// assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"})); -// } - -} +/* + * 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. + */ +package org.apache.bsf.testing.javascript; + +import javax.script.Invocable; +import javax.script.ScriptEngine; +import javax.script.ScriptEngineManager; +import javax.script.ScriptException; + +import junit.framework.TestCase; + + +public class RubyTestcase extends TestCase { + +// public void testEval() throws ScriptException { +// ScriptEngineManager manager = new ScriptEngineManager(); +// ScriptEngine engine = manager.getEngineByExtension("js"); +// assertTrue(((Boolean)engine.eval("true;")).booleanValue()); +// assertFalse(((Boolean)engine.eval("false;")).booleanValue()); +// } + + public void testInvokeFunction() throws ScriptException, NoSuchMethodException { + ScriptEngineManager manager = new ScriptEngineManager(); + ScriptEngine engine = manager.getEngineByExtension("rb"); + engine.eval("def hello(s)\n return \"Hello \" + s\nend" ); + assertTrue(engine instanceof Invocable); + Invocable invocableScript = (Invocable) engine; + assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"})); + } + +// public void testInvokeMethod() throws ScriptException { +// ScriptEngineManager manager = new ScriptEngineManager(); +// ScriptEngine engine = manager.getEngineByExtension("js"); +// engine.eval("function hello(s) { return 'Hello ' + s; }" ); +// assertTrue(engine instanceof Invocable); +// Invocable invocableScript = (Invocable) engine; +// +// Object thiz = engine.eval("this;"); +// assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"})); +// } + +} Propchange: jakarta/bsf/trunk/bsf3/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/pom.xml URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/pom.xml?rev=757581&r1=757580&r2=757581&view=diff ============================================================================== --- jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/pom.xml (original) +++ jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/pom.xml Mon Mar 23 22:59:29 2009 @@ -1,55 +1,55 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * 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. ---> -<project> - <parent> - <groupId>org.apache.bsf</groupId> - <artifactId>parent</artifactId> - <version>3.0-SNAPSHOT</version> - </parent> - - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <groupId>org.apache.bsf.testing</groupId> - <artifactId>bsf-testing-jruby-1.2.0</artifactId> - <name>Apache BSF testing for JRuby 1.2.0</name> - <description>Apache BSF testing for JRuby 1.2.0</description> - - <dependencies> - <dependency> - <groupId>org.apache.bsf</groupId> - <artifactId>bsf-all</artifactId> - <version>3.0-SNAPSHOT</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.jruby</groupId> - <artifactId>jruby-complete</artifactId> - <version>1.2.0</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - <scope>test</scope> - </dependency> - </dependencies> - -</project> +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * 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. +--> +<project> + <parent> + <groupId>org.apache.bsf</groupId> + <artifactId>parent</artifactId> + <version>3.0-SNAPSHOT</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <groupId>org.apache.bsf.testing</groupId> + <artifactId>bsf-testing-jruby-1.2.0</artifactId> + <name>Apache BSF testing for JRuby 1.2.0</name> + <description>Apache BSF testing for JRuby 1.2.0</description> + + <dependencies> + <dependency> + <groupId>org.apache.bsf</groupId> + <artifactId>bsf-all</artifactId> + <version>3.0-SNAPSHOT</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.jruby</groupId> + <artifactId>jruby-complete</artifactId> + <version>1.2.0</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + <scope>test</scope> + </dependency> + </dependencies> + +</project> Propchange: jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Modified: jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java?rev=757581&r1=757580&r2=757581&view=diff ============================================================================== --- jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java (original) +++ jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java Mon Mar 23 22:59:29 2009 @@ -1,58 +1,58 @@ -/* - * 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. - */ -package org.apache.bsf.testing.javascript; - -import javax.script.Invocable; -import javax.script.ScriptEngine; -import javax.script.ScriptEngineManager; -import javax.script.ScriptException; - -import junit.framework.TestCase; - - -public class RubyTestcase extends TestCase { - -// public void testEval() throws ScriptException { -// ScriptEngineManager manager = new ScriptEngineManager(); -// ScriptEngine engine = manager.getEngineByExtension("js"); -// assertTrue(((Boolean)engine.eval("true;")).booleanValue()); -// assertFalse(((Boolean)engine.eval("false;")).booleanValue()); -// } - - public void testInvokeFunction() throws ScriptException, NoSuchMethodException { - ScriptEngineManager manager = new ScriptEngineManager(); - ScriptEngine engine = manager.getEngineByExtension("rb"); - engine.eval("def hello(s)\n return \"Hello \" + s\nend" ); - assertTrue(engine instanceof Invocable); - Invocable invocableScript = (Invocable) engine; - assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"})); - } - -// public void testInvokeMethod() throws ScriptException { -// ScriptEngineManager manager = new ScriptEngineManager(); -// ScriptEngine engine = manager.getEngineByExtension("js"); -// engine.eval("function hello(s) { return 'Hello ' + s; }" ); -// assertTrue(engine instanceof Invocable); -// Invocable invocableScript = (Invocable) engine; -// -// Object thiz = engine.eval("this;"); -// assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"})); -// } - -} +/* + * 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. + */ +package org.apache.bsf.testing.javascript; + +import javax.script.Invocable; +import javax.script.ScriptEngine; +import javax.script.ScriptEngineManager; +import javax.script.ScriptException; + +import junit.framework.TestCase; + + +public class RubyTestcase extends TestCase { + +// public void testEval() throws ScriptException { +// ScriptEngineManager manager = new ScriptEngineManager(); +// ScriptEngine engine = manager.getEngineByExtension("js"); +// assertTrue(((Boolean)engine.eval("true;")).booleanValue()); +// assertFalse(((Boolean)engine.eval("false;")).booleanValue()); +// } + + public void testInvokeFunction() throws ScriptException, NoSuchMethodException { + ScriptEngineManager manager = new ScriptEngineManager(); + ScriptEngine engine = manager.getEngineByExtension("rb"); + engine.eval("def hello(s)\n return \"Hello \" + s\nend" ); + assertTrue(engine instanceof Invocable); + Invocable invocableScript = (Invocable) engine; + assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"})); + } + +// public void testInvokeMethod() throws ScriptException { +// ScriptEngineManager manager = new ScriptEngineManager(); +// ScriptEngine engine = manager.getEngineByExtension("js"); +// engine.eval("function hello(s) { return 'Hello ' + s; }" ); +// assertTrue(engine instanceof Invocable); +// Invocable invocableScript = (Invocable) engine; +// +// Object thiz = engine.eval("this;"); +// assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"})); +// } + +} Propchange: jakarta/bsf/trunk/bsf3/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java ------------------------------------------------------------------------------ svn:eol-style = native --------------------------------------------------------------------- To unsubscribe, e-mail: bsf-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: bsf-dev-h...@jakarta.apache.org