Closed messkat closed 12 years ago
Yeah, I can see value here. I can see this become a function. Should probably create an "Array" function set in the process. While here, might as well add a sort function.
Committed feature. You can now use array::reverse(array, separator) function in NAntContrib to accomplish your request. Like so:
<project>
<property name='array.orig' value='four,nine,six,two,zero,one' />
<property name='array.reverse' value='${array::reverse(array.orig,',')}' />
<echo message='array.reverse=${array.reverse}' />
</project>
This will print out: "array.reverse=one,zero,two,six,nine,four"
Thanks! You will break me of my dependency on Perl
Ryan Boggs reply@reply.github.com wrote:
Committed feature. You can now use array::reverse(array, separator) function in NAntContrib to accomplish your request. Like so:
This will print out: "array.reverse=one,zero,two,six,nine,four"
Reply to this email directly or view it on GitHub: https://github.com/nant/nantcontrib/issues/16#issuecomment-4361421
No problem, it was a good suggestion. Thanks again.
BTW, the commit is here: f052a9b20af742f6a2c7bb614e7b67a49e49b3bb
Something like this, so we don't have to code it in C#. Useful if you have to stop and start services or deploy something in a particular order.