Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- public class test {
- public static void main(String[] args) throws IOException {
- String image_path = "image_path";
- String image_path_value;
- String xml_path = "xml_path";
- String xml_path_image;
- // Set image_path
- if (System.getProperty(image_path) == null) {
- image_path_value = "not passed";
- } else {
- image_path_value = System.getProperty(image_path);
- }
- // Set xml_path
- if (System.getProperty(xml_path) == null) {
- xml_path_image = "not passed";
- } else {
- xml_path_image = System.getProperty(xml_path);
- }
- System.out.println(image_path_value);
- System.out.println(xml_path_image);
- }
- }
Add Comment
Please, Sign In to add comment