org.gradle.api.logging.LoggingManager Java Examples
The following examples show how to use
org.gradle.api.logging.LoggingManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultScript.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public void init(final Object target, ServiceRegistry services) { super.init(target, services); this.__scriptServices = services; loggingManager = services.get(LoggingManager.class); Instantiator instantiator = services.get(Instantiator.class); FileLookup fileLookup = services.get(FileLookup.class); if (target instanceof FileOperations) { fileOperations = (FileOperations) target; } else if (getScriptSource().getResource().getFile() != null) { fileOperations = new DefaultFileOperations(fileLookup.getFileResolver(getScriptSource().getResource().getFile().getParentFile()), null, null, instantiator, fileLookup); } else { fileOperations = new DefaultFileOperations(fileLookup.getFileResolver(), null, null, instantiator, fileLookup); } processOperations = (ProcessOperations) fileOperations; }
Example #2
Source File: DefaultScript.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public void init(final Object target, ServiceRegistry services) { super.init(target, services); this.__scriptServices = services; loggingManager = services.get(LoggingManager.class); Instantiator instantiator = services.get(Instantiator.class); FileLookup fileLookup = services.get(FileLookup.class); if (target instanceof FileOperations) { fileOperations = (FileOperations) target; } else if (getScriptSource().getResource().getFile() != null) { fileOperations = new DefaultFileOperations(fileLookup.getFileResolver(getScriptSource().getResource().getFile().getParentFile()), null, null, instantiator, fileLookup); } else { fileOperations = new DefaultFileOperations(fileLookup.getFileResolver(), null, null, instantiator, fileLookup); } processOperations = (ProcessOperations) fileOperations; }
Example #3
Source File: DefaultScript.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public void init(final Object target, ServiceRegistry services) { super.init(target, services); this.__scriptServices = services; loggingManager = services.get(LoggingManager.class); Instantiator instantiator = services.get(Instantiator.class); FileLookup fileLookup = services.get(FileLookup.class); if (target instanceof FileOperations) { fileOperations = (FileOperations) target; } else if (getScriptSource().getResource().getFile() != null) { fileOperations = new DefaultFileOperations(fileLookup.getFileResolver(getScriptSource().getResource().getFile().getParentFile()), null, null, instantiator, fileLookup); } else { fileOperations = new DefaultFileOperations(fileLookup.getFileResolver(), null, null, instantiator, fileLookup); } processOperations = (ProcessOperations) fileOperations; }
Example #4
Source File: AtlasMultiDexListTransform.java From atlas with Apache License 2.0 | 6 votes |
public void transform(@NonNull TransformInvocation transformInvocation) throws TransformException, InterruptedException, IOException { if (mainDexListFile.exists() && !variantScope.getVariantData().getName().toLowerCase().endsWith("release")){ return; } LoggingManager loggingManager = transformInvocation.getContext().getLogging(); loggingManager.captureStandardOutput(LogLevel.INFO); loggingManager.captureStandardError(LogLevel.WARN); Collection<File> inputs =AtlasBuildContext.atlasMainDexHelperMap.get(variantScope.getFullVariantName()).getAllMainDexJars(); inputs.addAll(AtlasBuildContext.atlasMainDexHelperMap.get(variantScope.getFullVariantName()).getInputDirs()); if (AtlasBuildContext.androidBuilderMap.get(variantScope.getGlobalScope().getProject()) == null) { super.transform(transformInvocation); } else if (AtlasBuildContext.androidBuilderMap.get(variantScope.getGlobalScope().getProject()).multiDexer == null) { super.transform(transformInvocation); } FastMultiDexer fastMultiDexer = (FastMultiDexer) AtlasBuildContext.androidBuilderMap.get(variantScope.getGlobalScope().getProject()).multiDexer; Collection<File>files = fastMultiDexer.repackageJarList(inputs, mainDexListFile,variantScope.getVariantData().getName().toLowerCase().endsWith("release")); if (files!= null && files.size() > 0){ AtlasBuildContext.atlasMainDexHelperMap.get(variantScope.getFullVariantName()).addAllMainDexJars(files); } }
Example #5
Source File: DefaultScript.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public void init(final Object target, ServiceRegistry services) { super.init(target, services); this.__scriptServices = services; loggingManager = services.get(LoggingManager.class); Instantiator instantiator = services.get(Instantiator.class); FileLookup fileLookup = services.get(FileLookup.class); if (target instanceof FileOperations) { fileOperations = (FileOperations) target; } else if (getScriptSource().getResource().getFile() != null) { fileOperations = new DefaultFileOperations(fileLookup.getFileResolver(getScriptSource().getResource().getFile().getParentFile()), null, null, instantiator, fileLookup); } else { fileOperations = new DefaultFileOperations(fileLookup.getFileResolver(), null, null, instantiator, fileLookup); } processOperations = (ProcessOperations) fileOperations; }
Example #6
Source File: AbstractProject.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public LoggingManager getLogging() { return loggingManager; }
Example #7
Source File: DefaultScript.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public LoggingManager getLogging() { return loggingManager; }
Example #8
Source File: DefaultScript.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public LoggingManager getLogging() { return loggingManager; }
Example #9
Source File: AbstractTask.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public LoggingManager getLogging() { return loggingManager; }
Example #10
Source File: AbstractProject.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public LoggingManager getLogging() { return loggingManager; }
Example #11
Source File: AbstractTask.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public LoggingManager getLogging() { return loggingManager; }
Example #12
Source File: DefaultScript.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public LoggingManager getLogging() { return loggingManager; }
Example #13
Source File: DefaultScript.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public LoggingManager getLogging() { return loggingManager; }
Example #14
Source File: Project.java From javaide with GNU General Public License v3.0 | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this project's build script. By default, System.out is redirected to the Gradle * logging system at the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #15
Source File: Project.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this project's build script. By default, System.out is redirected to the Gradle * logging system at the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #16
Source File: Script.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this script. By default, System.out is redirected to the Gradle logging system * at the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #17
Source File: Task.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this task. By default, System.out is redirected to the Gradle logging system at * the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #18
Source File: Project.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this project's build script. By default, System.out is redirected to the Gradle * logging system at the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #19
Source File: Script.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this script. By default, System.out is redirected to the Gradle logging system * at the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #20
Source File: Task.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this task. By default, System.out is redirected to the Gradle logging system at * the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #21
Source File: Task.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this task. By default, System.out is redirected to the Gradle logging system at * the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #22
Source File: Project.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this project's build script. By default, System.out is redirected to the Gradle * logging system at the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #23
Source File: Script.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this script. By default, System.out is redirected to the Gradle logging system * at the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #24
Source File: Task.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this task. By default, System.out is redirected to the Gradle logging system at * the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #25
Source File: Project.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this project's build script. By default, System.out is redirected to the Gradle * logging system at the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();
Example #26
Source File: Script.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the {@link org.gradle.api.logging.LoggingManager} which can be used to control the logging level and * standard output/error capture for this script. By default, System.out is redirected to the Gradle logging system * at the QUIET log level, and System.err is redirected at the ERROR log level. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging();