1 | log.info("Setting Global properties from the file "+name);↵ | | |
|
2 | try {↵ | | 1 | try {↵
|
3 | fis = new FileInputStream(propFile);↵ | | 2 | pw = new FileOutputStream(↵
|
4 | remoteProps.load(fis);↵ | | |
|
5 | ↵ | | 3 | out);↵
|
| | | 4 | pw.write(s.getResponseData());↵
|
6 | } catch (FileNotFoundException e) {↵ | | 5 | } catch (FileNotFoundException e1) {↵
|
7 | log.warn("Could not find properties file: "+e.getLocalizedMessage());↵ | | 6 | log.error("Error creating sample file↵
|
8 | ↵ | | 7 | for " + s.getSampleLabel(), e1);↵
|
9 | } catch (IOException e) {↵ | | 8 | } catch (IOException e1) {↵
|
10 | log.warn("Could not load properties file: "+e.getLocalizedMessage());↵ | | 9 | log.error("Error saving sample "↵
|
11 | ↵ | | 10 | + s.getSampleLabel(), e1);↵
|
12 | } finally {↵ | | 11 | } finally {↵
|
13 | JOrphanUtils.closeQuietly(fis);↵ | | 12 | JOrphanUtils.closeQuietly(pw);↵
|
14 | } | | 13 | }
|