File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/main/java/org/apposed/appose Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,18 @@ default T channels(String... channels) {
198198 */
199199 T channels (List <String > channels );
200200
201+ /**
202+ * Specifies a configuration file to build from.
203+ * Reads the file content immediately and delegates to {@link #content(String)}.
204+ *
205+ * @param file Configuration file (e.g., pixi.toml, environment.yml)
206+ * @return This builder instance, for fluent-style programming.
207+ * @throws BuildException If the file cannot be read
208+ */
209+ default T file (File file ) throws BuildException {
210+ return file (file .getAbsolutePath ());
211+ }
212+
201213 /**
202214 * Specifies a configuration file path to build from.
203215 * Reads the file content immediately and delegates to {@link #content(String)}.
You can’t perform that action at this time.
0 commit comments