Daniel P. Berrangé > Test-AutoBuild-1.0.3 > Test::AutoBuild::Cache

Download:
Test-AutoBuild-1.0.3.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View/Report Bugs
Source  

NAME ^

Test::AutoBuild::Cache - Caching of build results

SYNOPSIS ^

  use Test::AutoBuild::Cache;

  my $cache = Test::AutoBuild::Cache->new(cache_root => $directory,
                                          timestamp => $boolean);

  my $up2date = $cache->test_cache($module);

DESCRIPTION ^

This module provides caching for module builds. It caches installed files in the virtual root, generated packages, and status metadata.

METHODS ^

my $cache = Test::AutoBuild::Cache->new(cache_root=> $directory, timestamp => $boolean);

Creates a new module cache in the directory specified by cache_root parameter. If the timestamp parameter evaluates to true, then when checking if a module cache is uptodate, it will compare the timestamps on every single file. This is overkill for most situations, since the respository module informs the build whether there were any changes in source control since previous build. In particular for CVS, this causes caching to fail altogether since 'cvs update' always touchs files in the 'CVS' directory.

AUTHORS ^

Dennis Gregorovic <dgregorovic@alum.mit.edu>

COPYRIGHT ^

Copyright (C) 2003-2004 Dennis Gregorovic <dgregorovic@alum.mit.edu>

SEE ALSO ^

perl(1)

syntax highlighting: