// a resource outside the workspace as well, in particular
// point to dependency jars outside of the
// workspace. All these cases must be handled.
IResource workspaceResource = null;
IPath resourcePath = new Path(localResourceLocation);
File publishableFile = resourcePath.toFile();
// First see if it is a full path to an existing file.
if (projectPath != null && publishableFile != null
&& publishableFile.exists()) {