Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

<project name="ant-junit">
        
        <!--
          - Check to see if junit jar is deployed in ANT, and if it is not, deploy it and fail.
          -->
        <available property="ant-junit.jar.available" filepath="${env.ANT_HOME}/lib" file="ant-junit.jar"/>
        <available property="junit.jar.available" filepath="${env.ANT_HOME}/lib" file="junit.jar"/>
        
        <if>
                <not>
                        <and>
                                <isset property="ant-junit.jar.available"/>
                                <isset property="junit.jar.available"/>
                        </and>
                </not>
                <then>
                        <property name="force.fail.message" value="junit.jar MUST be deployed in ${env.ANT_HOME}/lib (where ant-junit.jar lives). Please copy ${env.GBE_DPKG)/Junit/3.8.1.cots/jar/junit.jar to ${env.ANT_HOME}/lib."/>
                        <fail/>
                </then>
        </if>

</project>