Why is the flag that indicates a System property in Java -D
? Surely there is some semantics to this letter choice, but I can't guess what it is.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
"defines" properties. Properties aren't arguments, so you'd need a special identifier anyway.
It is short for setting a system define.
"define" debug to yes
There is some historical context, as other compilers use similar flags. For example,
gcc
uses-D
to set a preprocessor define.will compile test.c with a preprocessing environment where the preprocessor variable
debug
is set toyes
.