简体   繁体   中英

System.getProperty(“some stuff”)

In a very huge code base I found the following code snippet System.getProperty("some stuff"). I tried to look the property in some of the .properties files though i couldn't find it. Do you guys have any ideas where to look the property anywhere else in the code file system?

You might want to look into "System.setProperty" in your work space:

  // Modifying a system property
  System.setProperty("java.io.tmpdir","c:\\var\\tmp");
  // Adding my own properties
  System.setProperty("program.name","Property Test");
  System.setProperty("program.version","3.01");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM