Closed codekaust closed 5 years ago
This issue has existed in ModelPolisher before the feature of the glossary was added to it.
Similar issue for the following two cases:
output = <existing directory>/d1/d2/d3
: Here, d1,d2,d3 directories are not created already.output = <existing directory>/d1/d2/d3/model.xml
output = <existing directory>/d1/d2
: Here, ModelPolisher creates d1 directory but takes d2 as a file.
Consider the following cases for
--output
:output = directory
and directory present or not presentoutput = file
and file not present but the directory containing the file is present / not presentoutput = file
and neither file is present nor the directory containing the file.In the third case, ModelPolisher shows exception (
java.io.FileNotFoundException
) and stops (not producing glossary or output).Note: This will happen only if you polish a single model, if input is a directory then output must be a directory too, and in that case, no error will come as evident from above cases.