本文整理匯總了Java中org.gradle.api.logging.Logger.debug方法的典型用法代碼示例。如果您正苦於以下問題:Java Logger.debug方法的具體用法?Java Logger.debug怎麽用?Java Logger.debug使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.gradle.api.logging.Logger
的用法示例。
在下文中一共展示了Logger.debug方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addLink
import org.gradle.api.logging.Logger; //導入方法依賴的package包/類
private void addLink(Javadoc javadoc, String link) {
MinimalJavadocOptions options = javadoc.getOptions();
if (options instanceof StandardJavadocDocletOptions) {
StandardJavadocDocletOptions docletOptions = (StandardJavadocDocletOptions) options;
Logger logger = javadoc.getLogger();
List<String> links = docletOptions.getLinks();
if (!links.contains(link)) {
logger.debug("Adding '{}' to {}", link, javadoc);
links.add(link);
} else {
logger.info("Not adding '{}' to {} because it's already present", link, javadoc);
}
}
}
示例2: setupInputOutputs
import org.gradle.api.logging.Logger; //導入方法依賴的package包/類
private void setupInputOutputs(Jar jarTask, String classifier) {
Logger logger = this.project.getLogger();
logger.debug("Using classifier: " + classifier + " for task "
+ this.task.getName());
File inputFile = jarTask.getArchivePath();
String outputName = inputFile.getName();
outputName = StringUtils.stripFilenameExtension(outputName) + "-" + classifier
+ "." + StringUtils.getFilenameExtension(outputName);
File outputFile = new File(inputFile.getParentFile(), outputName);
this.task.getInputs().file(jarTask);
addLibraryDependencies(this.task);
this.task.getOutputs().file(outputFile);
this.task.setOutputFile(outputFile);
}
開發者ID:vikrammane23,項目名稱:https-github.com-g0t4-jenkins2-course-spring-boot,代碼行數:15,代碼來源:RepackagePluginFeatures.java
示例3: ev3Deploy
import org.gradle.api.logging.Logger; //導入方法依賴的package包/類
@TaskAction
public void ev3Deploy() {
Project project = getProject();
Logger logger = getLogger();
LejosEv3PluginExtension ev3 = getEv3PluginExtension();
Configuration shadowConfiguration = project.getConfigurations().getByName("shadow");
if (shadowConfiguration == null) {
throw new GradleException("Configuration shadow not found -> is the Gradle shadow plugin included?");
}
PublishArtifactSet shadowArtifacts = shadowConfiguration.getAllArtifacts();
if (shadowArtifacts.isEmpty()) {
throw new GradleException("Configuration shadow has no artifacts");
}
PublishArtifact shadowArtifact = Iterables.get(shadowArtifacts, 0);
String shadowArtifactPath = shadowArtifact.getFile().getAbsolutePath();
try {
JSchSession jSchSession = new JSchSessionBuilder()
.setHost(getEv3Host())
.setPort(ev3.getPort())
.setUser(ev3.getUser())
.setSshKey(SSH_KEY)
.build();
logger.debug("Copy " + shadowArtifactPath + " to [email protected]" + ev3.getHost() + ":/home/lejos/programs/");
jSchSession.copyFile(shadowArtifactPath, LEJOS_PROGRAM_DIRECTORY);
} catch (IOException | JSchException | RuntimeException e) {
throw new GradleException("Error on copying file by scp", e);
}
}