Ant add trailing zeros -


hello have variable in ant: ${env.build_number}
, wan't variable 6 characters long.
if not ant should add trailing zeros.

1 should 100000
39 should 390000
5656 should 565600

how possible using ant build script?

thanks!

there solution using propertyfile ant task described here: re: zero-padding int ant property

you may want checkout propertyregex task ant contrib. see replacing characters in ant property


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -