Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test-jar-complete target.

Writing more ant to do this just made me throw up in my mouth a bit.
  • Loading branch information...
commit dd677bd7e24b415261661aa4441ba6c6ba1b7b13 1 parent 1c990df
@nicksieger nicksieger authored
Showing with 29 additions and 0 deletions.
  1. +29 −0 build.xml
View
29 build.xml
@@ -602,6 +602,35 @@
</antcall>
</target>
+ <target name="test-jar-complete" depends="jar-complete"
+ description="Do some sanity checks on the complete jar.">
+ <java jar="lib/jruby-complete.jar" fork="true" failonerror="true" outputproperty="jar-complete-gems">
+ <arg line="-v -S gem list"/>
+ </java>
+ <echo message="${jar-complete-gems}"/>
+ <fail>
+ <condition>
+ <not><and>
+ <contains string="${jar-complete-gems}" substring="rake"/>
+ <contains string="${jar-complete-gems}" substring="rspec"/>
+ <contains string="${jar-complete-gems}" substring="sources"/>
+ </and></not>
+ </condition>
+ </fail>
+ <java jar="lib/jruby-complete.jar" fork="true" failonerror="true" outputproperty="jar-complete-rake">
+ <arg line="-v -S rake --help"/>
+ </java>
+ <echo message="${jar-complete-rake}"/>
+ <fail>
+ <condition>
+ <not><and>
+ <contains string="${jar-complete-rake}" substring="rakefile"/>
+ <contains string="${jar-complete-rake}" substring="dry-run"/>
+ </and></not>
+ </condition>
+ </fail>
+ </target>
+
<target name="dist-jar-complete" depends="jar-complete">
<mkdir dir="${dist.dir}"/>
<move file="${dest.lib.dir}/jruby-complete.jar" tofile="${dist.dir}/jruby-complete-${version.jruby}.jar"/>
Please sign in to comment.
Something went wrong with that request. Please try again.