Add java program to create test data

This commit is contained in:
2019-06-08 15:39:50 +02:00
parent f22a9eb260
commit 4e8b4c364b
7 changed files with 338 additions and 0 deletions

22
testdata/create.sh vendored Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
# use the correct working directory
cd $(dirname "$0")
# compile java code
mkdir -p bin
javac -sourcepath src -d bin src/creation/Creator.java
# recreate output dir
rm -rf outputdir
mkdir -p outputdir/data/textures
# create textures
java -classpath bin creation.Creator
# place a server binary in the output directory
(
cd ../server/texture-sync-server
cargo build --release
)
cp ../server/texture-sync-server/target/release/texture-sync-server ./outputdir/