Refine search
.forEach(pkg -> ps.createExclude().setName(pkg)); for (String pathElement : sourcePath.list()) { final File dir = new File(pathElement); if (dir.isDirectory()) { sp.createPathElement().setLocation(baseDir); } else { log(baseDir + " doesn\'t contain any packages, dropping it.",
/** * Invoked by IntrospectionHelper for <code>setXXX(Path p)</code> * attribute setters. * @param p the <code>Project</code> for this path. * @param path the <code>String</code> path definition. */ public Path(Project p, String path) { this(p); createPathElement().setPath(path); }
/** * Creates the nested <code><pathelement></code> element. * @return the <code>PathElement</code> to be configured * @throws BuildException on error */ public PathElement createPathElement() throws BuildException { if (isReference()) { throw noChildrenAllowed(); } PathElement pe = new PathElement(); add(pe); return pe; }
classpath = new Path(project); classpath.concatSystemClasspath(); Path.PathElement pathElement = classpath.createPathElement(); pathElement.setLocation(classgendir); String[] paths = classpath.list();
/** * Resolve all files from a given path and simplify its definition. */ private org.apache.tools.ant.types.Path resolveFiles(org.apache.tools.ant.types.Path path) { org.apache.tools.ant.types.Path cloned = new org.apache.tools.ant.types.Path(getProject()); for (String location : path.list()) { cloned.createPathElement().setLocation(new File(location)); } return cloned; }
/** * Helper method to retrieve main class which is different from versions. * @param home the javacc home path directory. * @param type the taskdef. * @throws BuildException thrown if the home directory is invalid * or if the archive could not be found despite attempts to do so. * @return the main class for the taskdef. */ protected static String getMainClass(File home, int type) throws BuildException { Path p = new Path(null); p.createPathElement().setLocation(getArchiveFile(home)); p.addJavaRuntime(); return getMainClass(p, type); }
Path path = new Path(getProject()); getProject().addReference(getPathId(), path); path.createPathElement().setLocation((File) iter.next());
classpath.createPathElement().setPath(javaccJar.getAbsolutePath()); classpath.addJavaRuntime();
/** * Parses a path definition and creates single PathElements. * @param path the <code>String</code> path definition. * @throws BuildException on error */ public void setPath(String path) throws BuildException { checkAttributesAllowed(); createPathElement().setPath(path); }
classpath = new Path(project); classpath.concatSystemClasspath(); Path.PathElement pathElement = classpath.createPathElement(); pathElement.setLocation(classgendir); String[] paths = classpath.list();
/** * Resolve all files from a given path and simplify its definition. */ private org.apache.tools.ant.types.Path resolveFiles(org.apache.tools.ant.types.Path path) { org.apache.tools.ant.types.Path cloned = new org.apache.tools.ant.types.Path(getProject()); for (String location : path.list()) { cloned.createPathElement().setLocation(new File(location)); } return cloned; }
classpath.createPathElement().setPath(javaccJar.getAbsolutePath()); classpath.addJavaRuntime();
/** * Adds a element definition to the path. * @param location the location of the element to add (must not be * <code>null</code> nor empty. * @throws BuildException on error */ public void setLocation(File location) throws BuildException { checkAttributesAllowed(); createPathElement().setLocation(location); }
classpath = new Path(project); classpath.concatSystemClasspath(); Path.PathElement pathElement = classpath.createPathElement(); pathElement.setLocation(classgendir); String[] paths = classpath.list();
String[] pathElements = sourcePath.list(); for (int i = 0; i < pathElements.length; i++) { File dir = new File(pathElements[i]); sp.createPathElement().setLocation(baseDir); } else { log.verbose(baseDir + " doesn\'t contain any packages, dropping it.");
sourcePath.createPathElement().setLocation(baseDir); } else { log.verbose(baseDir + " doesn't contain any packages, dropping it.");
classpath.createPathElement().setPath(javaccJar.getAbsolutePath()); classpath.addJavaRuntime();
String[] pathElements = this.sourcePath.list(); for (String pathElement : pathElements) { File dir = new File(pathElement); sourcePath.createPathElement().setLocation(baseDir); } else { log.verbose(baseDir + " doesn't contain any packages, dropping it.");
javac.createSrc().createPathElement().setLocation(genstubs.destdir);
String[] pathElements = this.sourcePath.list(); for (String pathElement : pathElements) { File dir = new File(pathElement); sourcePath.createPathElement().setLocation(baseDir); } else { log.verbose(baseDir + " doesn't contain any packages, dropping it.");