In several open source java projects, I have seen the use of the @ symbol in string variables, what does this do?
For example, I have seen it in an application that has its version number stored in a String instance, e.g:
public static final String APP_VERSION = "@VERSION@";
It is used for the build scripts as marker to replace these string with build time information, such as the real version. The real information is usually taken from a property file or from timestamp.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With