diff --git a/java/compiler/openapi/src/com/intellij/compiler/ant/GenerationUtils.java b/java/compiler/openapi/src/com/intellij/compiler/ant/GenerationUtils.java index ca225b99df10..527d9138d9c0 100644 --- a/java/compiler/openapi/src/com/intellij/compiler/ant/GenerationUtils.java +++ b/java/compiler/openapi/src/com/intellij/compiler/ant/GenerationUtils.java @@ -86,6 +86,9 @@ public class GenerationUtils { @NonNls final String baseDirPropertyName, GenerationOptions genOptions) { path = normalizePath(path); + if(path.length() == 0) { + return path; + } final String substitutedPath = genOptions.subsitutePathWithMacros(path); if (!substitutedPath.equals(path)) { // path variable substitution has highest priority