metro-jax-ws icon indicating copy to clipboard operation
metro-jax-ws copied to clipboard

wsgen: relative ext metadata file is not found if s and/or d options are used

Open Tomas-Kraus opened this issue 3 years ago • 0 comments

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

Tomas-Kraus avatar Jun 02 '22 17:06 Tomas-Kraus