private static void touch(Package java) { X_Log.info(java); }
@Override protected ClassLoader initialValue() { if (X_Runtime.isDebug()) { X_Log.info("Maven compile scope: "+X_String.joinObjects(urls)); } return new URLClassLoader(urls, X_Maven.class.getClassLoader()); }; };
public static synchronized File getXApiHome() { // We purposely don't cache this value so users can change it at runtime. String loc = X_Properties.getProperty(X_Namespace.PROPERTY_XAPI_HOME); try { if (loc == null) { // use a temporary directory instead File f = File.createTempFile("xapi", "home"); loc = f.getAbsolutePath(); X_Properties.setProperty(X_Namespace.PROPERTY_XAPI_HOME, loc); return f; } File home = new File(loc); if (!home.exists()) { X_Log.info("XApi home @ "+home.getCanonicalPath()+" does not exist."); if (home.mkdirs()) { X_Log.info("Successfully created home directory"); } else { X_Log.warn("Unable to create home directory; using temp file."); X_Properties.setProperty(X_Namespace.PROPERTY_XAPI_HOME, null); return getXApiHome(); } } return home; } catch (Throwable e) { throw X_Util.rethrow(e); } }
protected void writeMeta(Map<String, ClassFile> injectables, File target) { X_Log.info("Writing meta to ",target.getAbsoluteFile());
public static URL[] compileScopeUrls(MavenProject project, MavenSession session) { try { List<String> compile = project.getCompileClasspathElements(); X_Log.info(X_Maven.class,"Compile classpath",compile); X_Log.info(X_Maven.class,"Runtime classpath",project.getRuntimeClasspathElements()); if (project.hasLifecyclePhase("test-classes")) { List<String> testElements = project.getTestClasspathElements(); testElements.addAll(compile); compile = testElements; } URL[] urls = new URL[compile.size()]; for (int i = compile.size(); i-- > 0;) { urls[i] = X_Dev.toUrl(compile.get(i)); } return urls; } catch (DependencyResolutionRequiredException e) { throw X_Debug.rethrow(e); } }
@Override public void run() { try { if (file.exists()) { file.delete(); } final FileOutputStream result = new FileOutputStream(file); X_IO.drain(result, X_IO.toStreamUtf8(serialized.toString())); callback.onSuccess(model); X_Log.info(getClass(), "Saved model to ",file); } catch (final IOException e) { X_Log.error(getClass(), "Unable to save model "+model, e); if (callback instanceof ErrorHandler) { ((ErrorHandler) callback).onError(e); } } } });
}finally { if (X_Debug.isBenchmark()) { X_Log.info("Spent "+(now()-(max-timeout))+" millis flushing environment");
X_Log.info("Multithreaded? ", X_Runtime.isMultithreaded()); X_Log.info("Prepped: ", X_Time.difference(start, prepped)); X_Log.info("Scanned: ", X_Time.difference(prepped, scanned)); X_Log.info("Checked: ", X_Time.difference(scanned, checked)); X_Log.info("Mapped: ", X_Time.difference(checked, mapped)); X_Log.info("Analyzed: ", X_Time.difference(mapped, startInject)); X_Log.info("Injected: ", X_Time.difference(startInject, finished)); X_Log.info("Total: ", X_Time.difference(start, finished));
X_Log.info("Singleton Injection Winner: "+winningType.getName()); String packageName = type.getPackage().getName(); ensureProviderClass(logger, packageName,type.getSimpleSourceName(),type.getQualifiedSourceName(), SourceUtil.toSourceName(winningType.getQualifiedSourceName()), context);