/** * Execute the specified sequence of targets, and the targets * they depend on. * * @param names A vector of target name strings to execute. * Must not be <code>null</code>. * * @exception BuildException if the build failed. */ public void executeTargets(final Vector<String> names) throws BuildException { setUserProperty(MagicNames.PROJECT_INVOKED_TARGETS, names.stream().collect(Collectors.joining(","))); getExecutor().executeTargets(this, names.toArray(new String[names.size()])); }
/** * Initialize a subproject. * @param subProject the subproject to initialize. */ public void initSubProject(final Project subProject) { ComponentHelper.getComponentHelper(subProject) .initSubProject(ComponentHelper.getComponentHelper(this)); subProject.setDefaultInputStream(getDefaultInputStream()); subProject.setKeepGoingMode(this.isKeepGoingMode()); subProject.setExecutor(getExecutor().getSubProjectExecutor()); }