org.gradle.api.logging.Logger Java Examples

The following examples show how to use org.gradle.api.logging.Logger. 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: DevAppServerStartTask.java    From app-gradle-plugin with Apache License 2.0 6 votes vote down vote up
/** Task entrypoint : start the dev appserver (non-blocking). */
@TaskAction
public void startAction() throws AppEngineException, IOException {

  // Add a listener to write to a file for non-blocking starts, this really only works
  // when the gradle daemon is running (which is default for newer versions of gradle)
  File logFile = new File(devAppServerLoggingDir, "dev_appserver.out");
  FileOutputLineListener logFileWriter = new FileOutputLineListener(logFile);

  Logger taskLogger = getLogger();
  ProcessHandler processHandler =
      LegacyProcessHandler.builder()
          .addStdOutLineListener(taskLogger::lifecycle)
          .addStdOutLineListener(logFileWriter)
          .addStdErrLineListener(taskLogger::lifecycle)
          .addStdErrLineListener(logFileWriter)
          .setExitListener(new NonZeroExceptionExitListener())
          .buildDevAppServerAsync(runConfig.getStartSuccessTimeout());

  devServers.newDevAppServer(processHandler).run(runConfig.toRunConfiguration());

  getLogger().lifecycle("Dev App Server output written to : " + logFile.getAbsolutePath());
}
 
Example #2
Source File: GradleProjectUtilities.java    From steady with Apache License 2.0 6 votes vote down vote up
protected static ProjectOutputTypes determineProjectOutputType(Project project, Logger logger) {

        ProjectOutputTypes projectOutputType = null;

        for ( String kp: knownPlugins.keySet()) {
            if (project.getPlugins().hasPlugin(kp)) {
                logger.quiet("Found plugin: " + kp);
                projectOutputType = knownPlugins.get(kp);
                break;
            }
        }

        if (projectOutputType != null) {
            logger.quiet("Project type determined: {}", projectOutputType.toString());
        }

        return projectOutputType;
    }
 
Example #3
Source File: VerifyJigEnvironmentTask.java    From jig with Apache License 2.0 6 votes vote down vote up
@TaskAction
void verify() {
    try {
        GraphvizCmdLineEngine graphvizCmdLineEngine = new GraphvizCmdLineEngine();
        GraphvizjView.confirmInstalledGraphviz(graphvizCmdLineEngine);
    } catch(RuntimeException e) {
        Logger logger = getLogger();
        logger.warn("-- JIG ERROR -----------------------------------------------");
        logger.warn("+ 実行可能なGraphvizが見つけられませんでした。");
        logger.warn("+ dotにPATHが通っているか確認してください。");
        logger.warn("+ JIGはダイアグラムの出力にGraphvizを使用しています。");
        logger.warn("+ ");
        logger.warn("+ Graphvizは以下から入手できます。");
        logger.warn("+     https://www.graphviz.org/");
        logger.warn("------------------------------------------------------------");

        throw e;
    }
}
 
Example #4
Source File: TaobaoInstantRunDex.java    From atlas with Apache License 2.0 6 votes vote down vote up
public TaobaoInstantRunDex(
        AppVariantContext variantContext,
        @NonNull InstantRunVariantScope transformVariantScope,
        DexByteCodeConverter dexByteCodeConverter,
        @NonNull DexOptions dexOptions,
        @NonNull Logger logger,
        int minSdkForDx,
        BaseVariantOutput variantOutput) {
    this.variantScope = transformVariantScope;
    this.variantContext = variantContext;
    this.dexByteCodeConverter = dexByteCodeConverter;
    this.dexOptions = dexOptions;
    this.logger = new LoggerWrapper(logger);
    this.minSdkForDx = minSdkForDx;
    this.variantOutput = variantOutput;
}
 
Example #5
Source File: StackdriverMetrics.java    From firebase-android-sdk with Apache License 2.0 6 votes vote down vote up
StackdriverMetrics(Gradle gradle, Logger logger) {
  this.logger = logger;
  globalContext = deserializeContext();

  ensureStackdriver(gradle);

  Stats.getViewManager()
      .registerView(
          View.create(
              View.Name.create("fireci/tasklatency"),
              "The latency in milliseconds",
              M_LATENCY,
              Aggregation.LastValue.create(),
              TAG_KEYS));

  Stats.getViewManager()
      .registerView(
          View.create(
              View.Name.create("fireci/tasksuccess"),
              "Indicated success or failure.",
              M_SUCCESS,
              Aggregation.LastValue.create(),
              TAG_KEYS));
}
 
Example #6
Source File: AwoInstaller.java    From atlas with Apache License 2.0 6 votes vote down vote up
/**
 * todo how know which app will be debugged?
 * just support taobao.apk now
 */
private static void notifyApppatching(AndroidBuilder androidBuilder, String patchPkg, Logger logger) {
    CommandExecutor executor = CommandExecutor.Factory.createDefaultCommmandExecutor();
    executor.setLogger(logger);
    executor.setCaptureStdOut(true);
    executor.setCaptureStdErr(true);
    //        List<String> killCmd = Arrays.asList("shell", "am", "force-stop", packageNameForPatch);
    //        List<String> startCmd = Arrays.asList("shell", "am", "start", packageNameForPatch + "/" +
    // launcherActivityForPatch);
    List<String> patchCmd = Arrays.asList("shell", "am", "broadcast", "-a", "com.taobao.atlas.intent.PATCH_APP",
                                          "-e", "pkg", patchPkg, "-n",
                                          patchPkg + "/com.taobao.atlas.update.AwoPatchReceiver");
    try {
        executor.executeCommand(androidBuilder.getSdkInfo().getAdb().getAbsolutePath(), patchCmd, false);
    } catch (Exception e) {
        throw new RuntimeException("error while restarting app,you can also restart by yourself", e);
    }
}
 
Example #7
Source File: ZincScalaCompiler.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
static WorkResult execute(ScalaJavaJointCompileSpec spec) {
    LOGGER.info("Compiling with Zinc Scala compiler.");

    xsbti.Logger logger = new SbtLoggerAdapter();

    com.typesafe.zinc.Compiler compiler = createCompiler(spec.getScalaClasspath(), spec.getZincClasspath(), logger);
    List<String> scalacOptions = new ScalaCompilerArgumentsGenerator().generate(spec);
    List<String> javacOptions = new JavaCompilerArgumentsBuilder(spec).includeClasspath(false).build();
    Inputs inputs = Inputs.create(ImmutableList.copyOf(spec.getClasspath()), ImmutableList.copyOf(spec.getSource()), spec.getDestinationDir(),
            scalacOptions, javacOptions, spec.getScalaCompileOptions().getIncrementalOptions().getAnalysisFile(), spec.getAnalysisMap(), "mixed", getIncOptions(), true);
    if (LOGGER.isDebugEnabled()) {
        Inputs.debug(inputs, logger);
    }

    try {
        compiler.compile(inputs, logger);
    } catch (xsbti.CompileFailed e) {
        throw new CompilationFailedException(e);
    }

    return new SimpleWorkResult(true);
}
 
Example #8
Source File: ZincScalaCompiler.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
static WorkResult execute(ScalaJavaJointCompileSpec spec) {
    LOGGER.info("Compiling with Zinc Scala compiler.");

    xsbti.Logger logger = new SbtLoggerAdapter();

    com.typesafe.zinc.Compiler compiler = createCompiler(spec.getScalaClasspath(), spec.getZincClasspath(), logger);
    List<String> scalacOptions = new ScalaCompilerArgumentsGenerator().generate(spec);
    List<String> javacOptions = new JavaCompilerArgumentsBuilder(spec).includeClasspath(false).build();
    Inputs inputs = Inputs.create(ImmutableList.copyOf(spec.getClasspath()), ImmutableList.copyOf(spec.getSource()), spec.getDestinationDir(),
            scalacOptions, javacOptions, spec.getScalaCompileOptions().getIncrementalOptions().getAnalysisFile(), spec.getAnalysisMap(), "mixed", getIncOptions(), true);
    if (LOGGER.isDebugEnabled()) {
        Inputs.debug(inputs, logger);
    }

    try {
        compiler.compile(inputs, logger);
    } catch (xsbti.CompileFailed e) {
        throw new CompilationFailedException(e);
    }

    return new SimpleWorkResult(true);
}
 
Example #9
Source File: ZincScalaCompiler.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
static WorkResult execute(ScalaJavaJointCompileSpec spec) {
    LOGGER.info("Compiling with Zinc Scala compiler.");

    xsbti.Logger logger = new SbtLoggerAdapter();

    com.typesafe.zinc.Compiler compiler = createCompiler(spec.getScalaClasspath(), spec.getZincClasspath(), logger);
    List<String> scalacOptions = new ScalaCompilerArgumentsGenerator().generate(spec);
    List<String> javacOptions = new JavaCompilerArgumentsBuilder(spec).includeClasspath(false).build();
    Inputs inputs = Inputs.create(ImmutableList.copyOf(spec.getClasspath()), ImmutableList.copyOf(spec.getSource()), spec.getDestinationDir(),
            scalacOptions, javacOptions, spec.getScalaCompileOptions().getIncrementalOptions().getAnalysisFile(), spec.getAnalysisMap(), "mixed", getIncOptions(), true);
    if (LOGGER.isDebugEnabled()) {
        Inputs.debug(inputs, logger);
    }

    try {
        compiler.compile(inputs, logger);
    } catch (xsbti.CompileFailed e) {
        throw new CompilationFailedException(e);
    }

    return new SimpleWorkResult(true);
}
 
Example #10
Source File: ZincScalaCompiler.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
static com.typesafe.zinc.Compiler createCompiler(Iterable<File> scalaClasspath, Iterable<File> zincClasspath, xsbti.Logger logger) {
    ScalaLocation scalaLocation = ScalaLocation.fromPath(Lists.newArrayList(scalaClasspath));
    SbtJars sbtJars = SbtJars.fromPath(Lists.newArrayList(zincClasspath));
    Setup setup = Setup.create(scalaLocation, sbtJars, Jvm.current().getJavaHome(), true);
    if (LOGGER.isDebugEnabled()) {
        Setup.debug(setup, logger);
    }
    return com.typesafe.zinc.Compiler.getOrCreate(setup, logger);
}
 
Example #11
Source File: CompiledJavaccFile.java    From javaccPlugin with MIT License 5 votes vote down vote up
CompiledJavaccFile(File file, File outputDirectory, FileTree customAstClassesDirectory, File targetDirectory, Logger logger) {
    this.compiledJavaccFile = file;
    this.outputDirectory = outputDirectory;
    this.customAstClassesDirectory = customAstClassesDirectory;
    this.targetDirectory = targetDirectory;
    this.logger = logger;
}
 
Example #12
Source File: ZincScalaCompiler.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
static WorkResult execute(ScalaJavaJointCompileSpec spec) {
    LOGGER.info("Compiling with Zinc Scala compiler.");

    xsbti.Logger logger = new SbtLoggerAdapter();

    com.typesafe.zinc.Compiler compiler = createCompiler(spec.getScalaClasspath(), spec.getZincClasspath(), logger);
    List<String> scalacOptions = new ScalaCompilerArgumentsGenerator().generate(spec);
    List<String> javacOptions = new JavaCompilerArgumentsBuilder(spec).includeClasspath(false).build();
    Inputs inputs = Inputs.create(ImmutableList.copyOf(spec.getClasspath()), ImmutableList.copyOf(spec.getSource()), spec.getDestinationDir(),
            scalacOptions, javacOptions, spec.getScalaCompileOptions().getIncrementalOptions().getAnalysisFile(), spec.getAnalysisMap(), "mixed", getIncOptions(), true);
    if (LOGGER.isDebugEnabled()) {
        Inputs.debug(inputs, logger);
    }

    try {
        compiler.compile(inputs, logger);
    } catch (xsbti.CompileFailed e) {
        throw new CompilationFailedException(e);
    }

    return new SimpleWorkResult(true);
}
 
Example #13
Source File: CompiledJavaccFileTest.java    From javaccPlugin with MIT License 5 votes vote down vote up
@Before
public void createCompiledJavaccFile() {
    outputDirectory = new File(getClass().getResource("/compiledJavaccFile/output").getFile());
    targetDirectory = new File(getClass().getResource("/compiledJavaccFile/target").getFile());
    logger = mock(Logger.class);
    
    Set<File> sourceTree = new HashSet<File>();
    sourceTree.add(new File(getClass().getResource("/compiledJavaccFile/customAstClasses").getFile()));
    customAstClassesDirectory = mock(FileTree.class);
    when(customAstClassesDirectory.getFiles()).thenReturn(sourceTree);
}
 
Example #14
Source File: ProductFlavorFactory.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
public ProductFlavorFactory(@NonNull Instantiator instantiator,
                            @NonNull Project project,
                            @NonNull Logger logger) {
    this.instantiator = instantiator;
    this.project = project;
    this.logger = logger;
}
 
Example #15
Source File: ResourcesShrinker.java    From atlas with Apache License 2.0 5 votes vote down vote up
public ResourcesShrinker(ShrinkResourcesTransform resourcesTransform, @NonNull BaseVariantData variantData,
                         @NonNull FileCollection uncompressedResources,
                         @NonNull File compressedResources,
                         @NonNull AaptGeneration aaptGeneration,
                         @NonNull FileCollection splitListInput,
                         @NonNull Logger logger,
                         AppVariantContext variantContext) {

    this.variantContext = variantContext;
    this.resourcesTransform = resourcesTransform;
    VariantScope variantScope = variantData.getScope();
    GlobalScope globalScope = variantScope.getGlobalScope();
    GradleVariantConfiguration variantConfig = variantData.getVariantConfiguration();

    this.variantData = variantData;
    this.logger = logger;

    this.sourceDir = variantScope.getRClassSourceOutputDir();
    this.resourceDir = variantScope.getOutput(TaskOutputHolder.TaskOutputType.MERGED_NOT_COMPILED_RES);
    this.mappingFileSrc =
            variantScope.hasOutput(TaskOutputHolder.TaskOutputType.APK_MAPPING)
                    ? variantScope.getOutput(TaskOutputHolder.TaskOutputType.APK_MAPPING)
                    : null;
    this.mergedManifests = variantScope.getOutput(TaskOutputHolder.TaskOutputType.MERGED_MANIFESTS);
    this.uncompressedResources = uncompressedResources;
    this.splitListInput = splitListInput;

    this.aaptGeneration = aaptGeneration;
    this.aaptOptions = globalScope.getExtension().getAaptOptions();
    this.variantType = variantData.getType();
    this.isDebuggableBuildType = variantConfig.getBuildType().isDebuggable();
    this.multiOutputPolicy = variantData.getOutputScope().getMultiOutputPolicy();
    this.compressedResources = compressedResources;
}
 
Example #16
Source File: GradleBuildComparison.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public GradleBuildComparison(
        ComparableGradleBuildExecuter sourceBuildExecuter,
        ComparableGradleBuildExecuter targetBuildExecuter,
        Logger logger,
        ProgressLogger progressLogger,
        Gradle gradle) {
    this.sourceBuildExecuter = sourceBuildExecuter;
    this.targetBuildExecuter = targetBuildExecuter;
    this.logger = logger;
    this.progressLogger = progressLogger;
    this.gradle = gradle;
}
 
Example #17
Source File: DefaultProcessRunner.java    From shipkit with MIT License 5 votes vote down vote up
String run(Logger log, List<String> commandLine) {
    // WARNING!!! ensure that masked command line is used for all logging!!!
    String maskedCommandLine = mask(join(commandLine, " "));
    log.lifecycle("  Executing:\n    " + maskedCommandLine);

    ProcessResult result = executeProcess(commandLine, maskedCommandLine);

    if (result.getExitValue() != 0) {
        return executionOfCommandFailed(maskedCommandLine, result);
    } else {
        String output = result.getOutput();
        LOG.info("Output from external process '{}':\n{}", maskedCommandLine, output);
        return output;
    }
}
 
Example #18
Source File: IgniteDeepTask.java    From radiance with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@TaskAction
public void transcode() {
    Logger logger = getLogger();

    logger.trace("Working on files in " + inputRootDirectory.getAbsolutePath());

    if (!this.inputRootDirectory.exists()) {
        return;
    }

    this.outputRootDirectory.mkdirs();

    boolean renderAsKotlinCode = ("kotlin".compareTo(outputLanguage) == 0);

    LanguageRenderer languageRenderer = renderAsKotlinCode
            ? new KotlinLanguageRenderer()
            : new JavaLanguageRenderer();
    String outputFileNameExtension = ("java".compareTo(outputLanguage) == 0) ? ".java" : ".kt";

    logger.trace("Processing " + inputRootDirectory.getAbsolutePath() + " to " + outputRootPackageName +
            " in " + outputLanguage);

    String templateFileName = "/org/pushingpixels/photon/api/transcoder/" + outputLanguage + "/"
            + "SvgTranscoderTemplate";
    templateFileName += (useResizableTemplate ? "Resizable" : "Plain");
    templateFileName += ".templ";

    processFolder(inputRootDirectory, outputRootDirectory, outputClassNamePrefix, outputFileNameExtension,
            outputRootPackageName, languageRenderer, templateFileName);
}
 
Example #19
Source File: IgniteDeepTask.java    From radiance with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
protected void processFolder(File inputFolder, File outputFolder,
        String outputClassNamePrefix, String outputFileNameExtension,
        String outputPackageName, LanguageRenderer languageRenderer,
        String templateFile) {

    Logger logger = getLogger();
    logger.trace("Working on files in " + inputFolder.getAbsolutePath());

    // Transcode all SVG files in this folder
    transcodeAllFilesInFolder(inputFolder, outputFolder, outputClassNamePrefix, outputFileNameExtension,
            outputPackageName, languageRenderer, templateFile);

    // Now scan the folder for sub-folders
    for (File inputSubfolder : inputFolder.listFiles((File dir, String name) -> new File(dir, name).isDirectory())) {
        String subfolderName = inputSubfolder.getName();
        logger.trace("Going into sub-folder " + subfolderName);

        // Mirror the input subfolder structure to the output
        File outputSubfolder = new File(outputFolder, subfolderName);
        if (!outputSubfolder.exists()) {
            outputSubfolder.mkdir();
        }

        // And recursively process SVG content (and possible folders)
        processFolder(inputSubfolder, outputSubfolder, outputClassNamePrefix, outputFileNameExtension,
                outputPackageName + "." + subfolderName, languageRenderer,
                templateFile);
    }
    System.out.println();
}
 
Example #20
Source File: IgniteTask.java    From radiance with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@TaskAction
public void transcode() {
    Logger logger = getLogger();

    logger.trace("Working on files in " + inputDirectory.getAbsolutePath());

    if (!this.inputDirectory.exists()) {
        return;
    }

    this.outputDirectory.mkdirs();

    boolean renderAsKotlinCode = ("kotlin".compareTo(outputLanguage) == 0);

    LanguageRenderer languageRenderer = renderAsKotlinCode
            ? new KotlinLanguageRenderer()
            : new JavaLanguageRenderer();
    String outputFileNameExtension = ("java".compareTo(outputLanguage) == 0) ? ".java" : ".kt";

    logger.trace("Processing " + inputDirectory.getAbsolutePath() + " to " + outputPackageName +
            " in " + outputLanguage);

    String templateFileName = "/org/pushingpixels/photon/api/transcoder/" + outputLanguage + "/"
            + "SvgTranscoderTemplate";
    templateFileName += (useResizableTemplate ? "Resizable" : "Plain");
    templateFileName += ".templ";

    this.transcodeAllFilesInFolder(inputDirectory, outputDirectory,
            outputClassNamePrefix, outputFileNameExtension,
            outputPackageName, languageRenderer, templateFileName);
}
 
Example #21
Source File: ZincScalaCompiler.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
static com.typesafe.zinc.Compiler createCompiler(Iterable<File> scalaClasspath, Iterable<File> zincClasspath, xsbti.Logger logger) {
    ScalaLocation scalaLocation = ScalaLocation.fromPath(Lists.newArrayList(scalaClasspath));
    SbtJars sbtJars = SbtJars.fromPath(Lists.newArrayList(zincClasspath));
    Setup setup = Setup.create(scalaLocation, sbtJars, Jvm.current().getJavaHome(), true);
    if (LOGGER.isDebugEnabled()) {
        Setup.debug(setup, logger);
    }
    return com.typesafe.zinc.Compiler.getOrCreate(setup, logger);
}
 
Example #22
Source File: ZincScalaCompiler.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
static com.typesafe.zinc.Compiler createCompiler(Iterable<File> scalaClasspath, Iterable<File> zincClasspath, xsbti.Logger logger) {
    ScalaLocation scalaLocation = ScalaLocation.fromPath(Lists.newArrayList(scalaClasspath));
    SbtJars sbtJars = SbtJars.fromPath(Lists.newArrayList(zincClasspath));
    Setup setup = Setup.create(scalaLocation, sbtJars, Jvm.current().getJavaHome(), true);
    if (LOGGER.isDebugEnabled()) {
        Setup.debug(setup, logger);
    }
    return com.typesafe.zinc.Compiler.getOrCreate(setup, logger);
}
 
Example #23
Source File: CompiledJavaccFilesDirectoryFactory.java    From javaccPlugin with MIT License 5 votes vote down vote up
public CompiledJavaccFilesDirectory getCompiledJavaccFilesDirectory(File outputDirectory, FileTree customAstClassesDirectory, File targetDirectory, Logger logger) {
    if ((outputDirectory == null) || !outputDirectory.exists() || !outputDirectory.isDirectory()) {
        throw new IllegalArgumentException("outputDirectory [" + outputDirectory + "] must be an existing directory");
    }
    
    if (customAstClassesDirectory == null) {
        throw new IllegalArgumentException("customAstClassesDirectory [" + outputDirectory + "] must not be null");
    }
    
    if ((targetDirectory == null) || !targetDirectory.exists() || !targetDirectory.isDirectory()) {
        throw new IllegalArgumentException("targetDirectory [" + targetDirectory + "] must be an existing directory");
    }
    
    return new CompiledJavaccFilesDirectory(outputDirectory, customAstClassesDirectory, targetDirectory, logger);
}
 
Example #24
Source File: FTPUploader.java    From azure-gradle-plugins with MIT License 4 votes vote down vote up
public FTPUploader(Logger logger) {
    this.logger = logger;
}
 
Example #25
Source File: TaobaoInstantRunDependenciesApkBuilder.java    From atlas with Apache License 2.0 4 votes vote down vote up
public TaobaoInstantRunDependenciesApkBuilder(Logger logger, Project project, InstantRunBuildContext buildContext, AndroidBuilder androidBuilder, FileCache fileCache, PackagingScope packagingScope, CoreSigningConfig signingConf, AaptGeneration aaptGeneration, AaptOptions aaptOptions, File outputDirectory, File supportDirectory, File aaptIntermediateDirectory) {
    super(logger, project, buildContext, androidBuilder, fileCache, packagingScope, signingConf, aaptGeneration, aaptOptions, outputDirectory, supportDirectory, aaptIntermediateDirectory);
}
 
Example #26
Source File: DefaultChannelConfigFactory.java    From atlas with Apache License 2.0 4 votes vote down vote up
public DefaultChannelConfigFactory(Instantiator instantiator, Project project, Logger logger) {
    this.instantiator = instantiator;
    this.project = project;
    this.logger = logger;
}
 
Example #27
Source File: MixinMethod.java    From android-perftracking with MIT License 4 votes vote down vote up
public MixinMethod(Mixin mixin, MethodNode mn, Logger log) {
  _mixin = mixin;
  _mn = mn;
  _log = log;
}
 
Example #28
Source File: ClassTrimmer.java    From android-perftracking with MIT License 4 votes vote down vote up
public ClassTrimmer(String compileSdkVersion, ClassProvider provider, Logger log) {
  _provider = provider;
  _log = log;
  _compileSdkVersion = parseCompileSdkVersion(compileSdkVersion);
}
 
Example #29
Source File: Mixin.java    From android-perftracking with MIT License 4 votes vote down vote up
public Mixin(Logger log) {
  _log = log;
}
 
Example #30
Source File: DependencyManager.java    From dart with Apache License 2.0 4 votes vote down vote up
public DependencyManager(Project project, Logger logger) {
  this.project = project;
  this.logger = logger;
}