-
Incident report
-
Resolution: Won't fix
-
Trivial
-
None
-
2.2.0rc2
-
None
-
Debian GNU/Linux Wheezy, openjdk-6
When trying to build Zabbix Java Gateway from 2.2.0-rc2, build fails with following error:
/bin/mkdir -p class/src
/bin/mkdir -p class/tests
javac -d class/src -classpath lib/org-json-2010-12-28.jar:lib/logback-core-0.9.27.jar:lib/logback-classic-0.9.27.jar:lib/slf4j-api-1.6.1.jar src/com/zabbix/gateway/*.java
jar cf bin/zabbix-java-gateway-2.2.0rc2.jar -C class/src .
java.io.FileNotFoundException: bin/zabbix-java-gateway-2.2.0rc2.jar (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
at java.io.FileOutputStream.<init>(FileOutputStream.java:99)
at sun.tools.jar.Main.run(Main.java:187)
at sun.tools.jar.Main.main(Main.java:1167)
That's because bin directory doesn't exist in src/zabbix_java and is not created by build script.
Following patch aims to fix that, creating bin directory before jar command is called.