Ignore:
Timestamp:
2008-08-08T13:11:30+12:00 (16 years ago)
Author:
oranfry
Message:

hacked ant now addresses all targets and supports -sim, -from, -to and -descend without need of a custom task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/ant/src/main/org/apache/tools/ant/Task.java

    r14982 r16685  
    357357     */
    358358    public final void perform() {
     359
     360        //if in sim mode, dont execute tasks except antcall and tasks outside of any target
     361        boolean dontExecute =
     362            project.getProperty("execute") != null && project.getProperty("execute").equals( "false" ) &&
     363            getOwningTarget() != null && !getOwningTarget().getName().equals("") &&
     364            !getTaskName().equals("antcall");
     365
     366
     367        if ( dontExecute ) {
     368            return;
     369        }
     370
    359371        if (!invalid) {
    360372            getProject().fireTaskStarted(this);
Note: See TracChangeset for help on using the changeset viewer.