-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Custom lib path is not added to the classpath #1213
- Loading branch information
1 parent
aed407e
commit 8cef0e3
Showing
4 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# check the ability to load custom script/classes in the | ||
# local `lib` directory | ||
# | ||
set -e | ||
|
||
# copy the test script in this directory | ||
cp ${NXF_SCRIPT:-../../custom-lib.nf} test.nf | ||
|
||
# crate a library class | ||
mkdir -p lib | ||
cat >lib/Foo.groovy <<EOL | ||
class Foo { | ||
|
||
static String hello() { "Hello world!" } | ||
|
||
} | ||
EOL | ||
|
||
${NXF_CMD:-nextflow} run test.nf | tee stdout | ||
|
||
[[ `< stdout grep -c 'Hello world!'` == 1 ]] || false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
println Foo.hello() |