From 8033ec63fba0c722fe2d6db766bf8cc9a44dd3e7 Mon Sep 17 00:00:00 2001 From: Constantine Plotnikov Date: Thu, 27 May 2010 11:12:55 +0400 Subject: [PATCH] ant generation: Empty path is converted to empty path during relative path conversion since it is likely means that no value is supplied --- .../openapi/src/com/intellij/compiler/ant/GenerationUtils.java | 3 +++ 1 file changed, 3 insertions(+) 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