This commit was manufactured by cvs2svn to create tag
'pre_sourcefragmentfix'.

Sprout from master 2003-06-26 15:16:49 UTC sdimitro 'changes for new pde build mechanism'
Delete:
    bundles/org.eclipse.build.tools/src/org/eclipse/releng/BuildProperties.java
    bundles/org.eclipse.build.tools/src/org/eclipse/releng/CompileErrorCheck.java
    bundles/org.eclipse.build.tools/src/org/eclipse/releng/FileTimeFilter.java
    bundles/org.eclipse.build.tools/src/org/eclipse/releng/Mailer.java
    bundles/org.eclipse.build.tools/src/org/eclipse/releng/SiteCleaner.java
    bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/ContributionBuilder.java
    bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/TestVersionTracker.java
diff --git a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/BuildProperties.java b/bundles/org.eclipse.build.tools/src/org/eclipse/releng/BuildProperties.java
deleted file mode 100644
index 9e9c8e9..0000000
--- a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/BuildProperties.java
+++ /dev/null
@@ -1,272 +0,0 @@
-package org.eclipse.releng;
-
-import java.io.*;
-import java.util.Properties;
-
-/**
- * Class that stores build identification information taken from monitor.
- * properties as String objects
- */
-public class BuildProperties {
-	// recipients key value setting.  Comma separated list of email addresses of those who should
-	// receive build information
-	private String recipientList = "";
-
-	// email address of the sender
-	private String sender = "";
-	// mail server name
-	private String host = "";
-
-	// default name of the build log file used with listener
-	private String logFile = "index.php";
-
-	// the prefix prepended to the subject of build related emails
-	private String buildSubjectPrefix="[build]";
-
-	// the build id,  typically <buildType><build date>	
-	private String buildid;
-	// the date and time of the build
-	private String timestamp;
-	// the name of the directory containing the builds, typically <buildType>-<buildType><build date>-<timestamp>
-	private String buildLabel;
-
-	// the main download URL
-	private String downloadUrl;
-
-	// the Object that holds the key value pairs in monitor.properties
-	private Properties buildProperties;
-
-	public BuildProperties() {
-		buildProperties = new Properties();
-		// retrieve information from monitor.properties file.
-		//  This file should reside in the same directory as the startup.jar at build time.
-		try {
-			buildProperties.load(
-				new FileInputStream(new File("monitor.properties")));
-
-			try {
-					buildSubjectPrefix = buildProperties.get("buildSubjectPrefix").toString();
-				} catch (NullPointerException e) {
-					System.out.println(
-						"Value for buildSubjectPrefix not found in monitor.properties");
-					System.out.println(
-							"Default value, buildSubjectPrefix=[build] will be used.");
-
-				}
-
-			try {
-					downloadUrl = buildProperties.get("downloadUrl").toString();
-				} catch (NullPointerException e) {
-					System.out.println(
-						"Value for downloadUrl not found in monitor.properties");
-				}
-				
-			try {
-				buildid = buildProperties.get("buildid").toString();
-			} catch (NullPointerException e) {
-				System.out.println(
-					"Value for buildid not found in monitor.properties");
-			}
-
-			try {
-				buildLabel = buildProperties.get("buildLabel").toString();
-			} catch (NullPointerException e) {
-				System.out.println(
-					"Value for buildLabel not found in monitor.properties");
-			}
-			try {
-				timestamp = buildProperties.get("timestamp").toString();
-			} catch (NullPointerException e) {
-				System.out.println(
-					"Value for timestamp not found in monitor.properties");
-			}
-
-			try {
-				recipientList = buildProperties.get("recipients").toString();
-			} catch (NullPointerException e) {
-				System.out.println(
-					"Value for recipients not found in monitor.properties");
-
-			}
-
-			try {
-				sender = buildProperties.get("sender").toString();
-			} catch (NullPointerException e) {
-				System.out.println(
-					"Value for sender not found in monitor.properties");
-			}
-
-			try {
-				host = buildProperties.get("host").toString();
-			} catch (NullPointerException e) {
-				System.out.println(
-					"Value for host not found in monitor.properties");
-			}
-
-			try {
-				logFile = buildProperties.get("log").toString();
-			} catch (NullPointerException e) {
-				System.out.println(
-					"Value for log not found in monitor.properties");
-				System.out.println(
-					"Default value, log=index.php will be used.");
-				
-			}
-
-		} catch (IOException e) {
-			e.printStackTrace();
-		}
-
-	}
-
-
-	public static void main(String args[]) {
-		BuildProperties buildProperties = new BuildProperties();
-	}
-
-
-	/**
-	 * Returns the buildLabel.
-	 * @return String
-	 */
-	public String getBuildLabel() {
-		return buildLabel;
-	}
-
-	/**
-	 * Sets the buildLabel.
-	 * @param buildLabel The buildLabel to set
-	 */
-	public void setBuildLabel(String buildLabel) {
-		this.buildLabel = buildLabel;
-	}
-
-	/**
-	 * Returns the logFile.
-	 * @return String
-	 */
-	public String getLogFile() {
-		return logFile;
-	}
-
-	/**
-	 * Sets the logFile.
-	 * @param logFile The logFile to set
-	 */
-	public void setLogFile(String logFile) {
-		this.logFile = logFile;
-	}
-
-	/**
-	 * Returns the buildid.
-	 * @return String
-	 */
-	public String getBuildid() {
-		return buildid;
-	}
-
-	/**
-	 * Returns the timestamp.
-	 * @return String
-	 */
-	public String getTimestamp() {
-		return timestamp;
-	}
-
-	/**
-	 * Sets the buildid.
-	 * @param buildid The buildid to set
-	 */
-	public void setBuildid(String buildid) {
-		this.buildid = buildid;
-	}
-
-	/**
-	 * Sets the timestamp.
-	 * @param timestamp The timestamp to set
-	 */
-	public void setTimestamp(String timestamp) {
-		this.timestamp = timestamp;
-	}
-
-	/**
-	 * Returns the host.
-	 * @return String
-	 */
-	public String getHost() {
-		return host;
-	}
-
-	/**
-	 * Returns the recipientList.
-	 * @return String
-	 */
-	public String getRecipientList() {
-		return recipientList;
-	}
-
-	/**
-	 * Returns the sender.
-	 * @return String
-	 */
-	public String getSender() {
-		return sender;
-	}
-
-	/**
-	 * Sets the host.
-	 * @param host The host to set
-	 */
-	public void setHost(String host) {
-		this.host = host;
-	}
-
-	/**
-	 * Sets the recipientList.
-	 * @param recipientList The recipientList to set
-	 */
-	public void setRecipientList(String recipientList) {
-		this.recipientList = recipientList;
-	}
-
-	/**
-	 * Sets the sender.
-	 * @param sender The sender to set
-	 */
-	public void setSender(String sender) {
-		this.sender = sender;
-	}
-
-	/**
-	 * Returns the buildSubjectPrefix.
-	 * @return String
-	 */
-	public String getBuildSubjectPrefix() {
-		return buildSubjectPrefix;
-	}
-
-	/**
-	 * Sets the buildSubjectPrefix.
-	 * @param buildSubjectPrefix The buildSubjectPrefix to set
-	 */
-	public void setBuildSubjectPrefix(String buildSubjectPrefix) {
-		this.buildSubjectPrefix = buildSubjectPrefix;
-	}
-
-	/**
-	 * Returns the downloadUrl.
-	 * @return String
-	 */
-	public String getDownloadUrl() {
-		return downloadUrl;
-	}
-
-	/**
-	 * Sets the downloadUrl.
-	 * @param downloadUrl The downloadUrl to set
-	 */
-	public void setDownloadUrl(String downloadUrl) {
-		this.downloadUrl = downloadUrl;
-	}
-
-}
diff --git a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/CompileErrorCheck.java b/bundles/org.eclipse.build.tools/src/org/eclipse/releng/CompileErrorCheck.java
deleted file mode 100644
index 197445c..0000000
--- a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/CompileErrorCheck.java
+++ /dev/null
@@ -1,137 +0,0 @@
-package org.eclipse.releng;
-
-/**
- * A custom Ant task that finds compile logs containing compile
- * errors.  The compile logs with errors are sent as email attachments using
- * information in monitor.properties.
- */
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Task;
-import java.util.Vector;
-import java.util.Enumeration;
-import java.io.*;
-
-public class CompileErrorCheck extends Task {
-
-	//directory containing of build source, parent of features and plugins
-	private String install = "";
-
-	//keep track of compile logs containing errors
-	private Vector logsWithErrors;
-
-	public CompileErrorCheck() {
-		logsWithErrors = new Vector();
-	}
-
-	public void execute() throws BuildException {
-		findLogs(install);
-		sendNotice();
-	}
-
-	// test
-	public static void main(String[] args) {
-		CompileErrorCheck checker = new CompileErrorCheck();
-		checker.install="/builds/featureBuilder/src";
-		checker.execute();
-	}
-
-	private void findLogs(String file) {
-
-		File aFile = new File(file);
-
-		// basis case
-		if (aFile.isFile()) {
-			if (aFile.getAbsolutePath().endsWith(".jar.bin.log"))
-				storeErrors(read(aFile), aFile);
-		} else {
-			//recurse into directories looking for and reading compile logs
-			File files[] = aFile.listFiles();
-
-			for (int i = 0; i < files.length; i++) {
-				if (files[i].isFile()&&files[i].getAbsolutePath().endsWith(".jar.bin.log"))
-					storeErrors(read(files[i]), files[i]);
-				else
-					findLogs(files[i].getAbsolutePath());
-			}
-		}
-	}
-
-	private String read(File file) {
-		//read the contents of the log file, and return contents as a String
-		BufferedReader in = null;
-		String aLine;
-		String contents = "";
-
-		try {
-			in = new BufferedReader(new FileReader(file));
-		} catch (FileNotFoundException e) {
-		}
-
-		try {
-			while ((aLine = in.readLine()) != null) {
-				contents = contents.concat(aLine);
-			}
-		} catch (IOException e) {
-		}
-
-		return contents;
-	}
-
-	private void storeErrors(String s, File file) {
-		//set aside logs containing compile errors
-		if ((s.indexOf("error", s.indexOf("problem (")) != -1)
-			&& ((s.indexOf("error", s.indexOf("problems ("))) != -1)){
-			logsWithErrors.add(file);
-			}
-	}
-
-	private void sendNotice() {
-		//send email notification that there are compile errors in the build
-		//send the logs as attachments
-		Enumeration enumeration = logsWithErrors.elements();
-
-		if (logsWithErrors.size() > 0) {
-			try{
-			
-			Mailer mailer = new Mailer();
-			String [] logFiles = new String [logsWithErrors.size()];
-
-			int i=0;
-				
-			while (enumeration.hasMoreElements()) {
-				logFiles[i++]=((File) enumeration.nextElement()).getAbsolutePath();
-			}
-
-			mailer.sendMultiPartMessage("Compile errors in build", "Compile errors in build.  See attached compile logs.", logFiles);
-			} catch (NoClassDefFoundError e){
-				while (enumeration.hasMoreElements()) {
-					System.out.println("Compile errors detected in "+((File) enumeration.nextElement()).getName());
-				}
-
-				System.out.println("Unable to send email notice of compile errors.");
-				System.out.println("The j2ee.jar may not be on the Ant classpath.");
-				
-			}
-
-		}
-
-	}
-
-	/**
-	 * Gets the install.
-	 * @return Returns a String
-	 */
-	public String getInstall() {
-		return install;
-	}
-
-	/**
-	 * Sets the install.
-	 * @param install The install to set
-	 */
-	public void setInstall(String install) {
-		this.install = install;
-	}
-
-}
\ No newline at end of file
diff --git a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/FileTimeFilter.java b/bundles/org.eclipse.build.tools/src/org/eclipse/releng/FileTimeFilter.java
deleted file mode 100644
index 4f406c0..0000000
--- a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/FileTimeFilter.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package org.eclipse.releng;
-
-import java.io.File;
-import java.io.FileFilter;
-import java.util.Date;
-
-/**
- * @author droberts
- *
- * To change this generated comment edit the template variable "typecomment":
- * Window>Preferences>Java>Templates.
- * To enable and disable the creation of type comments go to
- * Window>Preferences>Java>Code Generation.
- */
-public class FileTimeFilter implements FileFilter {
-	
-	private long age;
-	private long time;
-	
-	public FileTimeFilter() {
-		this.time = new Date().getTime();
-	}
-	
-	/**
-	 * Constructor DirectoryTimeFilter.
-	 * @param i
-	 */
-	public FileTimeFilter(long i) {
-		super();
-		this.time = new Date().getTime();
-		this.age = i;
-	}
-
-
-	/**
-	 * @see java.io.FileFilter#accept(java.io.File)
-	 */
-	public boolean accept(File pathname) {
-		
-		long lastModified = pathname.lastModified();
-		return (time > lastModified + age);
-	}
-
-	/**
-	 * Returns the age.
-	 * @return int
-	 */
-	public long getAge() {
-		return age;
-	}
-
-	/**
-	 * Sets the age.
-	 * @param age The age to set
-	 */
-	public void setAge(long age) {
-		this.age = age;
-	}
-}
diff --git a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/Mailer.java b/bundles/org.eclipse.build.tools/src/org/eclipse/releng/Mailer.java
deleted file mode 100644
index 1442ef1..0000000
--- a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/Mailer.java
+++ /dev/null
@@ -1,194 +0,0 @@
-package org.eclipse.releng;
-
-/**
- * A Class that sends build related email messages.  host, sender, recipient and
- * build related information set in monitor.properties
- */
-
-import javax.mail.*;
-import javax.mail.internet.*;
-import java.util.StringTokenizer;
-import javax.activation.*;
-import java.util.Properties;
-
-public class Mailer {
-
-	// flag that determines whether or not to send mail
-	boolean sendMail = true;
-
-	// the Object that holds the key value pairs in monitor.properties
-	private BuildProperties buildProperties;
-
-	//convert the comma separated list of email addressed into an array of Address objects
-	private Address[] getAddresses() {
-		int i = 0;
-		StringTokenizer recipients = new StringTokenizer(buildProperties.getRecipientList(), ",");
-		Address[] addresses = new Address[recipients.countTokens()];
-
-		while (recipients.hasMoreTokens()) {
-			try {
-				addresses[i++] = new InternetAddress(recipients.nextToken());
-			} catch (AddressException e) {
-				System.out.println("Unable to create address");
-			}
-		}
-		return addresses;
-	}
-
-	public Mailer(){
-		buildProperties = new BuildProperties();
-		if (buildProperties.getHost().equals("")||buildProperties.getSender().equals("")||buildProperties.getRecipientList().equals("")){
-			sendMail=false;
-		}
-	}
-
-
-	public static void main(String args[]) {
-		Mailer myMailer = new Mailer();
-	}
-
-	public void sendMessage(String aSubject, String aMessage) {
-		if (aSubject == null || aMessage == null || sendMail == false){
-			printEmailFailureNotice(aSubject,aMessage);
-		}
-
-		// Get system properties
-		Properties props = System.getProperties();
-
-		// Setup mail server
-		props.put("mail.smtp.host", buildProperties.getHost());
-
-		// Get session
-		Session session = Session.getDefaultInstance(props, null);
-
-		// Define message
-		MimeMessage message = new MimeMessage(session);
-
-		try {
-			
-			// Set the from address
-			message.setFrom(new InternetAddress(buildProperties.getSender()));
-
-			// Set the to address
-			message.addRecipients(Message.RecipientType.TO, getAddresses());
-
-			// Set the subject
-			message.setSubject(buildProperties.getBuildSubjectPrefix()+
-						"Build "
-							+ buildProperties.getBuildid()
-							+ " (Timestamp:  "
-							+ buildProperties.getTimestamp()
-							+ "):"
-							+ aSubject);
-
-			// Set the content
-			message.setText(
-				"Build "
-					+ buildProperties.getBuildid()
-					+ " (Timestamp: "
-					+ buildProperties.getTimestamp()
-					+ "):  "
-					+ aMessage);
-
-			// Send message
-			Transport.send(message);
-
-		} catch (AddressException e) {
-			e.printStackTrace();
-		} catch (MessagingException e) {
-			e.printStackTrace();
-		}
-	}
-
-	public void sendMultiPartMessage(
-	// a method for sending mail with attachments
-	String aSubject, String aMessage, String[] attachments) {
-		if (aSubject == null || aMessage == null || sendMail == false){
-			printEmailFailureNotice(aSubject,aMessage);
-		}
-
-		// Get system properties
-		Properties props = System.getProperties();
-
-		// Setup mail server
-		props.put("mail.smtp.host", buildProperties.getHost());
-
-		// Get session
-		Session session = Session.getDefaultInstance(props, null);
-
-		// Define message
-		MimeMessage message = new MimeMessage(session);
-
-		Multipart mp = new MimeMultipart();
-
-		try {
-			// Set the from address
-			message.setFrom(new InternetAddress(buildProperties.getSender()));
-
-			// Set the to address
-			message.addRecipients(Message.RecipientType.TO, getAddresses());
-
-			// Set the subject
-			message.setSubject(buildProperties.getBuildSubjectPrefix()+
-			"Build "
-				+ buildProperties.getBuildid()
-				+ " (Timestamp:  "
-				+ buildProperties.getTimestamp()
-				+ "):"
-				+ aSubject);
-
-			// create and fill the first message part 
-			MimeBodyPart part = new MimeBodyPart();
-			part.setText(
-				"Build "
-					+ buildProperties.getBuildid()
-					+ " (Timestamp: "
-					+ buildProperties.getTimestamp()
-					+ "):  "
-					+ aMessage);
-			mp.addBodyPart(part);
-
-			//for each attachment create new message part
-			for (int i = 0; i < attachments.length; i++) {
-				MimeBodyPart attachmentPart = new MimeBodyPart();
-				// attach the file to the message 
-				FileDataSource attachment = new FileDataSource(attachments[i]);
-				attachmentPart.setDataHandler(new DataHandler(attachment));
-				attachmentPart.setFileName(attachments[i]);
-				mp.addBodyPart(attachmentPart);
-			}
-
-			// add the Multipart to the message 
-			message.setContent(mp);
-
-			Transport.send(message);
-
-		} catch (AddressException e) {
-		} catch (MessagingException e) {
-		}
-	}
-
-	private void printEmailFailureNotice(String aSubject, String aMessage){
-		System.out.println("Email failed.  Settings:");
-		System.out.println("\nhost="+buildProperties.getHost()+"\nsender="+buildProperties.getSender()+"\nrecipients="+buildProperties.getRecipientList());
-		System.out.println("\nSubject="+aSubject+"\nMessage="+aMessage);
-		return;
-	}
-
-	/**
-	 * Returns the buildProperties.
-	 * @return BuildProperties
-	 */
-	public BuildProperties getBuildProperties() {
-		return buildProperties;
-	}
-
-	/**
-	 * Sets the buildProperties.
-	 * @param buildProperties The buildProperties to set
-	 */
-	public void setBuildProperties(BuildProperties buildProperties) {
-		this.buildProperties = buildProperties;
-	}
-
-}
diff --git a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/SiteCleaner.java b/bundles/org.eclipse.build.tools/src/org/eclipse/releng/SiteCleaner.java
deleted file mode 100644
index 7213d4a..0000000
--- a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/SiteCleaner.java
+++ /dev/null
@@ -1,132 +0,0 @@
-package org.eclipse.releng;
-
-import java.io.File;
-import java.io.FileFilter;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Task;
-
-/**
- * A custome ant task that will delete all child files and directories older
- * than a given number of minutes.
- *
- * The caller must set the directory, the number of minutes as the cut off
- * and they just set realDelete to true.  (If realDelete is not explicitly
- * set then the task will just print a list of the files it would delete and
- * no deletion will occur
- * 
- * The parent directory is not deleted but all contained files *and* directories
- * older than the given number of minutes is.
- */
-public class SiteCleaner  extends Task {
-	private String directoryName = File.separator + "bogus";  // for protection
-	private int ageInMinutes = 2 * 24 * 60;
-	private boolean realDelete = false;  // for protection
-	
-	public static void main(String[] args) {
-		// For testing only.
-		
-		SiteCleaner instance = new SiteCleaner();
-		instance.setAgeInMinutes(0);	//18
-		instance.setRealDelete(true);
-		
-		instance.setDirectoryName("d:\\builds\\transfer\\files\\master\\downloads\\drops");
-		instance.execute();
-		instance.setDirectoryName("d:\\builds\\transfer\\files\\zrh");
-		instance.execute();
-		instance.setDirectoryName("d:\\builds\\transfer\\files\\snz");
-		instance.execute();
-	}
-
-	public void execute() throws BuildException {
-	
-		FileFilter aFilter = new FileTimeFilter(this.getAgeInMinutes() * 60 * 1000);
-		File root = new File(getDirectoryName());
-		File[] files = root.listFiles(aFilter);
-		if (files == null) {
-			return;
-		}
-		for (int i = 0; i < files.length; i++) {
-			File file = files[i];
-			if (isRealDelete()) {
-				delete(file);
-			} else {
-				testDelete(file);
-			}
-		}		
-	}
-	
-	/**
-	 * Method testDelete.
-	 * @param file
-	 */
-	private void testDelete(File file) {
-		System.out.println("Delete: " + file.getPath());
-		System.out.println("isDirectory: " + file.isDirectory());
-	}
-
-	public static void delete(File file) {
-		
-		if(!file.exists()) {
-			return;
-		}
-		
-		if(file.isDirectory()) {
-			String[] children = file.list();
-			for(int i = 0; i < children.length; ++i) {
-				File child = new File(file, children[i]);
-				delete(child);
-			}
-		}
-		file.delete();	
-	}
-	
-	/**
-	 * Returns the directoryName.
-	 * @return String
-	 */
-	public String getDirectoryName() {
-		return directoryName;
-	}
-
-	/**
-	 * Sets the directoryName.
-	 * @param directoryName The directoryName to set
-	 */
-	public void setDirectoryName(String directoryName) {
-		this.directoryName = directoryName;
-	}
-
-	/**
-	 * Returns the ageInMinutes.
-	 * @return int
-	 */
-	public int getAgeInMinutes() {
-		return ageInMinutes;
-	}
-
-	/**
-	 * Sets the ageInMinutes.
-	 * @param ageInMinutes The ageInMinutes to set
-	 */
-	public void setAgeInMinutes(int ageInMinutes) {
-		this.ageInMinutes = ageInMinutes;
-	}
-
-	/**
-	 * Returns the realDelete.
-	 * @return boolean
-	 */
-	public boolean isRealDelete() {
-		return realDelete;
-	}
-
-	/**
-	 * Sets the realDelete.
-	 * @param realDelete The realDelete to set
-	 */
-	public void setRealDelete(boolean realDelete) {
-		this.realDelete = realDelete;
-	}
-
-}
diff --git a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/ContributionBuilder.java b/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/ContributionBuilder.java
deleted file mode 100644
index a373bd8..0000000
--- a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/ContributionBuilder.java
+++ /dev/null
@@ -1,161 +0,0 @@
-package org.eclipse.releng.generators;
-
-/**
- * This application writes a single file containg build entries from a number of
- * .map files
- */
-
-import java.io.*;
-import java.util.*;
-import org.apache.tools.ant.Task;
-
-public class ContributionBuilder extends Task {
-
-	//stores each line read in from a build input
-	private Vector entries;
-
-	//stores entries with versions replaced by HEAD
-	private Vector bufferedEntries;
-
-	// absolute path to directory containing all build contribution directories
-	private String containerDirectory;
-
-	// "N" for nightly or "I" for integration build
-	private String buildType;
-
-	// absolute path to where full directory.txt should be written
-	private String masterDirectory;
-
-	public void setBuildtype(String s) {
-		buildType = s;
-	}
-
-	public void setMasterdirectory(String s) {
-		masterDirectory = s;
-	}
-
-	public void setContainerdirectory(String s) {
-		containerDirectory = s;
-	}
-
-	public ContributionBuilder() {}
-
-	public void getEntries(File file) {
-		//find *.map contained in a directory and store entries in a master directory.txt file
-		if (file.isDirectory()) {
-			for (int i = 0; i < file.listFiles().length; i++) {
-				getEntries(file.listFiles()[i]);
-			}
-		} else {
-			if (file.getName().endsWith(".map"))
-				read(file);
-		}
-	}
-
-	private void read(File file) {
-		try {
-			BufferedReader directoryReader = new BufferedReader(new FileReader(file));
-			String str = directoryReader.readLine();
-			while (str != null) {
-				if (!str.equals("")) {
-					entries.add(str);
-				}
-				str = directoryReader.readLine();
-			}
-			directoryReader.close();
-
-		} catch (FileNotFoundException e) {
-			System.out.println("Unable to find file: " + file.getAbsolutePath());
-		} catch (IOException e) {
-			System.out.println("Problems reading file: " + file.getAbsolutePath());
-		}
-
-	}
-
-	private void write(File directory, String buildType) throws IOException {
-		if (directory.exists())
-			directory.delete();
-
-		PrintWriter out = new PrintWriter(new FileWriter(directory));
-
-		Enumeration buildEntries = entries.elements();
-
-		if (!buildType.equals("N")) {
-			while (buildEntries.hasMoreElements()) {
-				String s = (String) buildEntries.nextElement();
-				if (s.startsWith("#")) {
-					continue;
-				}
-				out.println(s);
-			}
-			out.close();
-		
-		} else {
-			writeDirectoryforDailyBuilds(directory, out);
-		}
-	}
-	
-	private void writeDirectoryforDailyBuilds(File directory, PrintWriter out){
-		boolean useAsIs = false;
-		Enumeration buildEntries = entries.elements();
-		
-		while (buildEntries.hasMoreElements()) {
-
-				String originalEntry = (String) buildEntries.nextElement();
-				StringBuffer bufferedEntry = new StringBuffer(originalEntry);
-
-				if (originalEntry.startsWith("!start")) {
-					useAsIs = true;
-					continue;
-				} else if (originalEntry.startsWith("!end")) {
-					useAsIs = false;
-					continue;
-				} else if (originalEntry.startsWith("#")) {
-					continue;
-				} else {
-					if (useAsIs) {
-						out.println(originalEntry);
-						continue;
-					} else {
-						int start = originalEntry.indexOf("=");
-						int end = originalEntry.indexOf(",", start);
-
-						if (start != -1 && end != -1) {
-							String newEntry = new String(bufferedEntry.replace(start + 1, end, "HEAD"));
-							out.println(newEntry);
-						} else {
-							out.println(originalEntry);
-						}
-					}
-				}
-			}
-			out.close();
-		}
-	
-	
-	
-
-	public void execute() {
-		ContributionBuilder a = new ContributionBuilder();
-		File file = new File(containerDirectory);
-		entries = new Vector();
-		getEntries(file);
-
-		try {
-			write(new File(masterDirectory), buildType);
-		} catch (IOException e) {
-			System.out.println("Unable to create directory.txt");
-		}
-	}
-
-	//test
-	public static void main(String args[]) {
-		ContributionBuilder a = new ContributionBuilder();
-
-		a.setContainerdirectory("D:\\workspaces\\builderfixing\\org.eclipse.releng");
-		a.setBuildtype("I");
-		a.setMasterdirectory("d://master.txt");
-		a.execute();
-	}
-
-}
\ No newline at end of file
diff --git a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/TestVersionTracker.java b/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/TestVersionTracker.java
deleted file mode 100644
index 224c2b7..0000000
--- a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/TestVersionTracker.java
+++ /dev/null
@@ -1,96 +0,0 @@
-package org.eclipse.releng.generators;
-
-/**
- * This class finds the version of a feature, plugin, or fragment in a given
- * build source tree.
- */
-
-import org.xml.sax.Attributes;
-import org.xml.sax.helpers.DefaultHandler;
-import org.apache.xerces.parsers.SAXParser;
-import org.xml.sax.SAXException;
-import java.io.*;
-import java.util.Hashtable;
-import java.util.Enumeration;
-
-public class TestVersionTracker extends DefaultHandler {
-
-	private String installDirectory;
-	private Hashtable elements;
-	private SAXParser parser;
-	
-	//test
-	public static void main(String[] args) {
-		TestVersionTracker Tracker =
-			new TestVersionTracker(args[0]);
-		Tracker.parse(
-			Tracker.installDirectory
-				+ "/features/org.eclipse.sdk.tests-feature/feature.xml");
-			Tracker.writeProperties(args[1], true);
-	}
-
-	public TestVersionTracker(String install) {
-		//  Create a Xerces SAX Parser
-        parser = new SAXParser();
-        
-        //  Set Content Handler
-        parser.setContentHandler (this);
-		
-		// directory containing the source for a given build
-		installDirectory = install;
-
-		//  instantiate hashtable that will hold directory names with versions for elements
-		elements = new Hashtable();
-	}
-
-    public void parse(String xmlFile){
-			
-	    //  Parse the Document      
-        try {
-            parser.parse(xmlFile);
-        } catch (SAXException e) {
-            System.err.println (e);
-        } catch (IOException e) {
-            System.err.println (e);
-          
-        }
-    }
-
-	//  Start Element Event Handler
-	public void startElement(
-		String uri,
-		String local,
-		String qName,
-		Attributes atts) {
-
-		String element = atts.getValue("id");
-		String version = atts.getValue("version");
-
-		if ((local.equals("plugin") || local.equals("fragment"))
-			&& (new File(installDirectory + "/plugins/" + element + "/test.xml").exists())) {
-				elements.put(element,element+"_"+version);
-		} else if (local.equals("feature"))
-				elements.put(element+"-feature",element+"_"+version);
-	}
-
-	public void writeProperties(String propertiesFile,boolean append){
-		try{
-			
-		PrintWriter writer = new PrintWriter(new FileWriter(propertiesFile,append));
-				
-			Enumeration keys = elements.keys();
-
-			while (keys.hasMoreElements()){
-				Object key = keys.nextElement();
-				writer.println(key.toString()+"="+elements.get(key).toString());
-				writer.flush();
-			}
-		
-		} catch (IOException e){
-			System.out.println("Unable to write to file "+propertiesFile);
-		}
-		
-		
-	}
-
-}