Use the PreMark™ page in the PreEmptive Protection™ DashO™ user interface to add a watermark string to the JAR files DashO produces. Read the watermark later with the PreMark command line utility.
Note: If DashO creates multiple JAR files, it adds the same watermark to all of them.
PreMark Settings
Setting
Description
Watermark Jar
Enables or disables watermarking.
Watermark
The watermark string DashO applies to the JAR file. The selected Character map determines which characters it can contain.
On overflow
What DashO does if the watermark is too long for the JAR file: truncate it and continue, or halt the build. For more information, see Overflow Behavior.
Character map
The character map DashO uses to encode the watermark into a minimal set of bits.
Passphrase
An optional passphrase DashO uses to encrypt the watermark before it applies it.
Examples and Use Cases
Goal
Settings
Add a copyright notice to every JAR file
Watermark Jar selected, the notice in Watermark, and a Character map that contains its characters.
Make sure the build fails rather than cutting the watermark short
On overflow set to halt the build.
Limitations and Troubleshooting
Issue
Resolution
The PreMark page is unavailable or disabled.
Use Standard Mode, and output to JAR files instead of a directory or an APK. Watermarks aren't supported for Android.
The build fails because the watermark doesn't fit.
Shorten the watermark, choose a smaller Character map, clear Passphrase, or set On overflow to truncate.