The open tool development kit provides java libraries for efficient implementation of data processing tools. Primarily the libraries have been build to close gaps within the process of test automation, but they can be helpful for implementing any application that needs to collect data from different sources, transform the data and generate output in different formats (textual, graphical etc.).
BSD 2-Clause "Simplified" License
3
stars
1
forks
source link
Extend BaseApplication#parseArgs method to support arguments with values including = and - characters #42
The org.opentdk.api.application.BaseApplication class implements the method parseArgs which splits each argument into key and values. This method assumes, that the key stars with a - character and the value follows after an = character.
e.g. -settingsFile=./conf/application.xml
In case the value includes = or - characters, the parseArgs method will fail.
It is required to modify the parse logic, so that the complete string after the first = character will be assigned as value of the argument.
The org.opentdk.api.application.BaseApplication class implements the method parseArgs which splits each argument into key and values. This method assumes, that the key stars with a - character and the value follows after an = character. e.g. -settingsFile=./conf/application.xml
In case the value includes = or - characters, the parseArgs method will fail. It is required to modify the parse logic, so that the complete string after the first = character will be assigned as value of the argument.