/** * Construct an empty <code>Path</code>. * @param project the <code>Project</code> for this path. */ public Path(Project project) { setProject(project); }
/** * Add a source path to the source path used by this analyzer. The * elements in the given path contain the source files for the classes * being analyzed. Not all analyzers will use this information. * * @param sourcePath The Path instance specifying the source path * elements. */ @Override public void addSourcePath(Path sourcePath) { if (sourcePath == null) { return; } this.sourcePath.append(sourcePath); this.sourcePath.setProject(sourcePath.getProject()); }
/** * Add a classpath to the classpath being used by the analyzer. The * classpath contains the binary classfiles for the classes being * analyzed The elements may either be the directories or jar files.Not * all analyzers will use this information. * * @param classPath the Path instance specifying the classpath elements */ @Override public void addClassPath(Path classPath) { if (classPath == null) { return; } this.classPath.append(classPath); this.classPath.setProject(classPath.getProject()); }
/** * Adds a nested path * @param path a <code>Path</code> to be added to the path * @throws BuildException on error * @since Ant 1.6 */ public void add(Path path) throws BuildException { if (path == this) { throw circularReference(); } if (path.getProject() == null) { path.setProject(getProject()); } add((ResourceCollection) path); }
classpath.setProject(getProject()); this.loader = getProject().createClassLoader(classpath);
classpath.setProject(getProject());
classpath.setProject(getProject());
classpath.setProject(getProject());
classpath.setProject(getProject());
public void execute() throws BuildException { try { classpath.setProject(getProject()); Analyzer a = new Analyzer(); if(encoding!=null) a.setSourceEncoding(encoding); DirectoryScanner ds = getDirectoryScanner(dir); for (String f : ds.getIncludedFiles()) a.addSourceFile(new File(dir,f)); for (String p : classpath.list()) a.addClasspath(getProject().resolveFile(p)); a.setTabWidth(tabWidth); ParsedSourceSet pss = a.analyze(new DiagnosticPrinter()); addDependencies(pss.getDependencies()); FrameSetGenerator fsg = new FrameSetGenerator(pss); if(windowTitle!=null) fsg.setTitle(windowTitle); fsg.generateAll(destDir); } catch (IOException e) { throw new BuildException(e); } }
classpath.setProject(getProject());