I am working on a generalized validation utility database that I want to distribute as a JAR and automate with Ant. Using only Java, I can do something like
... int validationResults = this.validate(); System.exit(validationResults)
Use validation in planned assemblies using CI systems.
However, I write this in jRuby instead of Java (for learning). I tried the following methods, but they do not run "BUILD FALSE" in Ant.
java.lang.System.exit(1)
I saw tickets to the jRuby tracker about this (e.g. JRUBY-1650 ), but I could not find a solution to my problem.
I am running jRuby v1.6.6 and Warbler v1.3.2. The Ant target is as follows:
<target name="validate"> <java jar="./validator.jar" fork="true" /> </target>
Am I not doing it right, or does jRuby not support it (yet)?
source share