Community
Participate
Working Groups
Build: Eclipse R2.0 The PluginImportOperation performs a delete and then a create as it is importing resources. The can confuse VCMs which watch the filesystem. A possible fix for this is the following code: private void createJarPackagerFiles(IFolder sourceFolder, IFile jarFile) throws CoreException { IProject project = sourceFolder.getProject(); IFolder scriptsFolder = project.getFolder("scripts"); if (!scriptsFolder.exists()) { scriptsFolder.create(true, true, null); } IFile descriptorFile = scriptsFolder.getFile(sourceFolder.getName() + ".jardesc"); String string = constructJarPackagerFileContent( sourceFolder, jarFile, descriptorFile.getFullPath()); if (descriptorFile.exists()) { descriptorFile.setContents( new ByteArrayInputStream(string.getBytes()), true, true, null); } else { descriptorFile.create( new ByteArrayInputStream(string.getBytes()), true, null); } }
See also http://bugs.eclipse.org/bugs/show_bug.cgi?id=20036
Fixed. Thanks.