Step 6 - Watermarking without Obfuscation

Files located in the tutorial/step6/files directory:
mousegestures-1.2.jarMouse Gestures library jar
AddWatermark.batRuns Allatori's watermark embedding class
AddWatermark.xmlConfiguration file for adding a watermark
ExtractWatermark.batRuns Allatori's watermark extracting class
ExtractWatermark.xmlConfiguration file for extracting a watermark
Clean.batDeletes generated files


There are situations when you need to watermark the application without obfuscating it or the application is already obfuscated but not yet watermarked. To accomplish that task we need the following configuration file:

<config>
    <jars>
        <jar in="mousegestures-1.2.jar" out="marked-mousegestures-1.2.jar"/>
    </jars>

    <watermark key="secure-key-to-extract-watermark" value="Customer: John Smith; Date: xx.yy.zzzz"/>
</config>

Configuration file for extracting the watermark (ExtractWatermark.xml) is similar to the one in the Step 5.

Run AddWatermark.bat to embed the watermark and ExtractWatermark.bat to see the extracted watermark.

Step 5       Step 7       Contents