Skip to content

Commit

Permalink
Point release to fix default module path
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyb149 committed Jun 9, 2016
1 parent 0ada4c9 commit 790e66f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
language: java
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ The JAR is available on Bintray at https://bintray.com/mattyb149/maven/nifi-scri
<dependency>
<groupId>mattyb149</groupId>
<artifactId>nifi-script-tester</artifactId>
<version>1.1</version>
<version>1.1.1</version>
<type>jar</type>
<classifier>all</classifier>
</dependency>
```

### 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
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/nifi/ScriptRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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");
}
}
}
Expand Down

0 comments on commit 790e66f

Please sign in to comment.