Package DE_EPAGES::Installer::API::PatchBuilder
This modul generates and change all files necessary for patch. These files can be find under ../Patches of each cartridge. The patch change the file ../API/Cartridge.pm in each cartridge. Each patch increase the version number of each cartridge, even if there are no changes. So the ePages version number and the cartridge version numbers are linked.
Functions
- addPatchFolderToCVS
- cleanUpdateToBranch
- commitCartridgePMToCVS
- commitPatchFolderToCVS
- createPatchXMLFromPatchFiles
- exportReleaseFolder
- exportReleaseFolders
- generatePatchFiles
- new
- newVersion
- oldVersion
- patchCartridgePm
- printMessage
- setCommitBranch
- updateCVSPatchReleaseTagsOnCartridgePM
- updateCVSPatchReleaseTagsOnPatchFolder
- verbose
addPatchFolderToCVS
step 5 add files under ../Patches to cvs
Syntax |
$PatchBuilder->addPatchFolderToCVS($CartridgeFolder) |
Input |
|
cleanUpdateToBranch
clean update to branch or tag
Syntax |
$PatchBuilder->cleanUpdateToBranch($Path,$Branch) |
Input |
|
commitCartridgePMToCVS
step 5 add files under ../Patches to cvs
Syntax |
$PatchBuilder->commitCartridgePMToCVS($CartridgeFolder) |
Input |
|
commitPatchFolderToCVS
step 5 add files under ../Patches to cvs
Syntax |
$PatchBuilder->commitPatchFolderToCVS($CartridgeFolder) |
Input |
|
createPatchXMLFromPatchFiles
step 3 creates the patch.xml file from the files in the patch directory.
Syntax |
$PatchBuilder->createPatchXMLFromPatchFiles($CartridgePath, $CartridgePackage, $BaseName ); |
Input |
|
Return |
|
exportReleaseFolder
part of step 1 export two versions of one cartridge, one tagged with old release and one tagged with the new release tag to different folders
Syntax |
$self->exportReleaseFolder($CVSPath, $Dir, $Tag); |
Input |
|
exportReleaseFolders
step 1 export two versions of one cartridge, one tagged with old release and one tagged with the new release tag to different folders
Syntax |
$self->exportReleaseFolders($CVSPath, $OldDir, $NewDir); |
Input |
|
generatePatchFiles
step 2 - compare old and new version of cartridge - generates all patch files under ../Patches/Patch../Database/XML - (if patch files already builded, only additional tags where added manually changes with stay)
Syntax |
$self->generatePatchFiles($OldFolder, $NewFolder, $CartridgeFolder); |
Input |
|
new
Creates a new PatchBuilder object
Syntax |
$PatchBuilder = DE_EPAGES::Installer::API::PatchBuilder->new( 'OldReleaseTag' => $OldReleaseTag, 'NewReleaseTag' => $NewReleaseTag, 'Verbose' => 1, 'ForceReview' => 1, 'DontExportDeletedDirectories' => 0, ); |
Input |
|
Return |
|
newVersion
return object attribute, new version
Syntax |
my $NewVersion = $self->newVersion(); |
Return |
|
oldVersion
return object attribute, old version
Syntax |
my $OldVersion = $self->oldVersion(); |
Return |
|
patchCartridgePm
step 4 patch the ../API/Cartridge.pm file
Syntax |
$PatchBuilder->patchCartridgePm($CartridgePath) |
Input |
|
printMessage
print message if verbose is true
Syntax |
$self->printMessage('message to test'); |
Input |
|
setCommitBranch
actualize the commit branch
Syntax |
$PatchBuilder->setCommitBranch($Branch) |
Input |
|
updateCVSPatchReleaseTagsOnCartridgePM
step 9 tag Cartridge.pm file
Syntax |
$PatchBuilder->updateCVSPatchReleaseTagsOnCartridgePM($CartridgeFolder) |
Input |
|
updateCVSPatchReleaseTagsOnPatchFolder
step 9 update tags
Syntax |
$PatchBuilder->updateCVSPatchReleaseTagsOnPatchFolder($CartridgeFolder) |
Input |
|
verbose
return object attribute verbose
Syntax |
$self->verbose() |
Return |
|