/** * Adds the components on the given path which exist to this * Path. Components that don't exist aren't added. * * @param source - source path whose components are examined for existence */ public void addExisting(Path source) { addExisting(source, false); }
/** * Builds the upgrademodulepath. * @return the upgrademodulepath * @since 1.9.7 */ protected Path getUpgrademodulepath() { final Path ump = new Path(getProject()); if (upgrademodulepath != null) { ump.addExisting(upgrademodulepath); } return ump; }
/** * Builds the modulepath. * @return the modulepath * @since 1.9.7 */ protected Path getModulepath() { final Path mp = new Path(getProject()); if (modulepath != null) { mp.addExisting(modulepath); } return mp; }
result.addExisting(p, true); result.addExisting(p, true); result.addExisting(this); result.addExisting(this); Project.MSG_WARN); result.addExisting(this); result.addExisting(p, true);
classpath.addExisting((new Path(getProject())).concatSystemClasspath("last"));
addExisting(systemBootClasspath); addExisting(new Path(null, System.getProperty("java.home") + File.separator + "lib" addExisting(new Path(null, System.getProperty("java.home") + File.separator + "jre" addExisting(new Path(null, System.getProperty("java.home") + File.separator + "lib" + File.separator + secJar + ".jar")); addExisting(new Path(null, System.getProperty("java.home") + File.separator + ".." addExisting(new Path(null, System.getProperty("java.home") + File.separator + "lib" addExisting(new Path(null, System.getProperty("java.home") + File.separator + ".." + File.separator + "Classes" + File.separator + "classes.jar")); addExisting(new Path(null, System.getProperty("java.home")
/** * Builds the compilation classpath. * @return the compilation class path */ protected Path getCompileClasspath() { final Path classpath = new Path(project); // add dest dir to classpath so that previously compiled and // untouched classes are on classpath if (destDir != null && getJavac().isIncludeDestClasses()) { classpath.setLocation(destDir); } // Combine the build classpath with the system classpath, in an // order determined by the value of build.sysclasspath Path cp = compileClasspath; if (cp == null) { cp = new Path(project); } if (includeAntRuntime) { classpath.addExisting(cp.concatSystemClasspath("last")); } else { classpath.addExisting(cp.concatSystemClasspath("ignore")); } if (includeJavaRuntime) { classpath.addJavaRuntime(); } return classpath; }
sourceDirs.addExisting(sourcePath);
/** * Builds the compilation classpath. * @return the classpath */ protected Path getCompileClasspath() { Path classpath = new Path(attributes.getProject()); // add dest dir to classpath so that previously compiled and // untouched classes are on classpath classpath.setLocation(attributes.getBase()); // Combine the build classpath with the system classpath, in an // order determined by the value of build.sysclasspath Path cp = attributes.getClasspath(); if (cp == null) { cp = new Path(attributes.getProject()); } if (attributes.getIncludeantruntime()) { classpath.addExisting(cp.concatSystemClasspath("last")); } else { classpath.addExisting(cp.concatSystemClasspath("ignore")); } if (attributes.getIncludejavaruntime()) { classpath.addJavaRuntime(); } return classpath; }
sourceDirs.addExisting(sourcePath);
classpath.addExisting((new Path(getProject())).concatSystemClasspath("last"));
sourceDirs.addExisting(sourcePath);
sourceDirs.addExisting(sourcePath);
sourceDirs.addExisting(sourcePath);
sourceDirs.addExisting(sourcePath);
classpath.addExisting((new Path(getProject())).concatSystemClasspath("last"));
if ( includeAntRuntime ) { classpath.addExisting ( ( new Path ( getProject ( ) ) ).concatSystemClasspath ( "last" ) ) ; } if ( includeJavaRuntime ) { classpath.addJavaRuntime ( ) ; } final ArrayList commandLineList = new ArrayList ( ) ;
classpath.addExisting((new Path(getProject())).concatSystemClasspath("last"));
sourceDirs.addExisting(sourcePath);
classpath.addExisting((new Path(getProject())).concatSystemClasspath("last"));