Have there been any changes to the string::contains function since .85?
Here is why I ask. I have the following in my build script:
<property name="syncreport.error" value="false" />
<foreach item="Line" property="syncreportline"
in="${ProjectDir}/Build/DBGhost/dbghostreport.txt">
<property unless="${syncreport.error}" name="syncreport.error"
value="${string::contains(syncreportline, '<ERROR>')}" />
<echo level="Error" message="${syncreportline}" if="${syncreport.error}" />
<property if="${syncreport.error}" name="synreport.error" value="${not
string::contains(syncreportline, '</ERROR>')}" />
</foreach>
It reads a log filling looking for the <ERROR></ERROR> tags. It echos out what
it in the tags including the lines with the tags.
This has always worked fine previously. But, I am working on a build that is
using .86 beta1 and this is what I get in the build report now:
7/23/2009 4:54:09 PM...<ERROR>
7/23/2009 4:54:09 PM...Error in
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Stored
Procedures\dbo.procCheckRegister.sql
7/23/2009 4:54:09 PM...Msg 209, Level 16, State 1, Procedure procCheckRegister,
Line 96
7/23/2009 4:54:09 PM...Ambiguous column name 'DiscountTaken'.
7/23/2009 4:54:09 PM...</ERROR>
7/23/2009 4:54:09 PM...Disabling triggers before running data scripts
7/23/2009 4:54:10 PM...Executing file 1 of 9 files -
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Static
Data\dbo.tbl1099Category.sql
7/23/2009 4:54:10 PM...Executing file 2 of 9 files -
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Static
Data\dbo.tblCheckFormatHeader.sql
7/23/2009 4:54:10 PM...Executing file 3 of 9 files -
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Static
Data\dbo.tblGroupType.sql
7/23/2009 4:54:10 PM...Executing file 4 of 9 files -
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Static
Data\dbo.tblPolicy.sql
7/23/2009 4:54:10 PM...Executing file 5 of 9 files -
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Static
Data\dbo.tblReportFormat.sql
7/23/2009 4:54:10 PM...Executing file 6 of 9 files -
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Static
Data\dbo.tblReportSection.sql
7/23/2009 4:54:10 PM...Executing file 7 of 9 files -
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Static
Data\dbo.tblReportSectionDetail.sql
7/23/2009 4:54:10 PM...Executing file 8 of 9 files -
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Static
Data\dbo.tblCheckFormatDetail.sql
7/23/2009 4:54:10 PM...Executing file 9 of 9 files -
c:\Development\AmsiSuite\trunk\Product\Production\eFinancials.Sql\Static
Data\DbVersion.sql
7/23/2009 4:54:10 PM...Enabling triggers that were disabled before running data
scripts
DB Ghost Database Builder - process complete
So, it is seeing the open tag and starts logging. But, it never seems to return
a true when for the close tag to shut the logging off. So, now I get from the
<ERROR> tag to the end of the file.
Any ideas on why this would be? I thought maybe there was an issue with the
forward slash but I don't see that there is an XML entity to replace that.
Thanks,
BOb
------------------------------------------------------------------------------
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users