Sign in
apache
/
groovy
/
67cce94e9c08bbf3a4f7611aec65e50c8e8d014b
/
.
/
groovy
/
src
/
test
/
groovy
/
script
/
MarkupTestScript.groovy
blob: 8b454489957f09294697acb30d083d1cfa740173 [
file
] [
log
] [
blame
]
import
groovy
.
xml
.
MarkupBuilder
;
class
Bean
{
String
b
};
t
=
new
Bean
()
t
.
b
=
"hello"
println t
.
b
println
"test: ${t.b}"
xml
=
new
MarkupBuilder
()
root
=
xml
.
foo
{
bar
{
// works
baz
(
"test"
)
// fails
baz
(
t
.
b
)
// fails
baz
(
"${t.b}"
)
}
}