I want to have a parameter in a @CliCommand
which is a network path. Something like \\path\to\newfolder
. This folder will then be read and further processed.
However as java interprets backslashes specially, the result will be something like this:
\path\to\newfolder
while \t
is a backslash and \n
is a newline.
Is there a possibility to read a network parameters?
The code looks like this:
@CliCommand(value="importSifs", help = "Aktivierung von Tasks und Workflows")
public String importObjects(
@CliOption(key = "username", mandatory = true) String username,
@CliOption(key = "password", mandatory = true) String password,
@CliOption(key = "url", mandatory = true) String url,
@CliOption(key = "folder", mandatory = true) File folder