JVM parameter input during eclipse debugging, for example:-d
I 've been watching Cassandra'sSource codeCassandra is started through org. Apache. Cassandra. Service. cassandradaemon. In the-D parameter (storage-config), the path to the Cassandra configuration file storage-conf.xml is specified. The system obtains the value through the following code:
Java Code
- Configfilename _ = system. getproperty ("Storage-config") + File. Separator +Storage-conf.xml";
Configfilename _ = system. getproperty ("Storage-config") + file. Separator + "storage-conf.xml ";
How can I set the storage-config parameter when I directly run cassandradaemon in eclipse? See:
In VM arguments: Enter-dstorage-Config = bin \ conf directly. For the following code
Java code
- System. getenv ("Storage-config")
System. getenv ("Storage-config ")
You need to set it in the Environment tab.
Public static final string exif_tool_path = system. getproperty ("exiftool. Path", "exiftool ");
Reprinted from: http://swingboat.iteye.com/blog/518303