本文整理了Java中org.gradle.api.logging.Logger.debug()
方法的一些代码示例,展示了Logger.debug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debug()
方法的具体详情如下:
包路径:org.gradle.api.logging.Logger
类名称:Logger
方法名:debug
[英]Multiple-parameters friendly debug method
[中]多参数友好调试方法
代码示例来源:origin: hibernate/hibernate-orm
private ClassLoader toClassLoader(FileCollection runtimeClasspath) {
List<URL> urls = new ArrayList<URL>();
for ( File file : runtimeClasspath ) {
try {
urls.add( file.toURI().toURL() );
logger.debug( "Adding classpath entry for " + file.getAbsolutePath() );
}
catch (MalformedURLException e) {
throw new GradleException( "Unable to resolve classpath entry to URL : " + file.getAbsolutePath(), e );
}
}
return new URLClassLoader( urls.toArray( new URL[urls.size()] ), Enhancer.class.getClassLoader() );
}
代码示例来源:origin: f2prateek/dart
new UnionFileCollection(javaCompiler.getSource(), project.fileTree(destinationFolder));
javaCompiler.setSource(uft);
logger.debug("Analyzing configuration: " + variantCompileClasspath.getFiles());
Set<String> targetActivities = new HashSet<>();
Streams.stream(variantCompileClasspath)
.forEach(
dependency -> {
logger.debug("Detected dependency: {}", dependency.getAbsolutePath());
if (dependency.getName().endsWith(".jar")) {
logger.debug("Detected navigation API dependency: {}", dependency.getName());
if (!dependency.exists()) {
logger.debug("Dependency jar doesn't exist {}", dependency.getAbsolutePath());
} else {
File file = dependency.getAbsoluteFile();
entry -> {
if (entry.matches(".*__IntentBuilder.class")) {
logger.debug("Detected intent builder: {}", entry);
String targetActivityFQN =
entry
File generatedFile = getHensonNavigatorSourceFile();
try {
logger.debug("Generating Henson navigator in " + generatedFile.getAbsolutePath());
logger.debug(hensonNavigator);
Files.write(generatedFile.toPath(), singletonList(hensonNavigator));
} catch (IOException e) {
代码示例来源:origin: jooby-project/jooby
output.mkdirs();
logger.debug("claspath: " + loader);
logger.debug("assets.conf: " + assetConf.getConfig("assets"));
.toFile();
to.getParentFile().mkdirs();
logger.debug("copying file to: " + to);
Files.copy(from, to);
代码示例来源:origin: jooby-project/jooby
private void runTask(final ProjectConnection connection, final Path path, final String task) {
synchronized (LOCK) {
Map<String, String> xml = new HashMap<>();
try {
// clean jaxp
XML_PROPS.forEach(p -> xml.put(p, (String) System.getProperties().remove(p)));
try {
connection.newBuild()
.setStandardError(System.err)
.setStandardOutput(System.out)
.forTasks(task)
.run();
} catch (Exception ex) {
getLogger().debug("Execution of " + task + " resulted in exception", ex);
}
} finally {
// restore jaxp
xml.forEach((k, v) -> {
if (v != null) {
System.setProperty(k, v);
}
});
}
}
}
代码示例来源:origin: hibernate/hibernate-orm
public void apply(Project project) {
project.getPlugins().apply( "java" );
final HibernateExtension hibernateExtension = new HibernateExtension( project );
project.getLogger().debug( "Adding Hibernate extensions to the build [{}]", project.getName() );
project.getExtensions().add( "hibernate", hibernateExtension );
project.afterEvaluate(
new Action<Project>() {
@Override
public void execute(Project project) {
if ( hibernateExtension.enhance != null ) {
applyEnhancement( project, hibernateExtension );
}
}
}
);
}
代码示例来源:origin: jooby-project/jooby
@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);
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Override
public void execute(Task task) {
project.getLogger().debug( "Starting Hibernate enhancement on SourceSet.{}", sourceSet.getName() );
代码示例来源:origin: hibernate/hibernate-orm
project.getLogger().debug( "Applying Hibernate enhancement action to SourceSet.{}", sourceSet.getName() );
代码示例来源:origin: diffplug/spotless
private void check(Formatter formatter, List<File> outOfDate) throws Exception {
List<File> problemFiles = new ArrayList<>();
for (File file : outOfDate) {
getLogger().debug("Checking format on " + file);
if (!formatter.isClean(file)) {
problemFiles.add(file);
}
}
if (paddedCell) {
PaddedCellGradle.check(this, formatter, problemFiles);
} else {
if (!problemFiles.isEmpty()) {
// if we're not in paddedCell mode, we'll check if maybe we should be
if (PaddedCellBulk.anyMisbehave(formatter, problemFiles)) {
throw PaddedCellGradle.youShouldTurnOnPaddedCell(this);
} else {
throw formatViolationsFor(formatter, problemFiles);
}
}
}
}
代码示例来源:origin: diffplug/spotless
if (isPaddedCell()) {
for (File file : outOfDate) {
getLogger().debug("Applying format to " + file);
if (PaddedCellBulk.applyAnyChanged(formatter, file)) {
changed.add(file);
boolean anyMisbehave = false;
for (File file : outOfDate) {
getLogger().debug("Applying format to " + file);
String unixResultIfDirty = formatter.applyToAndReturnResultIfDirty(file);
if (unixResultIfDirty != null) {
代码示例来源:origin: gradle.plugin.com.linkedin.pygradle/pygradle-plugin
@Override
public void addSupportedAbi(AbiDetails triple) {
supportedAbis.add(triple);
logger.debug("Available ABI's: {}", supportedAbis);
}
代码示例来源:origin: org.gradle/gradle-core
@Override
public void onPendingChanges() {
// Only fire once
if (!seenChanges) {
LOGGER.debug("notifying pending changes");
delegate.onPendingChanges();
seenChanges = true;
} else {
LOGGER.debug("already notified");
}
}
}
代码示例来源:origin: org.gradle/gradle-core
public void abortProcess() {
lock.lock();
try {
aborted = true;
if (process != null) {
LOGGER.debug("Abort requested. Destroying process: {}.", execHandle.getDisplayName());
process.destroy();
}
} finally {
lock.unlock();
}
}
代码示例来源:origin: com.android.tools.build/gradle-core
@Override
public boolean isSatisfiedBy(Task task) {
getLogger().debug("Install task is always run.");
return false;
}
});
代码示例来源:origin: gradle.plugin.com.we.intershop.gradleplugin/icm-code-generator
public void writeFactory(String name, String data) {
logger.debug("writing Factory data : {}", data);
try {
Files.write(this.internalPath.resolve(name), data.getBytes());
} catch (IOException e) {
logger.error("error writing Factory ", e);
}
}
代码示例来源:origin: gradle.plugin.ca.coglinc2/javacc-gradle-plugin
public AbstractJavaccTask setOutputDirectory(File outputDirectory) {
getLogger().debug("Changing output directory to [{}]", outputDirectory);
this.outputDirectory = outputDirectory;
return this;
}
代码示例来源:origin: gradle.plugin.org.hibernate.build/database-profile-plugin
void injectSelectedProfile(Profile selectedProfile) {
if ( this.profile != null ) {
// error? for now, just log it
project.getLogger().debug( "replacing selected Profile : %s -> %s", profile, selectedProfile );
}
this.resolved = true;
this.profile = selectedProfile;
}
代码示例来源:origin: gradle.plugin.org.hibernate.build.gradle/hibernate-matrix-testing
private DatabaseProfile findDatabaseProfile(File directory) {
final File matrixDotGradleFile = new File( directory, MATRIX_BUILD_FILE );
if ( matrixDotGradleFile.exists() && matrixDotGradleFile.isFile() ) {
project.getLogger().debug( "Found matrix.gradle file : " + matrixDotGradleFile );
return new MatrixDotGradleProfile( matrixDotGradleFile, project );
}
final File jdbcDirectory = new File( directory, JDBC_DIR );
if ( jdbcDirectory.exists() && jdbcDirectory.isDirectory() ) {
return new JdbcDirectoryProfile( jdbcDirectory, project );
}
return null;
}
代码示例来源:origin: org.shipkit/shipkit
public String serialize(ProjectContributorsSet contributorsSet) {
Collection<ProjectContributor> allContributors = contributorsSet.getAllContributors();
String json = Jsoner.serialize(allContributors);
LOG.debug("Serialize contributors to: {}", json);
return json;
}
代码示例来源:origin: gradle.plugin.com.s390x/gogradle
private FileVisitResult visitRepoRoot(String packagePath, Path currentPath) {
LOGGER.debug("Produce recognized package {}.", packagePath);
dependencies.add(createDependency(packagePath, currentPath));
return FileVisitResult.SKIP_SUBTREE;
}
内容来源于网络,如有侵权,请联系作者删除!