felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject svn commit: r802249 - in /felix/sandbox/donsez/runscript: run.bat src/site/hello.bsh src/site/hello.fx src/site/hello.py src/site/hello.rb src/site/hello.scala src/site/script.txt
Date Fri, 07 Aug 2009 22:09:33 GMT
Author: donsez
Date: Fri Aug  7 22:09:33 2009
New Revision: 802249

URL: http://svn.apache.org/viewvc?rev=802249&view=rev
Log:
add more scripts to test the command

Added:
    felix/sandbox/donsez/runscript/run.bat   (with props)
    felix/sandbox/donsez/runscript/src/site/hello.bsh
    felix/sandbox/donsez/runscript/src/site/hello.fx
    felix/sandbox/donsez/runscript/src/site/hello.py   (with props)
    felix/sandbox/donsez/runscript/src/site/hello.rb   (with props)
    felix/sandbox/donsez/runscript/src/site/hello.scala
Modified:
    felix/sandbox/donsez/runscript/src/site/script.txt

Added: felix/sandbox/donsez/runscript/run.bat
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/runscript/run.bat?rev=802249&view=auto
==============================================================================
--- felix/sandbox/donsez/runscript/run.bat (added)
+++ felix/sandbox/donsez/runscript/run.bat Fri Aug  7 22:09:33 2009
@@ -0,0 +1,28 @@
+
+set FELIX_HOME=E:\Felix-Dist\felix-svn\trunk\main
+
+set ROOT=G:\demoSEAACBSE2009\jsr223-engines
+
+set OPENJFX_HOME=E:\devtools\openjfx\dist
+set OPENJFX_ENGINE=%OPENJFX_HOME%\lib\shared\javafxc.jar
+set JSR223ENGINES=%OPENJFX_ENGINE%
+
+set RUBY_ENGINE=%ROOT%\jruby\build\jruby-engine.jar
+set RUBY_ENGINE=%RUBY_ENGINE%;%ROOT%\jruby.jar
+set JSR223ENGINES=%JSR223ENGINES%;%RUBY_ENGINE%
+
+set JYTHON_ENGINE=%ROOT%\jython\build\jython-engine.jar
+set JYTHON_ENGINE=%JYTHON_ENGINE%;%ROOT%\jython.jar
+set JSR223ENGINES=%JSR223ENGINES%;%JYTHON_ENGINE%
+
+set BEANSHELL_ENGINE=%ROOT%\beanshell\build\bsh-engine.jar
+set BEANSHELL_ENGINE=%BEANSHELL_ENGINE%;%ROOT%\bsh-2.0b5.jar
+set JSR223ENGINES=%JSR223ENGINES%;%BEANSHELL_ENGINE%
+
+set GROOVY_ENGINE=%ROOT%\groovy-all-1.6.4.jar;%ROOT%\asm-2.2.3.jar;%ROOT%\asm-analysis-2.2.3.jar
+set JSR223ENGINES=%JSR223ENGINES%;%GROOVY_ENGINE%
+
+cd %FELIX_HOME%
+java -Xbootclasspath/p:%JSR223ENGINES% -jar bin\felix.jar cache\runscript
+java -Xbootclasspath/p:%JSR223ENGINES% -jar bin\felix.jar cache\sosoc
+rem java -cp %JSR223ENGINES% -jar bin\felix.jar cache\runscript

Propchange: felix/sandbox/donsez/runscript/run.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: felix/sandbox/donsez/runscript/src/site/hello.bsh
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/runscript/src/site/hello.bsh?rev=802249&view=auto
==============================================================================
--- felix/sandbox/donsez/runscript/src/site/hello.bsh (added)
+++ felix/sandbox/donsez/runscript/src/site/hello.bsh Fri Aug  7 22:09:33 2009
@@ -0,0 +1,27 @@
+/*
+ * 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.
+ */
+
+/**
+ * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
+ */
+
+helloWorld() { 
+    print("Hello World!");
+}
+helloWorld();

Added: felix/sandbox/donsez/runscript/src/site/hello.fx
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/runscript/src/site/hello.fx?rev=802249&view=auto
==============================================================================
--- felix/sandbox/donsez/runscript/src/site/hello.fx (added)
+++ felix/sandbox/donsez/runscript/src/site/hello.fx Fri Aug  7 22:09:33 2009
@@ -0,0 +1,32 @@
+/*
+ * 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.
+ */
+ 
+ // script in JavaFX script
+ 
+var out=java.lang.System.out;
+out.print("Hello");
+
+var f1 = new javax.swing.JFrame("Hello");
+f1.setSize(300, 300);
+f1.setVisible(true);
+
+java.lang.Thread.sleep(5000);
+
+f1.setTitle("Hello World !");
+out.println(" World !");

Added: felix/sandbox/donsez/runscript/src/site/hello.py
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/runscript/src/site/hello.py?rev=802249&view=auto
==============================================================================
--- felix/sandbox/donsez/runscript/src/site/hello.py (added)
+++ felix/sandbox/donsez/runscript/src/site/hello.py Fri Aug  7 22:09:33 2009
@@ -0,0 +1,23 @@
+#*
+#* 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.
+#*
+
+#* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
+
+print "Hello, World!" 
+

Propchange: felix/sandbox/donsez/runscript/src/site/hello.py
------------------------------------------------------------------------------
    svn:eol-style = native

Added: felix/sandbox/donsez/runscript/src/site/hello.rb
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/runscript/src/site/hello.rb?rev=802249&view=auto
==============================================================================
--- felix/sandbox/donsez/runscript/src/site/hello.rb (added)
+++ felix/sandbox/donsez/runscript/src/site/hello.rb Fri Aug  7 22:09:33 2009
@@ -0,0 +1,29 @@
+#!/usr/bin/env ruby
+
+#*
+#* 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.
+#*
+
+#* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
+
+def h(name = "World")
+  puts "Hello #{name}!"
+end
+
+h
+h("Felix")

Propchange: felix/sandbox/donsez/runscript/src/site/hello.rb
------------------------------------------------------------------------------
    svn:eol-style = native

Added: felix/sandbox/donsez/runscript/src/site/hello.scala
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/runscript/src/site/hello.scala?rev=802249&view=auto
==============================================================================
--- felix/sandbox/donsez/runscript/src/site/hello.scala (added)
+++ felix/sandbox/donsez/runscript/src/site/hello.scala Fri Aug  7 22:09:33 2009
@@ -0,0 +1,27 @@
+/*
+ * 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.
+ */
+ 
+ // script in Scala
+ 
+object HelloWorld {
+	def main(args: Array[String]) {
+    	println("Hello, world!")
+	}
+}
+HelloWorld.main(null)

Modified: felix/sandbox/donsez/runscript/src/site/script.txt
URL: http://svn.apache.org/viewvc/felix/sandbox/donsez/runscript/src/site/script.txt?rev=802249&r1=802248&r2=802249&view=diff
==============================================================================
--- felix/sandbox/donsez/runscript/src/site/script.txt (original)
+++ felix/sandbox/donsez/runscript/src/site/script.txt Fri Aug  7 22:09:33 2009
@@ -1,15 +1,27 @@
 // Command lines to demonstrate the runscript command
 
 runscript help
+runscript engines
+
 runscript base
 runscript base file:F:\osgi\felix-sandbox-donsez-2\runscript\src\site\
+runscript base file:..\..\sandbox\donsez\runscript\src\site\
 runscript js hello.js
 runscript js ps.js
-runscript groovy hello.groovy
-
 runscript hello.js
-runscript hello.groovy
 
-runscript js bundle://[bundleId].[bundleRev]:[classPathId]/[path].js
+// run a script located in another bundle (here, the runscript bundle id is 4)
+// runscript bundle://[bundleId].[bundleRev]:[classPathId]/[path]
+runscript bundle://4:/SCRIPT-INF/embed.js
+
+runscript javafx hello.fx
+runscript hello.fx
+runscript hello.rb
+runscript hello.py
+
+runscript hello.bsh
+runscript hello.groovy
+start http://www.scala-lang.org/downloads/distrib/files/scala.library_2.7.5.final.jar
+runscript hello.scala
 
-// TODO runscript -bg js simplegui.js
\ No newline at end of file
+// TODO RUN A SCRIPT IN A SEPARATE THREAD runscript -fork js simplegui.js
\ No newline at end of file



Mime
View raw message