[Anthill-pro] Mailing the contents of the build log

Ivan "Rambius" Ivanov rambiusparkisanius at gmail.com
Wed Jul 5 12:24:29 CDT 2006


Hello,

Perhaps my previous email was kind of long. Let me repeat my question
that is related with report teplates:

Can the following macro be used for dumping the contents of an arbitrary file:

#macro ( outputFile file )
    #set ( $start = $fileReaderHelper.startReadingFile($file) )
    #foreach( $logStr in $fileReaderHelper )
        #if ( $logStr )
             $logStr #set ( $logStr = false )
        #end
    #end
    #set ( $stop = $fileReaderHelper.stopReadingFile() )
#end

I use it in the following way:

#set ( $repositoryDriver = $buildOwner.getRepositoryDriver() )
#set ( $localWorkDir = $repositoryDriver.getLocalWorkDirectory($buildDef))
#set ( $reportFileName = "$localWorkDir\report.log")
#outputFile ($reportFileName)

I receive the email but it does not contain the content of the file. I
verified that the file existed on the file system and its path is
correct.

Regards
Ivan

-- 
Tangra Mega Rock: http://www.radiotangra.com


More information about the Anthill-pro mailing list