TINKERPOP-1562 Change Set to List to preserve order in script execution.

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

Branch: refs/heads/TINKERPOP-1562
Commit: 1ded94776a92fde36dc2031490da96f483605e99
Parents: 9b9ec29
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Nov 29 16:42:46 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Dec 1 06:41:43 2016 -0500

----------------------------------------------------------------------
 .../apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPlugin.java  | 2 +-
 .../tinkerpop/gremlin/jsr223/ScriptFileGremlinPluginTest.java     | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1ded9477/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPlugin.java
----------------------------------------------------------------------
diff --git 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPlugin.java
 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPlugin.java
index 93ad9d8..0131ca2 100644
--- 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPlugin.java
+++ 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPlugin.java
@@ -60,7 +60,7 @@ public final class ScriptFileGremlinPlugin extends 
AbstractGremlinPlugin {
             return this;
         }
 
-        public Builder files(final Set<String> files) {
+        public Builder files(final List<String> files) {
             for (String f : files) {
                 final File file = new File(f);
                 if (!file.exists()) throw new IllegalArgumentException(new 
FileNotFoundException(f));

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1ded9477/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPluginTest.java
----------------------------------------------------------------------
diff --git 
a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPluginTest.java
 
b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPluginTest.java
index 81cf9e6..681d2ac 100644
--- 
a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPluginTest.java
+++ 
b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/jsr223/ScriptFileGremlinPluginTest.java
@@ -23,6 +23,7 @@ import org.junit.Test;
 
 import java.io.File;
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.Collection;
 import java.util.HashSet;
 import java.util.List;
@@ -41,7 +42,7 @@ public class ScriptFileGremlinPluginTest {
     public void shouldOpenViaPropertiesFileConfig() throws IOException {
         final File scriptFile1 = 
TestHelper.generateTempFileFromResource(DefaultScriptCustomizerTest.class, 
"script-customizer-1.groovy", ".groovy");
         final File scriptFile2 = 
TestHelper.generateTempFileFromResource(DefaultScriptCustomizerTest.class, 
"script-customizer-2.groovy", ".groovy");
-        final Set<String> files = new HashSet<>();
+        final List<String> files = new ArrayList<>();
         files.add(scriptFile1.getAbsolutePath());
         files.add(scriptFile2.getAbsolutePath());
         final GremlinPlugin plugin = 
ScriptFileGremlinPlugin.build().files(files).create();

Reply via email to