import org.xtext.builddsl.lib.JavaCompilerParams;
@SuppressWarnings("all")
public class JavaCompiler {
public static void javac(final Procedure1<? super JavaCompilerParams> init) {
final JavaCompilerParams params = new JavaCompilerParams();
init.apply(params);
final ArrayList<String> list = CollectionLiterals.<String>newArrayList();
File _destination = params.getDestination();
boolean _equals = Objects.equal(_destination, null);
if (_equals) {
list.add("-d");
list.add("none");
} else {
list.add("-d");
File _destination_1 = params.getDestination();
String _string = _destination_1.toString();
list.add(_string);
}
Collection<File> _classpath = params.getClasspath();
boolean _isEmpty = _classpath.isEmpty();
boolean _not = (!_isEmpty);
if (_not) {
list.add("-classpath");
Collection<File> _classpath_1 = params.getClasspath();
String _join = IterableExtensions.join(_classpath_1, ":");
list.add(_join);
}
Collection<File> _sources = params.getSources();
final Function1<File, String> _function = new Function1<File, String>() {
public String apply(final File it) {
return it.toString();
}
};