metro-jax-ws
metro-jax-ws copied to clipboard
wsgen: relative ext metadata file is not found if s and/or d options are used
culprit is in following method
private List<File> getExternalFiles(List<String> exts) {
...
if (!file.exists()) {
// then relative path ...
file = new File(options.sourceDir.getAbsolutePath() + File.separator + ext);
}
...
}
so for following cmd line: wsgen -x a.xml -s dir -keep some.Service metadata file will be resolved to dir/a.xml which is wrong; it should be resolved to $WORK_DIR/a.xml instead
Affected Versions
[2.2.8]
Source: https://github.com/javaee/metro-jax-ws/issues/1116 Author: glassfishrobot