Skip to content

Commit

Permalink
fixed #3 : Xtext 2.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
oehme committed Oct 21, 2014
1 parent ebdf56f commit cf554da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ subprojects {
apply plugin: 'de.oehme.sobula.bintray-release'

group = "org.xtext"
version = "0.1.0"
version = "0.1.1"

repositories {
jcenter()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.xtext.builder.standalone;

import java.io.File;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
Expand Down Expand Up @@ -52,7 +53,10 @@ public static boolean generate(String[] args) throws Exception {
fixEncoding(languages, builder);
builder.setLanguages(languages);
builder.setSourceDirs(sourcePath);

try {
Method javaSourceDirsSetter = StandaloneBuilder.class.getMethod("setJavaSourceDirs", Iterable.class);
javaSourceDirsSetter.invoke(builder, sourcePath);
} catch (Exception ignored) {}
return builder.launch();
}

Expand Down

0 comments on commit cf554da

Please sign in to comment.