Changeset 401

Show
Ignore:
Timestamp:
02/28/10 21:36:41 (5 months ago)
Author:
jboudart
Message:

Add a new task (FindClasspath?) responsible of building plugin classpath with specific rules (useful to support additional SDK/alternative language)

Location:
trunk/src/main
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/main/java/org/apache/easyant/tasks/EasyAntTask.java

    r322 r401  
    66import org.apache.tools.ant.BuildException; 
    77import org.apache.tools.ant.Task; 
     8import org.apache.tools.ant.types.Reference; 
    89 
    910/** 
     
    3435                return getEasyAntIvyAntSettings().getConfiguredIvyInstance(this); 
    3536        } 
     37         
     38        /** 
     39         * Utilitary method to configure a task with the current one 
     40         * @param task task to configure 
     41         * @return the configured task 
     42         */ 
     43        protected Task initTask(Task task) { 
     44                task.setLocation(getLocation()); 
     45                task.setProject(getProject()); 
     46                task.setTaskName(getTaskName()); 
     47                task.setOwningTarget(getOwningTarget()); 
     48                return task; 
     49        } 
     50 
     51        /** 
     52         * Get a reference of the project ivy instance 
     53         * @return a reference of the project ivy instance 
     54         */ 
     55        protected Reference getProjectIvyReference() { 
     56                return new Reference(getProject(), getProject().getProperty( 
     57                                EasyAntMagicNames.PROJECT_IVY_INSTANCE)); 
     58        } 
    3659 
    3760} 
  • trunk/src/main/java/org/apache/easyant/tasks/LoadModule.java

    r386 r401  
    363363                } 
    364364        } 
    365  
    366         private Task initTask(Task task) { 
    367                 task.setLocation(getLocation()); 
    368                 task.setProject(getProject()); 
    369                 task.setTaskName(getTaskName()); 
    370                 task.setOwningTarget(getOwningTarget()); 
    371                 return task; 
    372         } 
    373365         
    374366        /** 
  • trunk/src/main/resources/org/apache/easyant/antlib.xml

    r364 r401  
    3030         
    3131        <typedef name="configure-build-scoped-repository" classname="org.apache.easyant.tasks.ConfigureBuildScopedRepository"/>  
     32        <typedef name="findclasspath" classname="org.apache.easyant.tasks.FindClasspath"/> 
    3233 
    3334        <presetdef name="include">