@Override public File toJavaFile() { return _delegate.toJavaFile(); }
/** * Returns a String representation of this path entry suitable for use in debugging. * * @return a debug String representation of this object */ public String toDebugString() { StringBuilder sb = new StringBuilder(); sb.append("GosuPathEntry:\n"); sb.append(" root: ").append(_root.toJavaFile().getAbsolutePath()).append("\n"); for (IDirectory src : _srcs) { sb.append(" src: ").append(src.toJavaFile().getAbsolutePath()).append("\n"); } return sb.toString(); }
/** * Returns a String representation of this path entry suitable for use in debugging. * * @return a debug String representation of this object */ public String toDebugString() { StringBuilder sb = new StringBuilder(); sb.append("GosuPathEntry:\n"); sb.append(" root: ").append(_root.toJavaFile().getAbsolutePath()).append("\n"); for (IDirectory src : _srcs) { sb.append(" src: ").append(src.toJavaFile().getAbsolutePath()).append("\n"); } return sb.toString(); }
static List<String> getLocalClasspath() { List<String> localPath = new ArrayList<>(); List<IDirectory> classpath = TypeSystem.getGlobalModule().getSourcePath(); for( int i = 0; i < classpath.size(); i++ ) { File file = classpath.get( i ).toJavaFile(); String filePath = file.getAbsolutePath().toLowerCase(); if( !isUpperLevelClasspath( filePath ) ) { localPath.add( file.getAbsolutePath() ); } } return localPath; }
public void initWatching() { _directoryWatcher = new DirectoryWatcher(); List<? extends IDirectory> sourceEntries = TypeSystem.getCurrentModule().getSourcePath(); for (IDirectory sourceEntry : sourceEntries) { // Ignore /classes directories and jar files if (!sourceEntry.getPath().getName().equals("classes") && !sourceEntry.getPath().getName().endsWith(".jar") && sourceEntry.isJavaFile()) { _directoryWatcher.watchDirectoryTree(sourceEntry.toJavaFile().toPath()); } } }