org.gradle.api.logging.Logger.info()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(7.6k)|赞(0)|评价(0)|浏览(237)

本文整理了Java中org.gradle.api.logging.Logger.info()方法的一些代码示例,展示了Logger.info()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()方法的具体详情如下:
包路径:org.gradle.api.logging.Logger
类名称:Logger
方法名:info

Logger.info介绍

[英]Logs the given message at info log level.
[中]在信息日志级别记录给定消息。

代码示例

代码示例来源:origin: linkedin/rest.li

  1. LOG.info("Compiling Scala resource classes. Disabling pathing jar for " + taskName + " to avoid breaking Scala compilation");
  2. return classpath;

代码示例来源:origin: jooby-project/jooby

  1. CharSequence summary = compiler
  2. .summary(fileset, output.toPath(), env, end - start, " " + assemblyOutput, "Assets: " + distFile);
  3. logger.info(summary.toString());

代码示例来源:origin: jooby-project/jooby

  1. getLogger().info("compiler is {}", compiler);
  2. if ("on".equalsIgnoreCase(compiler)) {
  3. Path[] watchDirs = getSrc().stream().filter(File::exists).map(File::toPath).toArray(Path[]::new);
  4. getLogger().info("watching directories {}", Arrays.asList(watchDirs));

代码示例来源:origin: linkedin/rest.li

  1. getLogger().info("idlFiles: " + idlFiles.getAsPath());
  2. getLogger().info("snapshotFiles: " + snapshotFiles.getAsPath());

代码示例来源:origin: hibernate/hibernate-orm

  1. if ( enhancedBytecode != null ) {
  2. writeOutEnhancedClass( enhancedBytecode, file );
  3. logger.info( "Successfully enhanced class [" + file + "]" );
  4. logger.info( "Skipping class [" + file.getAbsolutePath() + "], not an entity nor embeddable" );

代码示例来源:origin: jooby-project/jooby

  1. @TaskAction
  2. public void process() throws Throwable {
  3. Project project = getProject();
  4. JoobyProject joobyProject = new JoobyProject(project);
  5. String mainClass = getMainClassName();
  6. try (URLClassLoader loader = joobyProject.newClassLoader()) {
  7. getLogger().debug("Using classloader " + loader);
  8. Path srcdir = project.getProjectDir().toPath();
  9. Path bindir = joobyProject.classes().toPath();
  10. Path output = new ApiParser(srcdir)
  11. .with(loader)
  12. .export(bindir, mainClass);
  13. getLogger().info("API file: " + output);
  14. }
  15. }

代码示例来源:origin: diffplug/spotless

  1. @SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE")
  2. static void check(SpotlessTask task, Formatter formatter, List<File> problemFiles) throws IOException {
  3. if (problemFiles.isEmpty()) {
  4. // if the first pass was successful, then paddedCell() mode is unnecessary
  5. task.getLogger().info(StringPrinter.buildStringFromLines(
  6. task.getName() + " is in paddedCell() mode, but it doesn't need to be.",
  7. "If you remove that option, spotless will run ~2x faster.",
  8. "For details see " + URL));
  9. }
  10. File diagnoseDir = diagnoseDir(task);
  11. File rootDir = task.getProject().getRootDir();
  12. List<File> stillFailing = PaddedCellBulk.check(rootDir, diagnoseDir, formatter, problemFiles);
  13. if (!stillFailing.isEmpty()) {
  14. throw task.formatViolationsFor(formatter, problemFiles);
  15. }
  16. }
  17. }

代码示例来源:origin: linkedin/pygradle

  1. static void probeVenv(Project project, PythonDetails pythonDetails,
  2. EditablePythonAbiContainer editablePythonAbiContainer) {
  3. try {
  4. doProbe(project, pythonDetails, editablePythonAbiContainer);
  5. } catch (IOException ioe) {
  6. logger.info("Unable to probe venv for supported wheel details. Ignoring Venv.");
  7. }
  8. }

代码示例来源:origin: gradle.plugin.org.shipkit/shipkit

  1. public void execute(Project project) {
  2. LOGGER.info("{} - executing deferred configuration using 'afterEvaluate'",
  3. project.getPath().equals(":") ? "Root project" : project.getPath());
  4. runnable.run();
  5. }
  6. });

代码示例来源:origin: org.shipkit/shipkit

  1. private JsonObject parseJsonFrom(URLConnection urlConnection) throws IOException, DeserializationException {
  2. InputStream response = urlConnection.getInputStream();
  3. String content = IOUtil.readFully(response);
  4. LOG.info("GitHub API responded successfully.");
  5. return (JsonObject) Jsoner.deserialize(content);
  6. }
  7. }

代码示例来源:origin: org.gradle/gradle-core

  1. public void graphPopulated(TaskExecutionGraph graph) {
  2. if (logger.isInfoEnabled()) {
  3. logger.info("Tasks to be executed: {}", graph.getAllTasks());
  4. }
  5. }

代码示例来源:origin: org.gradle/gradle-core

  1. public void projectsLoaded(Gradle gradle) {
  2. if (logger.isInfoEnabled()) {
  3. ProjectInternal projectInternal = (ProjectInternal) gradle.getRootProject();
  4. logger.info("Projects loaded. Root project using {}.",
  5. projectInternal.getBuildScriptSource().getDisplayName());
  6. logger.info("Included projects: {}", projectInternal.getAllprojects());
  7. }
  8. }

代码示例来源:origin: org.gradle/gradle-core

  1. @Override
  2. public BuildCacheStoreCommand.Result store(OutputStream output) throws IOException {
  3. LOGGER.info("Packing {}", task);
  4. final TaskOutputPacker.PackResult packResult = packer.pack(outputProperties, outputSnapshots, output, taskOutputOriginFactory.createWriter(task, clock.getElapsedMillis()));
  5. return new BuildCacheStoreCommand.Result() {
  6. @Override
  7. public long getArtifactEntryCount() {
  8. return packResult.getEntries();
  9. }
  10. };
  11. }
  12. }

代码示例来源:origin: org.shipkit/shipkit

  1. public void serialize(ContributorsSet contributorsSet) {
  2. Collection<Contributor> allContributors = contributorsSet.getAllContributors();
  3. String json = Jsoner.serialize(allContributors);
  4. LOG.info("Serialize contributors to: {}", json);
  5. IOUtil.writeFile(file, json);
  6. }

代码示例来源:origin: org.shipkit/shipkit

  1. public void discover(Project project) {
  2. PluginBundleExtension extension = project.getExtensions().findByType(PluginBundleExtension.class);
  3. Set<File> pluginPropertyFiles = PluginUtil.discoverGradlePluginPropertyFiles(project);
  4. LOG.lifecycle(" Adding {} discovered Gradle plugins to 'pluginBundle'", pluginPropertyFiles.size());
  5. for (File pluginPropertyFile : pluginPropertyFiles) {
  6. PluginConfig config = new PluginConfig(generatePluginName(pluginPropertyFile.getName()));
  7. config.setId(pluginPropertyFile.getName().substring(0, pluginPropertyFile.getName().lastIndexOf(DOT_PROPERTIES)));
  8. config.setDisplayName(PluginUtil.getImplementationClass(pluginPropertyFile));
  9. LOG.info("Discovered plugin " + config);
  10. extension.getPlugins().add(config);
  11. }
  12. }

代码示例来源:origin: org.gradle/gradle-core

  1. public void settingsEvaluated(Settings settings) {
  2. SettingsInternal settingsInternal = (SettingsInternal) settings;
  3. if (logger.isInfoEnabled()) {
  4. logger.info("Settings evaluated using {}.",
  5. settingsInternal.getSettingsScript().getDisplayName());
  6. }
  7. }

代码示例来源:origin: junkdog/artemis-odb

  1. @TaskAction
  2. public void fluid() {
  3. log.info("Artemis Fluid api plugin started.");
  4. prepareGeneratedSourcesFolder();
  5. includeGeneratedSourcesInCompilation();
  6. new FluidGenerator().generate(
  7. classpathAsUrls(preferences),
  8. generatedSourcesDirectory, createLogAdapter(), preferences);
  9. }

代码示例来源:origin: gradle.plugin.nl.javadude.gradle.plugins/license-gradle-plugin

  1. @Override
  2. public void onHeaderNotFound(Document document, Header header) {
  3. document.parseHeader();
  4. if (document.headerDetected() && skipExistingHeaders) {
  5. logger.info("Ignoring header in: {}", DocumentFactory.getRelativeFile(basedir, document));
  6. return;
  7. } else {
  8. logger.lifecycle("Missing header in: {}", DocumentFactory.getRelativeFile(basedir, document));
  9. }
  10. missingHeaders.add(document.getFile());
  11. }

代码示例来源:origin: classmethod/gradle-aws-plugin

  1. public void visitFile(FileVisitDetails element) {
  2. String key = prefix + element.getRelativePath();
  3. getLogger().info(" => s3://{}/{}", bucketName, key);
  4. Closure<ObjectMetadata> metadataProvider = getMetadataProvider();
  5. s3.putObject(new PutObjectRequest(bucketName, key, element.getFile())
  6. .withMetadata(metadataProvider == null ? null
  7. : metadataProvider.call(getBucketName(), key, element.getFile())));
  8. }
  9. });

代码示例来源:origin: classmethod/gradle-aws-plugin

  1. private void createAlias(AWSLambda lambda, String functionVersion) {
  2. CreateAliasRequest createAliasRequest = new CreateAliasRequest()
  3. .withFunctionName(getFunctionName())
  4. .withFunctionVersion(functionVersion)
  5. .withName(getAlias());
  6. CreateAliasResult createAliasResult = lambda.createAlias(createAliasRequest);
  7. getLogger().info("Create Lambda alias requested: {}",
  8. createAliasResult.getAliasArn());
  9. }

相关文章