File tree 1 file changed +5
-4
lines changed
modules/compiler/src/main/java/script/dsl
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,14 @@ The directory where a module script is located (equivalent to `projectDir` if us
103
103
void exit (int exitCode , String message );
104
104
105
105
@ Description ("""
106
- Get one or more files from a path or glob pattern. Returns a Path or list of Paths if there are multiple files.
106
+ Get a file from a path or glob pattern.
107
+
108
+ *NOTE: This function will return a collection if the glob pattern yields zero or multiple files. Use `files()` to get a collection of files.*
107
109
""" )
108
- /* Path | Collection<Path> */
109
- Object file (Map <String ,?> opts , String filePattern );
110
+ Path file (Map <String ,?> opts , String filePattern );
110
111
111
112
@ Description ("""
112
- Convenience method for `file()` that always returns a list .
113
+ Get a collection of files from a path or glob pattern .
113
114
""" )
114
115
Collection <Path > files (Map <String ,?> opts , String filePattern );
115
116
You can’t perform that action at this time.
0 commit comments