final ClassPath sourcePath = info.getClasspathInfo().getClassPath(ClasspathInfo.PathKind.SOURCE); writer.println("bootPath: " + (bootPath != null ? bootPath.toString() : "null")); writer.println("classPath: " + (classPath != null ? classPath.toString() : "null")); writer.println("sourcePath: " + (sourcePath != null ? sourcePath.toString() : "null"));
FileUtil.toFile(getProject().getProjectDirectory()), getEvaluator(), new String[]{ProjectProperties.ENDORSED_CLASSPATH})); coll.add("-Xbootclasspath/p:\""+ecp.toString(ClassPath.PathConversionMode.WARN) +"\"");
FileUtil.toFile(getProject().getProjectDirectory()), getEvaluator(), new String[]{ProjectProperties.ENDORSED_CLASSPATH})); coll.add("-Xbootclasspath/p:\""+ecp.toString(ClassPath.PathConversionMode.WARN) +"\"");
new Object[] { FileUtil.getFileDisplayName(targetFO), cp.toString(ClassPath.PathConversionMode.PRINT) });
props.put("work.dir", testSession.getProject().getProjectDirectory().getPath()); //NOI18N ClassPath cp = ClassPath.getClassPath(someTestFO, ClassPath.EXECUTE); props.put("classpath", cp != null ? cp.toString(ClassPath.PathConversionMode.FAIL) : "");//NOI18N Project p = testSession.getProject(); String platformId = null;
@Override public void run (final CompilationController controller) { try { if (controller.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED)<0) { return; } try { final SourceAnalyzerFactory.SimpleAnalyzer sa = SourceAnalyzerFactory.createSimpleAnalyzer(); dataHolder[0] = sa.analyseUnit( controller.getCompilationUnit(), JavaSourceAccessor.getINSTANCE().getJavacTask(controller)); } catch (IllegalArgumentException ia) { //Debug info for issue #187344 //seems that invalid dirty class index is used final ClassPath scp = controller.getClasspathInfo().getClassPath(PathKind.SOURCE); throw new IllegalArgumentException( String.format("Provided source path: %s root: %s", //NOI18N scp == null ? "<null>" : scp.toString(), //NOI18N root.toExternalForm()), ia); } } catch (IOException ioe) { Exceptions.printStackTrace(ioe); } } }, true);
jfo.getClass().getName(), fo == null ? "<null>" : FileUtil.getFileDisplayName(fo), //NOI18N scp == null? "<null>" : scp.toString())); //NOI18N
boolean isSourcepath = false; if ("sourcepath".equalsIgnoreCase(listeningCP)) { listeningCP = ((ClassPath) properties.get ("sourcepath")).toString(ClassPath.PathConversionMode.SKIP); isSourcepath = true;
tuple.indexable.getURL().toString(), FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() ); final String message = String.format("SuperOnePassCompileWorker caused an exception\nRoot: %s\nBootpath: %s\nClasspath: %s\nSourcepath: %s", //NOI18N FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() ); JavaIndex.LOG.log(Level.FINEST, message, isp); final String message = String.format("SuperOnePassCompileWorker caused an exception\nRoot: %s\nBootpath: %s\nClasspath: %s\nSourcepath: %s", //NOI18N FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() ); JavaIndex.LOG.log(Level.FINEST, message, mpe); final String message = String.format("SuperOnePassCompileWorker caused an exception\nRoot: %s\nBootpath: %s\nClasspath: %s\nSourcepath: %s", //NOI18N FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() );
tuple.indexable.getURL().toString(), FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() ); active.jfo.toUri().toString(), FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() ); JavaIndex.LOG.log(Level.FINEST, message, isp); active.jfo.toUri().toString(), FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() ); JavaIndex.LOG.log(Level.FINEST, message, mpe); active.jfo.toUri().toString(), FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() );
active.jfo.toUri().toString(), FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() ); JavaIndex.LOG.log(Level.FINEST, message, isp); active.jfo.toUri().toString(), FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() ); JavaIndex.LOG.log(Level.FINEST, message, mpe); active == null ? null : active.jfo.toUri().toString(), FileUtil.getFileDisplayName(context.getRoot()), bootPath == null ? null : bootPath.toString(), classPath == null ? null : classPath.toString(), sourcePath == null ? null : sourcePath.toString() );
@Override protected void projectOpened() { final ClassPath classPath = getTestClassPath(p); if (classPath != null) { if (classPath.findResource(JUNIT3_SPECIFIC) != null || classPath.toString().contains("${libs.junit.classpath}")) { getJUnitProjectProblemsProvider(p).setProblem(ProjectProblem.createError( Bundle.Error_display_name_junit(), Bundle.Error_description_junit(), new JUnitProblemResolver(new UpdateToJUnit4Action(p, true), MISSING_JUNIT_BINARIES))); } if (classPath.findResource(JUNIT4_SPECIFIC) != null && classPath.findResource(HAMCREST_SPECIFIC) == null) { getJUnitProjectProblemsProvider(p).setProblem(ProjectProblem.createError( Bundle.Error_display_name_junit4(), Bundle.Error_description_junit4(), new JUnitProblemResolver(new UpdateToJUnit4Action(p, false), MISSING_JUNIT_BINARIES))); } } }