[#8086] Resolve relative paths in target directory in Maven plugin
This commit is contained in:
parent
4c7d404016
commit
f24e629155
@ -176,7 +176,7 @@ public class Plugin extends AbstractMojo {
|
||||
|
||||
// [#2887] Patch relative paths to take plugin execution basedir into account
|
||||
if (!new File(generator.getTarget().getDirectory()).isAbsolute())
|
||||
generator.getTarget().setDirectory(project.getBasedir() + File.separator + generator.getTarget().getDirectory());
|
||||
generator.getTarget().setDirectory(new File(project.getBasedir() + File.separator + generator.getTarget().getDirectory()).getCanonicalPath());
|
||||
|
||||
Configuration configuration = new Configuration();
|
||||
configuration.setLogging(logging);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user