Skip to content

[standalone] Non-existent input file only throws a warning #670

@karelkryda

Description

@karelkryda

Hi,
I would like to report issue with Oxalis standalone component.

In case I provide a path to a file that does not exist or that the process cannot access as -f input parameter to Oxalis standalone, the application finishes its work with RC 0 and only a warning in the log that the input file does not exist. Since the only functionality of this component is sending messages, the application should require at least one valid input file and should crash and return a non-zero return code if this is not the case and no valid input files have been provided.
The mentioned code snippet is this:

File fileSpec = new File(payloadFileSpec);
if (!fileSpec.exists()) {
log.warn(String.format("'%s' does not exists.", fileSpec.getAbsolutePath()));
} else if (fileSpec.isDirectory()) {

Would it be possible to change the behavior of the application to take this as a fatal error instead of just a "warning"?

Thanks in advance

Additional information:

Oxalis version: 6.5.0
AS4 plugin version: 6.5.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Future

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions