[Anthill-pro] Mailing the contents of the build log
Eric Minick
etm at urbancode.com
Wed Jul 5 13:36:03 CDT 2006
Ivan,
I apologize. I typed too quickly and communicated exactly the wrong the
thing. I don't think the separation is doable.
Anthill3 is reasonably stable. It still lacks some of the features of
the 2.x, although it brings the build farm capabilities, deployments,
promotions in nicely. We are currently using it in production to host a
dozen projects, most of which are in some way related to 3.0. I'm
expecting a release candidate sometime mid-month and if all goes well
that will become the 3.0 version.
Regards,
Eric
Ivan "Rambius" Ivanov wrote:
> Hello Eric,
>
> Thank you for your prompt response.
>
> On 7/5/06, Eric Minick <etm at urbancode.com> wrote:
>
>> Ivan,
>>
>> Sorry for the delay. I was looking into the distinction between the log
>> data and the output data in the first part of your question. As far as I
>> can tell, that is really doable in Pro.
>
> Can you please elaborate more about how it is doable?
>
>> That distinction is made much
>> more explicit in 3.0, but the support for sending them in emails is
>> still in progress.
>
> How stable is Anthill Pro 3.0? When do you plan to release a
> production version? We are using 2.6.1. I saw the announcements for
> 2.6.2 and I am thinking of upgrading to it.
>
>>
>> As for the second part, you definately do need to have a hook to the
>> file object, rather than just the path to use the file reader.
>
> Yes, I do think so as well. But all I have is the path to the file and
> it is not clear to me how to instantiate a File object with it in a
> velocity template.
>
>> If you'd
>> like, it would be easy to add a helper method that starts reading from
>> some file path.
>
> Well, I believe that this helper method should be added in
> FileReaderHelper and it would be like this:
>
> public void startReadingFile(String filename) {
> startReadingFile(new File(filename));
> }
>
>> I could send you a little update with that. Let me know.
>
> Yes, please I will be happy to test it and use it.
>
> Regards
> Ivan
>
>>
>> Ivan "Rambius" Ivanov wrote:
>>
>> > 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
>> >
>>
>> _______________________________________________
>> Anthill-pro mailing list
>> Anthill-pro at lists.urbancode.com
>> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>>
>
>
More information about the Anthill-pro
mailing list