From 0d7633caa6f761a566c6eaabbf95871708714d11 Mon Sep 17 00:00:00 2001 From: Costin Manolache Date: Fri, 13 Dec 2002 22:00:05 +0000 Subject: [PATCH] getDescription() now computes the description ( on demand ) using the tree. If ProjectHelperImpl is used - no differences should be visible. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273669 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/Project.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/org/apache/tools/ant/Project.java b/src/main/org/apache/tools/ant/Project.java index b87551cde..b67c06632 100644 --- a/src/main/org/apache/tools/ant/Project.java +++ b/src/main/org/apache/tools/ant/Project.java @@ -67,6 +67,7 @@ import org.apache.tools.ant.input.DefaultInputHandler; import org.apache.tools.ant.input.InputHandler; import org.apache.tools.ant.types.FilterSet; import org.apache.tools.ant.types.FilterSetCollection; +import org.apache.tools.ant.types.Description; import org.apache.tools.ant.util.FileUtils; import org.apache.tools.ant.util.JavaEnvUtils; import org.apache.tools.ant.util.WeakishReference; @@ -694,6 +695,10 @@ public class Project { * been set. */ public String getDescription() { + if( description== null ) { + description=Description.getDescription(this); + } + return description; }