Index: DefaultAttributes.java =================================================================== RCS file: /cvs/openide/src/org/openide/filesystems/DefaultAttributes.java,v retrieving revision 1.52 diff -r1.52 DefaultAttributes.java 22a23 > import org.openide.util.Utilities; 155c156,169 < if (size == 1) { --- > if (size == 1) { > // In NB 3.2.x for OpenVMS, we had to use "_nbattrs." as a attribute file. > // However, OpenVMS now supports a file name beginning with "." > // So we now have to change the existing "_nbattrs." file into ".nbattrs" > // > if (Utilities.getOperatingSystem () == Utilities.OS_VMS && arr[0] != null && f != null) { > if (arr[0].equalsIgnoreCase ("_nbattrs.")) { > try { > renameVMSAttrFile (f); > } catch (IOException ioe) {} > arr[0] = new String (ATTR_NAME_EXT_XML); > } > } > 164a179,191 > // In NB 3.2.x for OpenVMS, we had to use "_nbattrs." as a attribute file. > // However, OpenVMS now supports a file name beginning with "." > // So we now have to change the existing "_nbattrs." file into ".nbattrs" > // > if (Utilities.getOperatingSystem () == Utilities.OS_VMS && arr[i] != null && f != null) { > if (arr[i].equalsIgnoreCase ("_nbattrs.")) { > try { > renameVMSAttrFile (f); > } catch (IOException ioe) {} > arr[i] = new String (ATTR_NAME_EXT_XML); > } > } > 174a202,235 > /** Renames the attribute file for OpenVMS platform. > * The method renames "_nbattrs." into ".nbattrs". > * We cannot simply use the change.rename method > * because of the special property of OpenVMS having to do with > * a file name starting with "." > * > * @param f the folder containg the attribute file > */ > private void renameVMSAttrFile (String f) throws IOException { > InputStream is = null; > OutputStream os = null; > > try { > change.createData (f+"/"+ATTR_NAME_EXT_XML); > is = info.inputStream (f+"/"+"_nbattrs."); > os = info.outputStream (f+"/"+ATTR_NAME_EXT_XML); > > byte [] buf = new byte[256]; > int readi; > while ( (readi=is.read(buf,0,256)) >= 0x0 ) { > os.write (buf,0,readi); > } > > is.close (); > change.delete (f+"/"+"_nbattrs."); > is = null; > } catch (IOException ie) { > } finally { > if (is != null) > is.close (); > if (os != null) > os.close (); > } > } Index: ExLocalFileSystem.java =================================================================== RCS file: /cvs/core/src/org/netbeans/core/ExLocalFileSystem.java,v retrieving revision 1.18 diff -r1.18 ExLocalFileSystem.java 26a27 > import org.openide.util.Utilities; 107c108 < --- > 109a111,125 > // In NB 3.2.x for OpenVMS, we had to use the "_" as a backup extension. > // However, OpenVMS now supports various special characters including "~". > // So we now have to change the existing backup files ending with "_" into "~". > // > if ( Utilities.getOperatingSystem () == Utilities.OS_VMS ) { > if ( arr[i].endsWith (".java_") ) { > try { > String newBackupFile = arr[i].substring (0, arr[i].length()-1) + BACKUP_EXT; > super.rename (name + "/" + arr[i], name + "/" + newBackupFile); > arr[i] = new String (newBackupFile); > } catch (IOException fex) { > } > } > } >