LOG.info("Compiling Scala resource classes. Disabling pathing jar for " + taskName + " to avoid breaking Scala compilation"); return classpath;
CharSequence summary = compiler .summary(fileset, output.toPath(), env, end - start, " " + assemblyOutput, "Assets: " + distFile); logger.info(summary.toString());
@TaskAction public void process() throws Throwable { Project project = getProject(); JoobyProject joobyProject = new JoobyProject(project); String mainClass = getMainClassName(); try (URLClassLoader loader = joobyProject.newClassLoader()) { getLogger().debug("Using classloader " + loader); Path srcdir = project.getProjectDir().toPath(); Path bindir = joobyProject.classes().toPath(); Path output = new ApiParser(srcdir) .with(loader) .export(bindir, mainClass); getLogger().info("API file: " + output); } }
@SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE") static void check(SpotlessTask task, Formatter formatter, List<File> problemFiles) throws IOException { if (problemFiles.isEmpty()) { // if the first pass was successful, then paddedCell() mode is unnecessary task.getLogger().info(StringPrinter.buildStringFromLines( task.getName() + " is in paddedCell() mode, but it doesn't need to be.", "If you remove that option, spotless will run ~2x faster.", "For details see " + URL)); } File diagnoseDir = diagnoseDir(task); File rootDir = task.getProject().getRootDir(); List<File> stillFailing = PaddedCellBulk.check(rootDir, diagnoseDir, formatter, problemFiles); if (!stillFailing.isEmpty()) { throw task.formatViolationsFor(formatter, problemFiles); } } }
static void probeVenv(Project project, PythonDetails pythonDetails, EditablePythonAbiContainer editablePythonAbiContainer) { try { doProbe(project, pythonDetails, editablePythonAbiContainer); } catch (IOException ioe) { logger.info("Unable to probe venv for supported wheel details. Ignoring Venv."); } }
public void execute(Project project) { LOGGER.info("{} - executing deferred configuration using 'afterEvaluate'", project.getPath().equals(":") ? "Root project" : project.getPath()); runnable.run(); } });
private JsonObject parseJsonFrom(URLConnection urlConnection) throws IOException, DeserializationException { InputStream response = urlConnection.getInputStream(); String content = IOUtil.readFully(response); LOG.info("GitHub API responded successfully."); return (JsonObject) Jsoner.deserialize(content); } }
public void graphPopulated(TaskExecutionGraph graph) { if (logger.isInfoEnabled()) { logger.info("Tasks to be executed: {}", graph.getAllTasks()); } }
public void projectsLoaded(Gradle gradle) { if (logger.isInfoEnabled()) { ProjectInternal projectInternal = (ProjectInternal) gradle.getRootProject(); logger.info("Projects loaded. Root project using {}.", projectInternal.getBuildScriptSource().getDisplayName()); logger.info("Included projects: {}", projectInternal.getAllprojects()); } }
@Override public BuildCacheStoreCommand.Result store(OutputStream output) throws IOException { LOGGER.info("Packing {}", task); final TaskOutputPacker.PackResult packResult = packer.pack(outputProperties, outputSnapshots, output, taskOutputOriginFactory.createWriter(task, clock.getElapsedMillis())); return new BuildCacheStoreCommand.Result() { @Override public long getArtifactEntryCount() { return packResult.getEntries(); } }; } }
public void serialize(ContributorsSet contributorsSet) { Collection<Contributor> allContributors = contributorsSet.getAllContributors(); String json = Jsoner.serialize(allContributors); LOG.info("Serialize contributors to: {}", json); IOUtil.writeFile(file, json); }
public void discover(Project project) { PluginBundleExtension extension = project.getExtensions().findByType(PluginBundleExtension.class); Set<File> pluginPropertyFiles = PluginUtil.discoverGradlePluginPropertyFiles(project); LOG.lifecycle(" Adding {} discovered Gradle plugins to 'pluginBundle'", pluginPropertyFiles.size()); for (File pluginPropertyFile : pluginPropertyFiles) { PluginConfig config = new PluginConfig(generatePluginName(pluginPropertyFile.getName())); config.setId(pluginPropertyFile.getName().substring(0, pluginPropertyFile.getName().lastIndexOf(DOT_PROPERTIES))); config.setDisplayName(PluginUtil.getImplementationClass(pluginPropertyFile)); LOG.info("Discovered plugin " + config); extension.getPlugins().add(config); } }
public void settingsEvaluated(Settings settings) { SettingsInternal settingsInternal = (SettingsInternal) settings; if (logger.isInfoEnabled()) { logger.info("Settings evaluated using {}.", settingsInternal.getSettingsScript().getDisplayName()); } }
@TaskAction public void fluid() { log.info("Artemis Fluid api plugin started."); prepareGeneratedSourcesFolder(); includeGeneratedSourcesInCompilation(); new FluidGenerator().generate( classpathAsUrls(preferences), generatedSourcesDirectory, createLogAdapter(), preferences); }
@Override public void onHeaderNotFound(Document document, Header header) { document.parseHeader(); if (document.headerDetected() && skipExistingHeaders) { logger.info("Ignoring header in: {}", DocumentFactory.getRelativeFile(basedir, document)); return; } else { logger.lifecycle("Missing header in: {}", DocumentFactory.getRelativeFile(basedir, document)); } missingHeaders.add(document.getFile()); }
public void visitFile(FileVisitDetails element) { String key = prefix + element.getRelativePath(); getLogger().info(" => s3://{}/{}", bucketName, key); Closure<ObjectMetadata> metadataProvider = getMetadataProvider(); s3.putObject(new PutObjectRequest(bucketName, key, element.getFile()) .withMetadata(metadataProvider == null ? null : metadataProvider.call(getBucketName(), key, element.getFile()))); } });
private void createAlias(AWSLambda lambda, String functionVersion) { CreateAliasRequest createAliasRequest = new CreateAliasRequest() .withFunctionName(getFunctionName()) .withFunctionVersion(functionVersion) .withName(getAlias()); CreateAliasResult createAliasResult = lambda.createAlias(createAliasRequest); getLogger().info("Create Lambda alias requested: {}", createAliasResult.getAliasArn()); }