File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
modules/compiler/src/main/java/script/dsl Expand file tree Collapse file tree 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
103103 void exit (int exitCode , String message );
104104
105105 @ 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.*
107109 """ )
108- /* Path | Collection<Path> */
109- Object file (Map <String ,?> opts , String filePattern );
110+ Path file (Map <String ,?> opts , String filePattern );
110111
111112 @ Description ("""
112- Convenience method for `file()` that always returns a list .
113+ Get a collection of files from a path or glob pattern .
113114 """ )
114115 Collection <Path > files (Map <String ,?> opts , String filePattern );
115116
You can’t perform that action at this time.
0 commit comments