Browse Source

Make the description attribute of Task accesible to build files

(that's what it has been intended for I guess). Add the one for Target
to <anstructure>.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267972 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
a8387980f9
2 changed files with 6 additions and 7 deletions
  1. +0
    -2
      src/main/org/apache/tools/ant/IntrospectionHelper.java
  2. +6
    -5
      src/main/org/apache/tools/ant/taskdefs/AntStructure.java

+ 0
- 2
src/main/org/apache/tools/ant/IntrospectionHelper.java View File

@@ -125,8 +125,6 @@ public class IntrospectionHelper {
(
(
"setLocation".equals(name) && org.apache.tools.ant.Location.class.equals(args[0])
) || (
"setDescription".equals(name) && java.lang.String.class.equals(args[0])
) || (
"setTaskType".equals(name) && java.lang.String.class.equals(args[0])
)


+ 6
- 5
src/main/org/apache/tools/ant/taskdefs/AntStructure.java View File

@@ -175,11 +175,12 @@ public class AntStructure extends Task {
out.println("");

out.println("<!ATTLIST target");
out.println(" id ID #IMPLIED");
out.println(" name CDATA #REQUIRED");
out.println(" if CDATA #IMPLIED");
out.println(" unless CDATA #IMPLIED");
out.println(" depends CDATA #IMPLIED>");
out.println(" id ID #IMPLIED");
out.println(" name CDATA #REQUIRED");
out.println(" if CDATA #IMPLIED");
out.println(" unless CDATA #IMPLIED");
out.println(" depends CDATA #IMPLIED");
out.println(" description CDATA #IMPLIED>");
out.println("");
}



Loading…
Cancel
Save