diff --git a/src/main/groovy/net/wasdev/wlp/gradle/plugins/tasks/AbstractTask.groovy b/src/main/groovy/net/wasdev/wlp/gradle/plugins/tasks/AbstractTask.groovy index fa528c19c..09cf48f14 100644 --- a/src/main/groovy/net/wasdev/wlp/gradle/plugins/tasks/AbstractTask.groovy +++ b/src/main/groovy/net/wasdev/wlp/gradle/plugins/tasks/AbstractTask.groovy @@ -62,6 +62,10 @@ abstract class AbstractTask extends DefaultTask { } } + protected File getUserDir(Project project) { + return getUserDir(project, getInstallDir(project)) + } + protected File getUserDir(Project project, File installDir) { return (project.liberty.userDir == null) ? new File(installDir, 'usr') : new File(project.liberty.userDir) }