You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2016/01/04 13:52:02 UTC

incubator-tinkerpop git commit: Clear Grapes and HDFS in `bin/process-docs.sh`. Also added an option (`--no-clean`) to avoid the cleanup.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-938 [created] 205efdf1b


Clear Grapes and HDFS in `bin/process-docs.sh`.
Also added an option (`--no-clean`) to avoid the cleanup.


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

Branch: refs/heads/TINKERPOP-938
Commit: 205efdf1b2505d23fef04440d69b524d6ebcc03d
Parents: 044b5ed
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Mon Jan 4 13:50:24 2016 +0100
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Mon Jan 4 13:50:24 2016 +0100

----------------------------------------------------------------------
 CHANGELOG.asciidoc  |  1 +
 bin/process-docs.sh | 26 +++++++++++++++++++++++++-
 2 files changed, 26 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/205efdf1/CHANGELOG.asciidoc
----------------------------------------------------------------------
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index e131b81..583117c 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -26,6 +26,7 @@ image::https://raw.githubusercontent.com/apache/incubator-tinkerpop/master/docs/
 TinkerPop 3.1.1 (NOT OFFICIALLY RELEASED YET)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+* Added `--no-clean` option in `bin/process-docs.sh` to prevent the script from cleaning Grapes and HDFS.
 * Execute the `LifeCycle.beforeEval()` in the same thread that `eval()` is executed in for `GremlinExecutor`.
 * Improved error handling of Gremlin Console initialization scripts to better separate errors in initialization script I/O versus execution of the script itself.
 * Fixed a bug in `Graph.OptOut` when trying to opt-out of certain test cases with the `method` property set to "*".

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/205efdf1/bin/process-docs.sh
----------------------------------------------------------------------
diff --git a/bin/process-docs.sh b/bin/process-docs.sh
index dd1dc2a..8af11d0 100755
--- a/bin/process-docs.sh
+++ b/bin/process-docs.sh
@@ -20,7 +20,31 @@
 
 pushd "$(dirname $0)/.." > /dev/null
 
-if [ "$1" == "--dryRun" ]; then
+while [[ $# -gt 0 ]]
+do
+  key="$1"
+  case $key in
+    -n|--no-clean)
+      NOCLEAN=1
+      ;;
+    -d|--dryRun)
+      DRYRUN=1
+      ;;
+    *)
+      # unknown option
+      ;;
+  esac
+  shift
+done
+
+if [ -z ${NOCLEAN} ]; then
+  rm -rf ~/.groovy/grapes/org.apache.tinkerpop/
+  if hash hadoop 2> /dev/null; then
+    hadoop fs -rm -r "hadoop-gremlin-*-libs" > /dev/null 2>&1
+  fi
+fi
+
+if [ ! -z ${DRYRUN} ]; then
 
   mkdir -p target/postprocess-asciidoc/tmp
   cp -R docs/{static,stylesheets} target/postprocess-asciidoc/