private void addFile(File path, SVNFileType type, SVNAdminArea dir) throws SVNException { SVNWCManager.add(path, dir, null, SVNRevision.UNDEFINED); String mimeType = null; if (type == SVNFileType.SYMLINK) { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.SPECIAL, SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false); } else { Map props = SVNPropertiesManager.computeAutoProperties(getOptions(), path); for (Iterator names = props.keySet().iterator(); names.hasNext();) { String propName = (String) names.next(); String propValue = (String) props.get(propName); SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, propValue, false); } mimeType = (String) props.get(SVNProperty.MIME_TYPE); } SVNEvent event = SVNEventFactory.createAddedEvent(dir, path.getName(), SVNNodeKind.FILE, mimeType); dispatchEvent(event); }
private Map getAllAutoProperties(ISVNOptions options, File file) throws SVNException { Map<String, String> allAutoProperties = new HashMap<String, String>(); Map configAutoProperties = SVNPropertiesManager.computeAutoProperties(options, file, null); if (configAutoProperties != null) { allAutoProperties.putAll(configAutoProperties);
Map autoProperties = new SVNHashMap(); if (fileType != SVNFileType.SYMLINK) { autoProperties = SVNPropertiesManager.computeAutoProperties(getOptions(), file, autoProperties); } else { autoProperties.put(SVNProperty.SPECIAL, "*");
Map autoProperties = new SVNHashMap(); if (fileType != SVNFileType.SYMLINK) { autoProperties = SVNPropertiesManager.computeAutoProperties(getOptions(), file, autoProperties); } else { autoProperties.put(SVNProperty.SPECIAL, "*");
Map autoProperties = new SVNHashMap(); if (fileType != SVNFileType.SYMLINK) { autoProperties = SVNPropertiesManager.computeAutoProperties(getOptions(), file, autoProperties); } else { autoProperties.put(SVNProperty.SPECIAL, "*");
SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false); } else { Map props = SVNPropertiesManager.computeAutoProperties(getOptions(), path, null); for (Iterator names = props.keySet().iterator(); names.hasNext();) { String propName = (String) names.next();
SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.SPECIAL, SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false); } else { Map props = SVNPropertiesManager.computeAutoProperties(getOptions(), path, null); for (Iterator names = props.keySet().iterator(); names.hasNext();) { String propName = (String) names.next();
SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false); } else { Map props = SVNPropertiesManager.computeAutoProperties(getOptions(), path, null); for (Iterator names = props.keySet().iterator(); names.hasNext();) { String propName = (String) names.next();