Hello,
I am currently using a feature type reader with the Merge Feature Type filter * - wilcard to load a reader from command line, ex:
--folder all --data fullcoverage (the path formed with publish params: C:\\all\\fullcoverage\\area.shp
What I would like to do, is to allow a user to choose between a default reader (let's say, the YES choice, which would be the above example) or to allow him to insert a completely new path (the NO option). So, if the choice is YES, it will take him on a branch, if the choice is NO, on a different branch.
It should work somehow like this:
"--choice yes" -> would load the default reader C:\\all\\fullcoverage\\area.shp
"--choice no" (should require the "--path" param where the user could indicate the path for a completely different shapefile) which should create a reader like C:\\cities\\test\\dummy.shp if the command is:
"--choice no --path C:\\cities\\test\\dummy.shp"
I hope I stated the problem clearly enough. The above examples are just to state the issue, so any other path could work as well.