/** * Returns the path string for this path using the / path separator. * * @return the path string for this path using the / path separator. * @see #getPathString(String) */ public String getPathString() { return getPathString("/"); }
/** * Returns the path string for this path using the default file system separator, * as defined by the File.separator property. * * @return the path string for this path using the default file system separator * @see #getPathString(String) */ public String getFileSystemPathString() { return getPathString(File.separator); }
/** * Returns the path string for this path using the / path separator. * * @return the path string for this path using the / path separator. * @see #getPathString(String) */ public String getPathString() { return getPathString("/"); }
/** * Returns the path string for this path using the default file system separator, * as defined by the File.separator property. * * @return the path string for this path using the default file system separator * @see #getPathString(String) */ public String getFileSystemPathString() { return getPathString(File.separator); }
@Override public File toJavaFile() { return new File(_path.getPathString()); }
@Override public File toJavaFile() { return new File(_path.getPathString()); }
@Override public void clearDirectoryCaches(ResourcePath dirPath) { _lock.lock(); try { _dirCache.remove(dirPath.getPathString()); } finally { _lock.unlock(); } _delegate.clearDirectoryCaches(dirPath); }
@Override public void clearDirectoryCaches(ResourcePath dirPath) { _lock.lock(); try { _dirCache.remove(dirPath.getPathString()); } finally { _lock.unlock(); } _delegate.clearDirectoryCaches(dirPath); }
@Override public void clearDirectoryCaches(ResourcePath dirPath) { _lock.lock(); try { _dirCache.remove(dirPath.getPathString()); } finally { _lock.unlock(); } _delegate.clearDirectoryCaches(dirPath); }
@Override public String toString() { return _file.getPath().getPathString(); } }
public static List<String> makeStringPaths( List<IDirectory> sourcePaths ) { List<String> paths = new ArrayList<String>(); for( IDirectory dir: sourcePaths ) { paths.add( dir.getPath().getPathString() ); } return paths; }
public static List<String> makeStringPaths( List<IDirectory> sourcePaths ) { List<String> paths = new ArrayList<String>(); for( IDirectory dir: sourcePaths ) { paths.add( dir.getPath().getPathString() ); } return paths; }
@Override public void clearDirectoryCaches(ResourcePath dirPath) { _lock.lock(); try { _dirCache.remove(dirPath.getPathString()); } finally { _lock.unlock(); } _delegate.clearDirectoryCaches(dirPath); }
public String getFilePath() { return _file == null ? null : _file.getPath().getPathString(); }
@Override public String toString() { return file.getPath().getPathString(); }
public String getFilePath() { return _file == null ? null : _file.getPath().getPathString(); }
@Override public List<? extends IFileMetadata> listFiles(ResourcePath directoryPath) { _lock.lock(); try { String pathString = directoryPath.getPathString(); DirCacheInfo cacheInfo = _dirCache.get(pathString); if (cacheInfo == null) { cacheInfo = new DirCacheInfo(directoryPath); _dirCache.put(pathString, cacheInfo); } return cacheInfo._files; } finally { _lock.unlock(); } }
@Override public List<? extends IFileMetadata> listFiles(ResourcePath directoryPath) { _lock.lock(); try { String pathString = directoryPath.getPathString(); DirCacheInfo cacheInfo = _dirCache.get(pathString); if (cacheInfo == null) { cacheInfo = new DirCacheInfo(directoryPath); _dirCache.put(pathString, cacheInfo); } return cacheInfo.listFiles(); } finally { _lock.unlock(); } }
private GosucModule makeModule( IModule module ) { final IDirectory outputPath = module.getOutputPath(); return new GosucModule( module.getName(), GosucUtil.makeStringPaths( module.getSourcePath() ), GosucUtil.makeStringPaths( module.getJavaClassPath() ), outputPath != null ? outputPath.getPath().getPathString() : null, makeDependencies( module.getDependencies() ) ); }
private GosucModule makeModule( IModule module ) { final IDirectory outputPath = module.getOutputPath(); return new GosucModule( module.getName(), GosucUtil.makeStringPaths( module.getSourcePath() ), GosucUtil.makeStringPaths( module.getJavaClassPath() ), GosucUtil.makeStringPaths( module.getBackingSourcePath() ), outputPath != null ? outputPath.getPath().getPathString() : null, makeDependencies( module.getDependencies() ), GosucUtil.makeStringPaths( module.getExcludedPaths() )); }