Thread: [Japi-cvs] SF.net SVN: japi:[852] tools/scriptInterpreter/trunk
Status: Beta
                
                Brought to you by:
                
                    christianhujer
                    
                
            | 
     
      
      
      From: <chr...@us...> - 2009-02-14 23:02:00
       
   | 
Revision: 852
          http://japi.svn.sourceforge.net/japi/?rev=852&view=rev
Author:   christianhujer
Date:     2009-02-14 21:42:50 +0000 (Sat, 14 Feb 2009)
Log Message:
-----------
Updated copyright statements in source code.
Modified Paths:
--------------
    tools/scriptInterpreter/trunk/action.js
    tools/scriptInterpreter/trunk/build.xml
    tools/scriptInterpreter/trunk/src/prj/net/sf/japi/tools/si/ScriptInterpreter.java
    tools/scriptInterpreter/trunk/src/prj/net/sf/japi/tools/si/ScriptInterpreter.properties
    tools/scriptInterpreter/trunk/test.js
Modified: tools/scriptInterpreter/trunk/action.js
===================================================================
--- tools/scriptInterpreter/trunk/action.js	2009-02-14 21:42:16 UTC (rev 851)
+++ tools/scriptInterpreter/trunk/action.js	2009-02-14 21:42:50 UTC (rev 852)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2009  Christian Hujer
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 function aa(e) {
     print("Test.\n");
 }
Modified: tools/scriptInterpreter/trunk/build.xml
===================================================================
--- tools/scriptInterpreter/trunk/build.xml	2009-02-14 21:42:16 UTC (rev 851)
+++ tools/scriptInterpreter/trunk/build.xml	2009-02-14 21:42:50 UTC (rev 852)
@@ -1,11 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
-  ~ ScriptInterpreter is a program for interpreting scripts using Java.
-  ~ Copyright (C) 2007  Christian Hujer
+  ~ Copyright (C) 2009  Christian Hujer
   ~
-  ~ This program is free software; you can redistribute it and/or modify
+  ~ This program is free software: you can redistribute it and/or modify
   ~ it under the terms of the GNU General Public License as published by
-  ~ the Free Software Foundation; either version 2 of the License, or
+  ~ the Free Software Foundation, either version 3 of the License, or
   ~ (at your option) any later version.
   ~
   ~ This program is distributed in the hope that it will be useful,
@@ -13,9 +12,8 @@
   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   ~ GNU General Public License for more details.
   ~
-  ~ You should have received a copy of the GNU General Public License along
-  ~ with this program; if not, write to the Free Software Foundation, Inc.,
-  ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+  ~ You should have received a copy of the GNU General Public License
+  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
   -->
 
 <project name="ScriptInterpreter" default="compile">
Modified: tools/scriptInterpreter/trunk/src/prj/net/sf/japi/tools/si/ScriptInterpreter.java
===================================================================
--- tools/scriptInterpreter/trunk/src/prj/net/sf/japi/tools/si/ScriptInterpreter.java	2009-02-14 21:42:16 UTC (rev 851)
+++ tools/scriptInterpreter/trunk/src/prj/net/sf/japi/tools/si/ScriptInterpreter.java	2009-02-14 21:42:50 UTC (rev 852)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2009  Christian Hujer
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 package net.sf.japi.tools.si;
 
 import java.io.InputStreamReader;
Modified: tools/scriptInterpreter/trunk/src/prj/net/sf/japi/tools/si/ScriptInterpreter.properties
===================================================================
--- tools/scriptInterpreter/trunk/src/prj/net/sf/japi/tools/si/ScriptInterpreter.properties	2009-02-14 21:42:16 UTC (rev 851)
+++ tools/scriptInterpreter/trunk/src/prj/net/sf/japi/tools/si/ScriptInterpreter.properties	2009-02-14 21:42:50 UTC (rev 852)
@@ -1,2 +1,19 @@
+#
+# Copyright (C) 2009  Christian Hujer
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+
 setMimeType=Specifies the mime type.
 list=Lists the mime types of the available scripting languages.
Modified: tools/scriptInterpreter/trunk/test.js
===================================================================
--- tools/scriptInterpreter/trunk/test.js	2009-02-14 21:42:16 UTC (rev 851)
+++ tools/scriptInterpreter/trunk/test.js	2009-02-14 21:42:50 UTC (rev 852)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2009  Christian Hujer
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 function foo(i) {
     print("hello, world " + i + "\n");
 }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <chr...@us...> - 2009-03-22 13:46:40
       
   | 
Revision: 1270
          http://japi.svn.sourceforge.net/japi/?rev=1270&view=rev
Author:   christianhujer
Date:     2009-03-22 13:46:23 +0000 (Sun, 22 Mar 2009)
Log Message:
-----------
Added missing function documentation to the EcmaScript examples.
Modified Paths:
--------------
    tools/scriptInterpreter/trunk/action.js
    tools/scriptInterpreter/trunk/test.js
Modified: tools/scriptInterpreter/trunk/action.js
===================================================================
--- tools/scriptInterpreter/trunk/action.js	2009-03-11 18:00:39 UTC (rev 1269)
+++ tools/scriptInterpreter/trunk/action.js	2009-03-22 13:46:23 UTC (rev 1270)
@@ -15,14 +15,25 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+/** This is a simple test case for accessing AWT / Swing from the script interpreter.
+ */
+
+/** ActionListener that prints a message.
+ * @param e ActionEvent.
+ */
 function aa(e) {
     print("Test.\n");
 }
+
+/** WindowListener that closes the window.
+ * @param e WindowEvent.
+ */
 function wl1(e) {
     if (e.ID == java.awt.event.WindowEvent.WINDOW_CLOSING) {
         e.source.dispose();
     }
 }
+
 frame = new javax.swing.JFrame("Test");
 button = new javax.swing.JButton("Click");
 button.addActionListener(aa);
Modified: tools/scriptInterpreter/trunk/test.js
===================================================================
--- tools/scriptInterpreter/trunk/test.js	2009-03-11 18:00:39 UTC (rev 1269)
+++ tools/scriptInterpreter/trunk/test.js	2009-03-22 13:46:23 UTC (rev 1270)
@@ -15,9 +15,13 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+/** Prints a message.
+ * @param i Number to print in that message.
+ */
 function foo(i) {
     print("hello, world " + i + "\n");
 }
+
 for (i = 0; i < 10; i++) {
     foo(i);
 }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |