for (int i = 0; i < eclipsePathList.length; i++) {
// For a given Eclipse installation, determine the code to be installed
EclipseInstallation eclipse = new EclipseInstallation(new File(eclipsePathList[i]));
IProductVersion eclipseTarget = adjustEclipseTarget(eclipse.getEclipseVersion());
if (options.isVerbose()) {
System.out.println("eclipse");
System.out.println(" found eclipse version = " + eclipse.getEclipseVersion());
System.out.println(" found product version = " + eclipse.getProductVersion());
System.out.println(" mapped version = " + eclipseTarget.getMajor() + "." + eclipseTarget.getMinor()
+ "." + eclipseTarget.getService());
System.out.println("processing " + eclipsePathList[i]);
System.out.println(" installDir = " + installDir);
System.out.println(" eclipse found version = ");
System.out.println(" targetDir = E-" + (eclipseTarget.getMajor() + "." + eclipseTarget.getMinor()));
System.out.println(" selfpath = " + selfPath);
System.out.println(" image = " + image);
}
for (int j = 0; j < subProducts.length; j++) {
SubProduct each = subProducts[j];
if (options.isVerbose()) {
System.out.println("processing " + each);
System.out.println(" each.instdir = " + each.getInstallDirName());
}
// Check to see if subproduct can be linked to this eclipse installation
// Allow each subproduct to determine whether they can link
// to this eclipse installation and what version should be linked
IProductVersion eachEclipseTarget = each.adjustEclipseTarget(image, eclipse, eclipseTarget, options);
if (eachEclipseTarget == null) {
if (options.isVerbose())
System.out.println(" cannot link " + each + " to " + eclipsePathList[i]);
continue;
}
if (options.isVerbose()) {
System.out.println("can link to " + eclipse.getProductDir().getAbsolutePath());
}
String eachEclipseTargetString = eachEclipseTarget.getMajor() + "." + eachEclipseTarget.getMinor();
String relInstallPath = each.getInstallDirName() + File.separator + "E-" + eachEclipseTargetString;
File installSubDir = new File(installDir, relInstallPath);
// Install the sub product if not already installed