Forum Discussion

_ivanovich_'s avatar
_ivanovich_
Frequent Contributor
6 years ago

How to declare variable with project property value as public?

Hi, i have a project property like: property name: ftime value: ${=def now = new Date();now.format("yyyy-MM-dd-HH-mm-ss")}   i would llike to append ftime in a filename. so if i get the p...
  • nmrao's avatar
    6 years ago

    Can you not use as below:

     

    def fileName = 'C:/temp/myfile-'+new Date().format('yyyy-MM-dd-HH-mm-ss')+'.txt'
    log.info fileName