2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Change "actual" to the more natural "target", and change "target" to "path". Add bjam command and bb version to XML.

[SVN r41186]
This commit is contained in:
Rene Rivera
2007-11-17 22:09:26 +00:00
parent e672c3a025
commit 0035222098

View File

@@ -499,17 +499,20 @@ if $(.out-xml)
# Prepare valid XML header and footer with some basic info
local nl = "
" ;
local jam = [ modules.peek : JAM_VERSION ] ;
local jam = [ version.jam ] ;
local os = [ modules.peek : OS OSPLAT JAMUNAME ] "" ;
local timestamp = [ modules.peek : JAMDATE ] ;
local cwd = [ PWD ] ;
local command = [ modules.peek : ARGV ] ;
local bb-version = [ version.boost-build ] ;
.header on $(xml-file) =
"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"$(nl)<build version=\"1.0\">"
"$(nl)<build format=\"1.0\" version=\"$(bb-version)\">"
"$(nl) <jam version=\"$(jam:J=.)\" />"
"$(nl) <os name=\"$(os[1])\" platform=\"$(os[2])\"><![CDATA[$(os[3-]:J= )]]></os>"
"$(nl) <timestamp><![CDATA[$(timestamp)]]></timestamp>"
"$(nl) <directory><![CDATA[$(cwd)]]></directory>"
"$(nl) <command><![CDATA[\"$(command:J=\" \")\"]]></command>"
;
.footer on $(xml-file) =
"$(nl)</build>" ;
@@ -603,9 +606,10 @@ if $(.out-xml)
}
local locate = [ on $(target) return $(LOCATE) ] ;
locate ?= "" ;
.contents on $(xml-file) +=
"$(nl) <actual><![CDATA[$(target)]]></actual>"
"$(nl) <target><![CDATA[$(target:G=:R=$(locate))]]></target>"
"$(nl) <target><![CDATA[$(target)]]></target>"
"$(nl) <path><![CDATA[$(target:G=:R=$(locate))]]></path>"
"$(nl) <command><![CDATA[$(command)]]></command>"
"$(nl) <output><![CDATA[$(output)]]></output>"
;