Mario Madunic wrote:
Thanks Gilbert.

I ran a test of your script and received the following error.

sorry was untested, use =

<script language="ruby">
<![CDATA[ str=File.basename(Dir["J:/test/*.xml"].sort[0]).gsub(/(\w{8}).+/, '\1')
$project.setProperty "myproperty", str
]]>
</script>

means use '\1' instead of $1 in the gsub part
and it will work.

Regards. Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to