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
Post a Comment