/** * Bind and initialise a task * @param task task to bind */ private void bind(Task task) { task.bindToOwner(this); task.init(); }
/** * Initializes the task. */ @Override public void init() { super.init(); xmlCatalog.setProject(getProject()); }
/** * Called by the project to let the task initialize properly. * * @exception BuildException if something goes wrong with the build */ public void init() throws BuildException { super.init(); xmlCatalog.setProject(getProject()); }
private void configureTask(Task helper) { helper.setProject(getProject()); helper.setTaskName(getTaskName()); helper.setOwningTarget(getOwningTarget()); helper.init(); }
/** * Creates a named task and configures it up to the init() stage. * * @param ue The UnknownElement to create the real task for. * Must not be <code>null</code>. * @param w Ignored. * * @return the task specified by the given unknown element, or * <code>null</code> if the task name is not recognised. */ protected Task makeTask(UnknownElement ue, RuntimeConfigurable w) { Task task = getProject().createTask(ue.getTag()); if (task != null) { task.setLocation(getLocation()); // UnknownElement always has an associated target task.setOwningTarget(getOwningTarget()); task.init(); } return task; }
/** * Factory method to create the components. * * This should be called by UnknownElement. * * @param ue The Unknown Element creating this component. * @param ns Namespace URI. Also available as ue.getNamespace(). * @param componentType The component type, * Also available as ue.getComponentName(). * @return the created component. * @throws BuildException if an error occurs. */ public Object createComponent(UnknownElement ue, String ns, String componentType) throws BuildException { Object component = createComponent(componentType); if (component instanceof Task) { Task task = (Task) component; task.setLocation(ue.getLocation()); task.setTaskType(componentType); task.setTaskName(ue.getTaskName()); task.setOwningTarget(ue.getOwningTarget()); task.init(); } return component; }
task.init(); wrapper = task.getRuntimeConfigurableWrapper(); wrapper.setAttributes(attrs);
task.setTaskType(ue.getTaskType()); task.setTaskName(ue.getTaskName()); task.init();
@Override public void init() { super.init(); parameters = null; groups = null; output = null; format = REPORT_TEXT; }
@Override public void init() throws BuildException { super.init(); this.m_fileSet = new ArrayList<FileSet>(); }
/** * Initialize the task. * This initializes the known hosts and sets the default port. * @throws BuildException on error */ @Override public void init() throws BuildException { super.init(); this.knownHosts = System.getProperty("user.home") + "/.ssh/known_hosts"; this.port = SSH_PORT; }
@Override public void init() throws BuildException { super.init(); this.m_fileSet = new ArrayList<FileSet>(); }
public void init() throws BuildException { super.init(); this.m_fileSet = new ArrayList<FileSet>(); this.m_delegatesToUpdate = new ArrayList<IconGhostingType>(); }
public void init() throws BuildException { super.init(); this.m_fileSet = new ArrayList<FileSet>(); this.m_delegatesToUpdate = new ArrayList<ContainerGhostingType>(); }
public void init() throws BuildException { super.init(); this.m_fileSet = new ArrayList<FileSet>(); this.m_delegatesToCreate = new ArrayList<UiDelegateType>(); }
/** * Initialize internal instance of XMLCatalog */ public void init() { super.init(); xmlCatalog.setProject(getProject()); }
public void init() throws BuildException { super.init(); utility = Utility.getInstance(getProject(), this); condition = new Conditional(getProject()); }
public void init() { super.init(); classpath = new Path(getProject(), ""); utility = Utility.getInstance(getProject(), this); condition = new Conditional(getProject()); }
public void init() throws BuildException { super.init(); utility = Utility.getInstance(getProject(), this); condition = new Conditional(getProject()); config = "CLDC-" + utility.getCldcVersion(); profile = "MIDP-" + utility.getMidpVersion(); } public void setJadfile(File file) {
public void init() throws BuildException { super.init(); utility = Utility.getInstance(getProject(), this); condition = new Conditional(getProject()); if (getProject().getProperty("wtk.wme.home") != null) { converter = "wme"; } else { converter = "wtk"; } }