From e0f8aef6d65a7da53b416c8291a703841401e9eb Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Mon, 7 Nov 2016 22:56:27 +0100 Subject: [PATCH] DroidFish, CuckooChessEngine: Use java ant task. Use java ant task to create book.bin and eco.dat so that /usr/bin/java does not have to be hardcoded. --- .../.externalToolBuilders/BinBook_Builder.launch | 16 ++++++++++------ CuckooChessEngine/build_binbook.xml | 9 +++++++++ CuckooChessEngine/src/chess/Book.java | 2 +- .../.externalToolBuilders/ECO_Builder.launch | 14 +++++++++----- DroidFish/build_eco.xml | 11 +++++++++++ 5 files changed, 40 insertions(+), 12 deletions(-) create mode 100644 CuckooChessEngine/build_binbook.xml create mode 100644 DroidFish/build_eco.xml diff --git a/CuckooChessEngine/.externalToolBuilders/BinBook_Builder.launch b/CuckooChessEngine/.externalToolBuilders/BinBook_Builder.launch index c2dcb75..5c9eeaa 100644 --- a/CuckooChessEngine/.externalToolBuilders/BinBook_Builder.launch +++ b/CuckooChessEngine/.externalToolBuilders/BinBook_Builder.launch @@ -1,11 +1,15 @@ - - + + + + - - + + + + + - - + diff --git a/CuckooChessEngine/build_binbook.xml b/CuckooChessEngine/build_binbook.xml new file mode 100644 index 0000000..523d0f9 --- /dev/null +++ b/CuckooChessEngine/build_binbook.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/CuckooChessEngine/src/chess/Book.java b/CuckooChessEngine/src/chess/Book.java index 94d4059..58a7bd1 100644 --- a/CuckooChessEngine/src/chess/Book.java +++ b/CuckooChessEngine/src/chess/Book.java @@ -189,7 +189,7 @@ public class Book { /** Creates the book.bin file. */ public static void main(String[] args) throws IOException { List binBook = createBinBook(); - FileOutputStream out = new FileOutputStream("../src/book.bin"); + FileOutputStream out = new FileOutputStream("src/book.bin"); int bookLen = binBook.size(); byte[] binBookA = new byte[bookLen]; for (int i = 0; i < bookLen; i++) diff --git a/DroidFish/.externalToolBuilders/ECO_Builder.launch b/DroidFish/.externalToolBuilders/ECO_Builder.launch index b2e420c..c6be1c8 100644 --- a/DroidFish/.externalToolBuilders/ECO_Builder.launch +++ b/DroidFish/.externalToolBuilders/ECO_Builder.launch @@ -1,11 +1,15 @@ - + + + - - + + + + + - - + diff --git a/DroidFish/build_eco.xml b/DroidFish/build_eco.xml new file mode 100644 index 0000000..a21263f --- /dev/null +++ b/DroidFish/build_eco.xml @@ -0,0 +1,11 @@ + + + + + + + + +