1.)What return codes generate a build failure?
        a.) Assumption: Calling an execution target that return a non-zero
result will fail the owning project?
        b.) Target call's that returned a error (2) and did not appear to
fail the project.


2.) When compiling I have been validated the result of a build by searching
the build output for specific key words. 
        a.) Which is a better method, check the return codes or check a
build output log?
        b.) Is there a cleaner method to check output?
        c.) What regular expression would grab the preceding 15 lines in
addition to the matching line?


Example:
################
<?xml version="1.0" encoding="utf-8"?>
<project name="branch" default="compile" >

  <target name="compile" depends="dotnet,verify ">
  </target>

  <target name="dotnet">
    <record name="${logdir}/dotnet.log" append="no" action="start"></record>
    <exec dir="." executable="cmd" os="Windows XP">
      <arg line="/c blah.bat  "/>
    </exec>
    <record name="${logdir}/dotnet.log" action="stop"></record>
  </target>



  <target name="verify">
    <record name="${logdir}\verify-dotnet.log" append="no"
action="start"></record>

    <loadfile srcfile="${logdir}/dotnet.log" property="build.failed">
      <filterchain>
        <linecontainsregexp>
          <regexp
  pattern="DISTRIBUTION BUILD FAILED" />
        </linecontainsregexp>

      </filterchain>
    </loadfile>
    <echo>${build.failed}</echo>

    <fail>
      <condition >
        <matches pattern="DISTRIBUTION BUILD FAILED"
string="${build.failed}"/>
      </condition>
    </fail>

    <record name="${logdir}\verify-dotnet.log" action="stop"></record>
  </target>
</project>
################


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to