Test Data Manager

 View Only
  • 1.  How to edit the file name which needs to be masked in the .bat file

    Posted Jul 18, 2019 02:19 PM
    Hello,

    I had created a .bat file for my current masking of a file , but i want to make this more generic way so that any file placed in a certain folder  the .bat file should mask , also where i can edit the file name information which needs to be masked in the .bat file. In the .bat file I don't see the file related information which is getting masked .

    Thanks in advance !

    ------------------------------
    VA
    ------------------------------


  • 2.  RE: How to edit the file name which needs to be masked in the .bat file
    Best Answer

    Posted Jul 19, 2019 10:46 AM
    Hi Vikram,

    Edit the bat file to make the connection, mask, and option generic like below:

    java -Dfile.encoding=UTF-8 -Djava.util.logging.config.file="C:/Program Files/Grid-Tools/FastDataMasker/logging.properties" -Xms100M -Xmx1000M -cp ".;C:/Program Files/Grid-Tools/FastDataMasker/Fastdatamasker.jar;C:/Program Files/Grid-Tools/FastDataMasker/lib/*;C:/Program Files/Grid-Tools/FastDataMasker/custom/*;" com.grid_tools.products.datamasker.Datamasker "%connection%" "%maskFile%" "%maskOptions%"

    You can use a tool like Jenkins to pass the aforementioned parameters to mask the files on demand.


  • 3.  RE: How to edit the file name which needs to be masked in the .bat file

    Posted Jul 19, 2019 10:56 AM
    You can test your bat file by placing the following at the top of the file:

    SET connection=connect_ConnectName.txt
    SET maskFile=mask.csv
    SET maskOptions=options.txt


  • 4.  RE: How to edit the file name which needs to be masked in the .bat file

    Posted Jul 24, 2019 02:27 PM
    Thank You !


  • 5.  RE: How to edit the file name which needs to be masked in the .bat file

    Posted Jul 24, 2019 02:27 PM
    Thank You !