을 당신은 Ant Plugin Flaka 사용할 수 있습니다
<project name="demo" xmlns:fl="antlib:it.haefelinger.flaka">
<fl:install-property-handler />
<property name="guid" value="a7655b5e-f074-4df1-9636-391aa234f4f4"/>
<!-- simple echo -->
<echo>
#{'${guid}'.toupper}
</echo>
<!-- create new property for further processing -->
<fl:let>
guidtoupper := '#{'${guid}'.toupper}'
</fl:let>
<echo> $${guid} before => ${guid}</echo>
<!-- overwrite existing property -->
<fl:let>
guid ::= '#{'${guid}'.toupper}'
</fl:let>
<echo> $${guid} after => ${guid}</echo>
</project>
출력 :
[echo] A7655B5E-F074-4DF1-9636-391AA234F4F4
[echo]
[echo] ${guid} before => a7655b5e-f074-4df1-9636-391aa234f4f4
[echo] ${guid} after => A7655B5E-F074-4DF1-9636-391AA234F4F4
아마도 도움이 될 것입니다 : http://stackoverflow.com/questions/3725827/ant-string-functions –
이것은 실제로 WiX, ta와 아무 관련이 없습니다 g는 아마도 제거되어야합니다. –
@ Rob 나는 동의합니다. wix 태그가이 질문에서 더 잘 제거되었습니다. –