Skip to content

Commit

Permalink
location of convert changed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 12, 2023
1 parent 1e2036c commit a4caa6e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions eo-parser/src/test/java/org/eolang/parser/XMIRTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,15 @@ final class XMIRTest {
*/
@Test
void convertsAntlrToEbnf() throws Exception {
final Path home = Paths.get("/code/convert-master/build");
final Path jar = home.resolve("libs").resolve("convert.jar");
final Path lib = Paths.get("/code/convert-master/build/lib");
Assumptions.assumeTrue(
jar.toFile().exists(),
String.format("The JAR of convert tool is not available: %s", jar)
lib.toFile().exists(),
String.format("The JAR of convert tool is not available: %s", lib)
);
final List<String> jars = Stream.of(home.resolve("lib").toFile().listFiles())
final List<String> jars = Stream.of(lib.toFile().listFiles())
.filter(file -> !file.isDirectory())
.map(File::getAbsolutePath)
.collect(Collectors.toList());
jars.add(jar.getFileName().toString());
final List<String> args = new LinkedList<>();
args.add("java");
args.add("-cp");
Expand Down

0 comments on commit a4caa6e

Please sign in to comment.