I used Nant .81 for a long time and was able to add multiple files to a mail message.  I upgraded to Nant .85 and am seeing very different behavior.
 
Here is my task:

<mail 
    if="${sendothermail}"
    from=${mail.from}
 
    tolist="${mail.to}"
 
    subject="Successful Build! - ${project.formalname} ${release} ${project.version}"
 
    mailhost="${mail.host}"
 
    message
="Total Build Time: ${build.totaltime}>
    <
files
>
       
<include name="${project.src.success}"/>
       
<include name
="${project.installer.success}"/>
       
<include name
="${project.test.success}"/>
       
<include name="${p4.log}"/>
        <include name="${maillog}"/>
        <include name="${linksfile}"/>
    </files>
</mail>

It only includes the first 5 or 6 lines of certain files instead of the whole file. I tried debugging through the source and found that it gets copped off at multiple places.  First, when calling the ReadFile method it only returns so much to the content string.  Then when creating the bodyTest string some more gets chopped off. Then when it gets sent through the SmtpMail.Send it always gets cropped to the same location.

Original File:

---------------ERRORS---------------

---------------WARNINGS---------------
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Core\BaseDocumenter.cs(2364,21): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Core.BaseDocumenter.CheckForRestrictedNamespace(string)'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Core\BaseDocumenter.cs(2382,21): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Core.BaseDocumenter.CheckForUndocumentedAlways(System.Xml.XmlWriter, string)'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Core\BaseDocumenter.cs(87,31): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Core.BaseDocumenter.SlashDoc'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Core\BaseDocumenterConfig.cs(426,23): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Core.BaseDocumenterConfig.ReferenceAssemblies'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Core\Help2.cs(37,10): warning CS1573: Parameter 'HelpFileTitle' has no matching param tag in XML comment (but other parameters do)
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Core\Help2.cs(76,17): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Core.Help2.HelpFileTitle'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Core\Project.cs(97,14): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Core.Project.FindAssemblySlashDocByName(string)'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Documenter\Msdn\MsdnDocumenterConfig.cs(106,23): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Documenter.Msdn.MsdnDocumenterConfig.ScriptsDirectory'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Documenter\Msdn\MsdnDocumenterConfig.cs(289,23): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Documenter.Msdn.MsdnDocumenterConfig.FrameworkUrl'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Documenter\Msdn\MsdnDocumenterConfig.cs(313,23): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Documenter.Msdn.MsdnDocumenterConfig.NICollectionID'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Documenter\Msdn\XsltExtensions.cs(13,10): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Documenter.Msdn.XsltExtensions.XsltExtensions()'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Documenter\Msdn\XsltExtensions.cs(41,17): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Documenter.Msdn.XsltExtensions.GetEnumFieldTypeName(string)'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Documenter\Msdn\XsltExtensions.cs(48,17): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Documenter.Msdn.XsltExtensions.GetAttributeValue(string, string, string)'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Documenter\Msdn\XsltExtensions.cs(73,17): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Documenter.Msdn.XsltExtensions.DebugXSLWrite(string)'
W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Documenter\Msdn\XsltExtensions.cs(79,23): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Documenter.Msdn.XsltExtensions.GetNIHelpID(string, string)'
TOC.cpp(703) : warning C4996: 'System::Xml::Xsl::XslTransform::Load' was declared deprecated
TOC.cpp(713) : warning C4996: 'System::Xml::Xsl::XslTransform::Transform' was declared deprecated
Surveyor.cpp(120) : warning C4996: 'ATL::CRegKey::QueryValue' was declared deprecated
HelpProject.cpp(471) : warning C4996: 'ATL::CRegKey::QueryValue' was declared deprecated
CommentMacro.cpp(120) : warning C4018: '<' : signed/unsigned mismatch
LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'USER32.dll' discarded by /OPT:REF

Mail Message:

Total Build Time: 00:03:51

---------------ERRORS---------------

---------------WARNINGS---------------

W:\MStudio\DelawareReOrg\Dev2\BuildTools\Delaware\Trunk\ndoc\src\Core\BaseDocumenter.cs(2364,21): warning CS1591: Missing XML comment for publicly visible type or member 'NDoc.Core.BaseDocumenter.CheckForRestrictedNamespace(string)'

 

Please help. Let me know what I can send you to help debug this more.

Jeff

Reply via email to