com.uber.infer.util.JavacUtils.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infer-plugin Show documentation
Show all versions of infer-plugin Show documentation
Gradle integration for infer static analyzer.
The newest version!
package com.uber.infer.util
import org.gradle.api.file.FileCollection
/**
* Utilities for creating Javac commands.
*/
public final class JavacUtils {
private JavacUtils() { }
static String generateJavacArgument(FileCollection files, String argument = "", String fileDelimiter = ":") {
StringBuilder argumentBuilder = new StringBuilder();
if (files.size() > 0) {
argumentBuilder.append(argument)
argumentBuilder.append(" ")
files.each {
argumentBuilder.append(it.absolutePath)
argumentBuilder.append(fileDelimiter)
}
argumentBuilder.append(" ")
}
return argumentBuilder.toString()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy