roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r513885 - in /incubator/roller/trunk/sandbox/scripting: ./ build.xml groovy/ groovy/run-groovy2 src/org/apache/roller/util/GroovyRunner.java
Date Fri, 02 Mar 2007 19:01:34 GMT
Author: snoopdave
Date: Fri Mar  2 11:01:32 2007
New Revision: 513885

URL: http://svn.apache.org/viewvc?view=rev&rev=513885
Log:
Use Groovy 1.0 final

Modified:
    incubator/roller/trunk/sandbox/scripting/   (props changed)
    incubator/roller/trunk/sandbox/scripting/build.xml
    incubator/roller/trunk/sandbox/scripting/groovy/   (props changed)
    incubator/roller/trunk/sandbox/scripting/groovy/run-groovy2
    incubator/roller/trunk/sandbox/scripting/src/org/apache/roller/util/GroovyRunner.java

Propchange: incubator/roller/trunk/sandbox/scripting/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Mar  2 11:01:32 2007
@@ -0,0 +1 @@
+build

Modified: incubator/roller/trunk/sandbox/scripting/build.xml
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/sandbox/scripting/build.xml?view=diff&rev=513885&r1=513884&r2=513885
==============================================================================
--- incubator/roller/trunk/sandbox/scripting/build.xml (original)
+++ incubator/roller/trunk/sandbox/scripting/build.xml Fri Mar  2 11:01:32 2007
@@ -9,7 +9,7 @@
             <include name="roller-business.jar"/>   
         </fileset>
         <fileset dir="${groovy.home}/lib">
-            <include name="groovy-1.0-JSR-06.jar"/>
+            <include name="groovy-1.0.jar"/>
         </fileset>                      
     </path>
     

Propchange: incubator/roller/trunk/sandbox/scripting/groovy/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Mar  2 11:01:32 2007
@@ -0,0 +1 @@
+logs

Modified: incubator/roller/trunk/sandbox/scripting/groovy/run-groovy2
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/sandbox/scripting/groovy/run-groovy2?view=diff&rev=513885&r1=513884&r2=513885
==============================================================================
--- incubator/roller/trunk/sandbox/scripting/groovy/run-groovy2 (original)
+++ incubator/roller/trunk/sandbox/scripting/groovy/run-groovy2 Fri Mar  2 11:01:32 2007
@@ -16,7 +16,7 @@
 
 export RGPATH=\
 ../build/classes:\
-${GROOVY_HOME}/embeddable/groovy-all-1.0-JSR-06.jar:\
+${GROOVY_HOME}/embeddable/groovy-all-1.0.jar:\
 ${GROOVY_HOME}/lib/commons-cli-1.0.jar:\
 ${WEBAPP_DIR}/WEB-INF/lib/roller-business.jar
 echo ${RGPATH}

Modified: incubator/roller/trunk/sandbox/scripting/src/org/apache/roller/util/GroovyRunner.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/sandbox/scripting/src/org/apache/roller/util/GroovyRunner.java?view=diff&rev=513885&r1=513884&r2=513885
==============================================================================
--- incubator/roller/trunk/sandbox/scripting/src/org/apache/roller/util/GroovyRunner.java
(original)
+++ incubator/roller/trunk/sandbox/scripting/src/org/apache/roller/util/GroovyRunner.java
Fri Mar  2 11:01:32 2007
@@ -63,15 +63,15 @@
         // Apparently bug GROOVY-1194 prevents both of these approaches from working
         
         // Approach #1
-        GroovyShell gshell = new GroovyShell(cl);
-        gshell.evaluate(new File(args[2]));
+        //GroovyShell gshell = new GroovyShell(cl);
+        //gshell.evaluate(new File(args[2]));
                 
         // Approach #2
         //ClassLoader parent = GroovyRunner.class.getClassLoader();
-        //GroovyClassLoader loader = new GroovyClassLoader(cl);
-        //Class groovyClass = loader.parseClass(new File(scriptFile));
-        //GroovyObject groovyObject = (GroovyObject)groovyClass.newInstance();
-        //groovyObject.invokeMethod("run", null);
+        GroovyClassLoader loader = new GroovyClassLoader(cl);
+        Class groovyClass = loader.parseClass(new File(scriptFile));
+        GroovyObject groovyObject = (GroovyObject)groovyClass.newInstance();
+        groovyObject.invokeMethod("run", null);
     }
 }
 



Mime
View raw message