if (srcFile.startsWith(".")) { if (srcFile.length() == 1) return projectFileName; String slash = System.getProperty("file.separator"); String base = new File(projectFileName).getParent(); if (base.endsWith(slash)) base = base.substring(0,base.length()-1); return base + srcFile.substring(1);
File file = new File(fileName);  if (!file.isAbsolute()) {   File projectFile = new File(projectFileName); if (projectFile.isAbsolute()) {  String base = new File(projectFileName).getParent();   fileName = new File(base, fileName).getCanonicalPath(); }
	private String convertToAbsolute(String srcFile) {/*		// At present relative paths are only calculated if the fileName is		// below the project file. This need not be the case, and we could use ..		// syntax to move up the tree. (To Be Added)		if (srcFile.startsWith(".")) {			if (srcFile.length() == 1)				return projectFileName;			String slash = System.getProperty("file.separator");			String base = new File(projectFileName).getParent();			if (base.endsWith(slash))				base = base.substring(0,base.length()-1);			return base + srcFile.substring(1);		}		return srcFile;*/		return new File(srcFile).getAbsolutePath();	}