Permalink
Browse files

Custom tasks of the root project are shown once again (if they need t…

…o be checked for existence).
  • Loading branch information...
1 parent b849e28 commit 6c9ff0e43ba4e43a917fd064edf3d1833efd697b @kelemen committed Nov 18, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/org/netbeans/gradle/project/properties/PredefinedTask.java
@@ -114,7 +114,10 @@ private static boolean isTaskExists(NbGradleModule module, String task) {
// if projectName is empty, that means that we want to execute
// the task of the root project.
- if (!projectName.isEmpty() && !projectName.startsWith(":")) {
+ if (projectName.isEmpty()) {
+ projectName = ":";
+ }
+ else if (!projectName.startsWith(":")) {
projectName = module.getUniqueName() + ":" + projectName;
}
}

0 comments on commit 6c9ff0e

Please sign in to comment.