DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18988>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18988

<ant> and <antcall> can use names of non-existent targets

           Summary: <ant> and <antcall> can use names of non-existent
                    targets
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


When writing a library of common used buildfile snippets the targets should 
call a "pre" target before execution and a "post" target after execution. So 
the user can do some more work (e.g. changing the index.html of the javadoc). 
But these targets should be optional.

First implementation uses <script>-task
<script language="javascript"><![CDATA[
    // Check whether PRE exists and call it
    prj = self.getProject();
    if (prj.getTargets().containsKey("javadoc.pre")) {
        prj.getTargets().get("javadoc.pre").performTasks();
    }
]]>
</script>

To avoid the use of that programming the <antcall> and therefore the <ant> 
needs the new attribute.

Modified sources (implementation, tests) and docs as full and diffs as 
attachement.

Reply via email to