You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2015/04/01 09:37:45 UTC

svn commit: r1670573 - in /manifoldcf/branches/CONNECTORS-1177/framework: script-engine/src/main/java/org/apache/manifoldcf/scriptengine/VariableConfiguration.java script-example/file-crawl-example.mcf

Author: kwright
Date: Wed Apr  1 07:37:44 2015
New Revision: 1670573

URL: http://svn.apache.org/r1670573
Log:
Finish fixing up script example

Modified:
    manifoldcf/branches/CONNECTORS-1177/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/VariableConfiguration.java
    manifoldcf/branches/CONNECTORS-1177/framework/script-example/file-crawl-example.mcf

Modified: manifoldcf/branches/CONNECTORS-1177/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/VariableConfiguration.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1177/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/VariableConfiguration.java?rev=1670573&r1=1670572&r2=1670573&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1177/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/VariableConfiguration.java (original)
+++ manifoldcf/branches/CONNECTORS-1177/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/VariableConfiguration.java Wed Apr  1 07:37:44 2015
@@ -49,8 +49,7 @@ public class VariableConfiguration exten
       }
       catch (ManifoldCFException e)
       {
-        System.out.println("'"+json+"'");
-        throw new ScriptException(e.getMessage(),e);
+        throw new ScriptException("Invalid json: '"+json+"': "+e.getMessage(),e);
       }
     }
   }

Modified: manifoldcf/branches/CONNECTORS-1177/framework/script-example/file-crawl-example.mcf
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1177/framework/script-example/file-crawl-example.mcf?rev=1670573&r1=1670572&r2=1670573&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1177/framework/script-example/file-crawl-example.mcf (original)
+++ manifoldcf/branches/CONNECTORS-1177/framework/script-example/file-crawl-example.mcf Wed Apr  1 07:37:44 2015
@@ -92,14 +92,17 @@ POST result = {
     << "recrawl_interval" : "86400000" :  :  >>,
     << "run_mode" : "scan once" :  :  >>,
     << "hopcount_mode" : "never delete" :  :  >>,
-    << "output_specification" : "" :  :  >>,
     << "description" : fileCrawlJobName :  :  >>,
+    << "repository_connection" : "File System" :  :  >>,
     << "document_specification" : "" :  :
       << "startpoint" : "" : "path"=fileCrawlPath : 
         << "include" : "" : "match"="*", "type"="file" :  >>,
         << "include" : "" : "match"="*", "type"="directory" :  >> >> >>,
-    << "output_connection" : "Null Output" :  :  >>,
-    << "repository_connection" : "File System" :  :  >>,
+    << "pipelinestage" : "" :  :
+      << "stage_id" : 0 :  :  >>,
+      << "stage_isoutput": "true" :  :  >>,
+      << "stage_specification" : "" :  :  >>,
+      << "stage_connectionname" : "Null Output" :  :  >> >>,
     << "priority" : "5" :  :  >>,
     << "expiration_interval" : "infinite" :  :  >> >> }
   to baseurl + "jobs";