Guest User

Untitled

a guest
Feb 17th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. import java.io.IOException;
  2.  
  3. public class test {
  4.  
  5. public static void main(String[] args) throws IOException {
  6.  
  7. String image_path = "image_path";
  8. String image_path_value;
  9. String xml_path = "xml_path";
  10. String xml_path_image;
  11.  
  12. // Set image_path
  13. if (System.getProperty(image_path) == null) {
  14. image_path_value = "not passed";
  15. } else {
  16. image_path_value = System.getProperty(image_path);
  17. }
  18. // Set xml_path
  19. if (System.getProperty(xml_path) == null) {
  20. xml_path_image = "not passed";
  21. } else {
  22. xml_path_image = System.getProperty(xml_path);
  23. }
  24.  
  25. System.out.println(image_path_value);
  26. System.out.println(xml_path_image);
  27.  
  28. }
  29. }
Add Comment
Please, Sign In to add comment