storedPath = new File(installPath, data.getFileName()); String fileName; try { fileName = storedPath.getCanonicalPath(); } catch (IOException e) { fileName = storedPath.getAbsolutePath(); } data.setFileName(fileName);
data.setFileName(new FilePath(installPath + data.getFileName()).toString());
	protected void loadMetaDataFor(EclipseBundleData data, DataInputStream in, byte version) throws IOException {		byte flag = in.readByte();		if (flag == NULL)			return;		data.setLocation(readString(in, false));		data.setFileName(readString(in, false));		data.setSymbolicName(readString(in, false));		data.setVersion(Version.parseVersion(readString(in, false)));		data.setActivator(readString(in, false));		data.setAutoStart(in.readBoolean());		int exceptionsCount = in.readInt();		String[] autoStartExceptions = exceptionsCount > 0 ? new String[exceptionsCount] : null;		for (int i = 0; i < exceptionsCount; i++)			autoStartExceptions[i] = in.readUTF();		data.setAutoStartExceptions(autoStartExceptions);		data.hasPackageInfo = in.readBoolean();		data.buddyList = readString(in, false);		data.registeredBuddyList = readString(in, false);		data.setPluginClass(readString(in, false));		data.setClassPathString(readString(in, false));		data.setNativePaths(readString(in, false));		data.setExecutionEnvironment(readString(in, false));		data.setDynamicImports(readString(in, false));		data.setGeneration(in.readInt());		data.setStartLevel(in.readInt());		data.setStatus(in.readInt());		data.setReference(in.readBoolean());		data.setManifestTimeStamp(in.readLong());		data.setManifestType(in.readByte());		data.setLastModified(in.readLong());		data.setType(in.readInt());		// TODO should we rearrange the isRefernce data before the fileName data?		// this step is done at the end because the FileName data is read before the isReference data		if (data.isReference()) {			// fileName for bundles installed with reference URLs is stored relative to the install location			File storedPath = new File(data.getFileName());			if (!storedPath.isAbsolute())				storedPath = new File(installPath, data.getFileName());			String fileName;			try {				fileName = storedPath.getCanonicalPath();			} catch (IOException e) {				fileName = storedPath.getAbsolutePath();			}			data.setFileName(fileName);		}	}