ASF Bugzilla – Attachment 10821 Details for
Bug 27722
Project description contains target description
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
a better diff for Target, this one does not let -projecthelp show a description for the implicit target, as that is actually the description for the target.
Target.java.diff (text/plain), 1.07 KB, created by
Dale Anson
on 2004-03-16 22:00:44 UTC
(
hide
)
Description:
a better diff for Target, this one does not let -projecthelp show a description for the implicit target, as that is actually the description for the target.
Filename:
MIME Type:
Creator:
Dale Anson
Created:
2004-03-16 22:00:44 UTC
Size:
1.07 KB
patch
obsolete
>--- /cygdrive/c/My Documents/software/src/ant/ant/src/main/org/apache/tools/ant/Target.java 2004-03-15 09:33:10.000000000 -0800 >+++ /cygdrive/c/ant/src/main/org/apache/tools/ant/Target.java 2004-03-16 13:56:54.000000000 -0800 >@@ -261,7 +261,24 @@ > * description is available. > */ > public String getDescription() { >- return description; >+ if ("".equals(getName())) >+ return null; >+ StringBuffer desc = new StringBuffer(description != null ? description : ""); >+ Iterator i = children.iterator(); >+ while(i.hasNext()) { >+ Task task = (Task) i.next(); >+ if (!(task instanceof UnknownElement)) { >+ continue; >+ } >+ UnknownElement ue = ((UnknownElement) task); >+ if ("description".equals(ue.getTag())){ >+ StringBuffer descComp = ue.getWrapper().getText(); >+ if (descComp != null) { >+ desc.append((Object) descComp); >+ } >+ } >+ } >+ return desc.toString(); > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27722
:
10819
|
10820
| 10821