From 790e66f24c28a5477f48576d7d8e8ebd8d8eb6f1 Mon Sep 17 00:00:00 2001 From: Matt Burgess Date: Thu, 9 Jun 2016 14:15:59 -0400 Subject: [PATCH] Point release to fix default module path --- .travis.yml | 1 + README.md | 4 ++-- build.gradle | 2 +- src/main/java/nifi/ScriptRunner.java | 6 ++++-- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f5c99a7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1 @@ +language: java \ No newline at end of file diff --git a/README.md b/README.md index bec4fca..89d8a73 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ The JAR is available on Bintray at https://bintray.com/mattyb149/maven/nifi-scri mattyb149 nifi-script-tester - 1.1 + 1.1.1 jar all @@ -53,7 +53,7 @@ The JAR is available on Bintray at https://bintray.com/mattyb149/maven/nifi-scri ### Gradle ```gradle -compile(group: 'mattyb149', name: 'nifi-script-tester', version: '1.1', ext: 'jar', classifier: 'all') +compile(group: 'mattyb149', name: 'nifi-script-tester', version: '1.1.1', ext: 'jar', classifier: 'all') ``` ## License diff --git a/build.gradle b/build.gradle index e620159..b075f73 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ plugins { id 'com.github.johnrengelman.shadow' version '1.2.3' } -version = '1.1' +version = '1.1.1' description = "A project to create a stub/mock environment for testing ExecuteScript processors" group = 'mattyb149' status = 'RELEASE' diff --git a/src/main/java/nifi/ScriptRunner.java b/src/main/java/nifi/ScriptRunner.java index e51b98a..181c07e 100644 --- a/src/main/java/nifi/ScriptRunner.java +++ b/src/main/java/nifi/ScriptRunner.java @@ -135,7 +135,9 @@ public static void main(String[] args) { runner.setValidateExpressionUsage(false); runner.setProperty(ExecuteScript.SCRIPT_ENGINE, scriptEngineName); runner.setProperty(ExecuteScript.SCRIPT_FILE, scriptPath); - runner.setProperty(ExecuteScript.MODULES, modulePaths.isEmpty() ? "src/test/resources/modules" : modulePaths); + if (!modulePaths.isEmpty()) { + runner.setProperty(ExecuteScript.MODULES, modulePaths); + } runner.assertValid(); try { @@ -216,7 +218,7 @@ private static void outputFlowFilesForRelationship(Relationship relationship) { } System.out.println(""); } - System.out.println("Flow Files transferred to " + relationship.getName() + ": " + files.size()+ "\n"); + System.out.println("Flow Files transferred to " + relationship.getName() + ": " + files.size() + "\n"); } } }