You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/01/05 23:54:49 UTC

[17/50] incubator-tinkerpop git commit: Add a note about ScriptExecutor in the reference docs.

Add a note about ScriptExecutor in the reference docs.

Just mentioning that users can't do console commands like :> in a script to -e


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/96e7cbd2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/96e7cbd2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/96e7cbd2

Branch: refs/heads/TINKERPOP-1033
Commit: 96e7cbd23b9f7da94f35e6928fcbc3f30b11e05b
Parents: d85a35d
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Dec 22 09:23:32 2015 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Dec 22 09:23:32 2015 -0500

----------------------------------------------------------------------
 docs/src/reference/gremlin-applications.asciidoc | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/96e7cbd2/docs/src/reference/gremlin-applications.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/gremlin-applications.asciidoc b/docs/src/reference/gremlin-applications.asciidoc
index 9979b3d..d5cbdec 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -276,6 +276,11 @@ $ bin/gremlin.sh -e gremlin.groovy vadas
 v[2]
 ----
 
+NOTE: The `ScriptExecutor` is for Gremlin Groovy scripts only.  It is not possible to include Console plugin commands
+such as `:remote` or `:>` when using `-e` in these scripts. That does not mean that it is impossible to script such
+commands, it just means that they need to be scripted manually.  For example, instead of trying to use the `:remote`
+command, manually construct a <<connecting-via-java,Gremlin Driver>> `Client` and submit scripts from there.
+
 [[gremlin-server]]
 Gremlin Server
 --------------
@@ -468,6 +473,7 @@ for purposes of execution within the context of a script.  Therefore, it becomes
 :> x.E().label().groupCount()
 ----
 
+[[connecting-via-java]]
 Connecting via Java
 ~~~~~~~~~~~~~~~~~~~