Guest User

Untitled

a guest
Jan 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if (System.getProperty("test").equalsIgnoreCase("true"))
  2. {
  3. //Do something
  4. }
  5.  
  6. java -jar myApplication.jar -Dtest="true"
  7.  
  8. java -Dtest="true" -jar myApplication.jar
  9.  
  10. java [-options] -jar jarfile [args...]
  11.  
  12. java -Dtest="true" -jar myApplication.jar
  13.  
  14. System.getProperty("test")
  15.  
  16. java -jar -Dtest="true" myApplication.jar
  17.  
  18. "true".equalsIgnoreCase(System.getProperty("test"))
  19.  
  20. System.getProperty("test") == null || System.getProperty("test").equalsIgnoreCase("true")
  21.  
  22. java -jar myApplication.jar -Dtest=true
Add Comment
Please, Sign In to add comment