B4A.UTIL.DOCU.BODY-VCS-DIFF

Summary

%{XML2ATTR,PREFIX=xml,KEY=::}

%{SCRIPT:groovy: def pkg = $attributes.xml.best4Automic.vcs.difference.package def srcType = $attributes.xml.best4Automic.vcs.difference.source.type def srcName = $attributes.xml.best4Automic.vcs.difference.source.name def destType = $attributes.xml.best4Automic.vcs.difference.destination.type def destName = $attributes.xml.best4Automic.vcs.difference.destination.name

$output.append( """\

Summary

Package$pkg
Source$srcType$srcName
Destination$destType$destName
""" )
def added = $attributes.xml.best4Automic.vcs.difference.status.added.number
def removed = $attributes.xml.best4Automic.vcs.difference.status.removed.number
def changed = $attributes.xml.best4Automic.vcs.difference.status.changed.number
$output.append( """\

Status

StatusCount
Added$added
Removed$removed
Changed$changed
""" )
$output.append( "<h1>Differences</h1>" )
if ( $attributes.xml.best4Automic.vcs.difference.details.added ) {
	$output.append( """\

Added Objects

""" ) def items = $attributes.xml.best4Automic.vcs.difference.details.added.item if ( items instanceof List ) { for ( item : items ) { $output.append( "" ) } } else { $output.append( "" ) } $output.append( "
Object Name
$item.name
$items.name
" ) }
if ( $attributes.xml.best4Automic.vcs.difference.details.removed ) {
	$output.append( """\

Removed Objects

""" ) def items = $attributes.xml.best4Automic.vcs.difference.details.removed.item if ( items instanceof List ) { for ( item : items ) { $output.append( "" ) } } else { $output.append( "" ) } $output.append( "
Object Name
$item.name
$items.name
" ) }
if ( $attributes.xml.best4Automic.vcs.difference.details.changed ) {
	$output.append( """\

Changed Objects

""" )
	def items = $attributes.xml.best4Automic.vcs.difference.details.changed.item
	if ( items instanceof List ) {
		for ( item : items ) {
			$output.append( """\

$item.name

${item.content.replace( "&", "&" ).replace("<", "<").replace( ">", ">" ) }
""" ) } } else { $output.append( """\

$items.name

${items.content.replace( "&", "&" ).replace("<", "<").replace( ">", ">" ) }
""" ) } } }
Object type
DOCU
Object Folder
PACKAGES/BEST4AUTOMIC/B4A.UTIL/CONFIG
Title
mail body for vcs.Diff
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-03-29 08:21:47
Last Modified
WRITER/B4A am: 2024-01-09 10:32:28 12 x
Last Used
-

Text Documentation

%{XML2ATTR,PREFIX=xml,KEY=%(custom.key):%(custom.variable):}

%{SCRIPT:groovy: def pkg = $attributes.xml.best4Automic.vcs.difference.package def srcType = $attributes.xml.best4Automic.vcs.difference.source.type def srcName = $attributes.xml.best4Automic.vcs.difference.source.name def destType = $attributes.xml.best4Automic.vcs.difference.destination.type def destName = $attributes.xml.best4Automic.vcs.difference.destination.name

$output.append( """\

Summary

Package$pkg
Source$srcType$srcName
Destination$destType$destName
""" )
def added = $attributes.xml.best4Automic.vcs.difference.status.added.number
def removed = $attributes.xml.best4Automic.vcs.difference.status.removed.number
def changed = $attributes.xml.best4Automic.vcs.difference.status.changed.number
$output.append( """\

Status

StatusCount
Added$added
Removed$removed
Changed$changed
""" )
$output.append( "<h1>Differences</h1>" )
if ( $attributes.xml.best4Automic.vcs.difference.details.added ) {
	$output.append( """\

Added Objects

""" ) def items = $attributes.xml.best4Automic.vcs.difference.details.added.item if ( items instanceof List ) { for ( item : items ) { $output.append( "" ) } } else { $output.append( "" ) } $output.append( "
Object Name
$item.name
$items.name
" ) }
if ( $attributes.xml.best4Automic.vcs.difference.details.removed ) {
	$output.append( """\

Removed Objects

""" ) def items = $attributes.xml.best4Automic.vcs.difference.details.removed.item if ( items instanceof List ) { for ( item : items ) { $output.append( "" ) } } else { $output.append( "" ) } $output.append( "
Object Name
$item.name
$items.name
" ) }
if ( $attributes.xml.best4Automic.vcs.difference.details.changed ) {
	$output.append( """\

Changed Objects

""" )
	def items = $attributes.xml.best4Automic.vcs.difference.details.changed.item
	if ( items instanceof List ) {
		for ( item : items ) {
			$output.append( """\

$item.name

${item.content.replace( "&", "&" ).replace("<", "<").replace( ">", ">" ) }
""" ) } } else { $output.append( """\

$items.name

${items.content.replace( "&", "&" ).replace("<", "<").replace( ">", ">" ) }
""" ) } } }

XML Documentation