public void updateIndexHtml() {

		System.out.println("xxxxxxxxxxx" + testProjectDir);

		String indexFileDir = testProjectDir + "report/index.html";
		System.out.println(indexFileDir);

		String coverageFile;

		if (!ConfigWizardPageOne.isAdb) {
			coverageFile = testProjectDir + "report/" + runNumber +"/coverage.html";
		} else {
			coverageFile = testProjectDir + "report/" + runNumber +"/index.html";
		}
		System.out.println(coverageFile);

		try {

			File cFile = new File(coverageFile);
			if (!cFile.exists()) return;
			String newCoverageFileString = readFile(coverageFile);


			File indexFile = new File(indexFileDir); 

			if (!indexFile.exists()) {
				indexFile.createNewFile();
				PrintWriter pw = new PrintWriter(indexFile);
				String temp = changePathForHref(newCoverageFileString);
				pw.write(temp);
				pw.flush();
				pw.close();

			} else {

				String indexFileString = readFile(indexFile);
				int start = header.length();
				int end = newCoverageFileString.indexOf("</BODY></HTML>");
				PrintWriter pw = new PrintWriter(indexFile);
				if (start < end ) {
					System.out.println(start + "lllllllllllllllllll " + end);
					String coverageStatsNeeded = newCoverageFileString.substring(start, end);
					pw.write(header);
					String temp = changePathForHref(coverageStatsNeeded);
					pw.write(temp);
					pw.write("<div style='height:20px;'></div>");
					pw.write(indexFileString.substring(start));
				}
				pw.flush();
				pw.close();

			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}