Skip to content
Snippets Groups Projects
Commit 657b45d4 authored by tcarver's avatar tcarver
Browse files

updates for test

parent b2a78f42
No related branches found
No related tags found
No related merge requests found
...@@ -627,7 +627,7 @@ public class ProjectProperty extends JFrame ...@@ -627,7 +627,7 @@ public class ProjectProperty extends JFrame
* @param projectProps * @param projectProps
* @return * @return
*/ */
private HashMap<String, HashMap<String, String>> getProjectMap(final Properties projectProps) protected static HashMap<String, HashMap<String, String>> getProjectMap(final Properties projectProps)
{ {
final HashMap<String, HashMap<String, String>> projects = final HashMap<String, HashMap<String, String>> projects =
new HashMap<String, HashMap<String, String>>(); new HashMap<String, HashMap<String, String>>();
...@@ -661,15 +661,23 @@ public class ProjectProperty extends JFrame ...@@ -661,15 +661,23 @@ public class ProjectProperty extends JFrame
/** /**
* Write or re-write properties and insert/update the user.dir property * Write or re-write properties and insert/update the user.dir property
* @param jemProp properties file
* @param uHome user working directory
*/ */
protected static void writeProperties() protected static void writeProperties()
{
writeProperties(new File( System.getProperty("user.home") +
File.separator + ".artemis.project.properties"), userProjects);
}
/**
* Write or re-write properties file
* @param propFile properties file
*/
protected static void writeProperties(final File propFile,
HashMap<String, HashMap<String, String>> userProjects)
{ {
if(userProjects == null) if(userProjects == null)
return; return;
final String prop = System.getProperty("user.home") + File.separator + ".artemis.project.properties";
File propFile = new File(prop);
try try
{ {
if(userProjects.size() > 0) if(userProjects.size() > 0)
...@@ -710,11 +718,11 @@ public class ProjectProperty extends JFrame ...@@ -710,11 +718,11 @@ public class ProjectProperty extends JFrame
} }
catch (FileNotFoundException filenotfoundexception) catch (FileNotFoundException filenotfoundexception)
{ {
System.err.println(prop+" read error"); System.err.println(propFile.getAbsolutePath()+" read error");
} }
catch (IOException e) catch (IOException e)
{ {
System.err.println(prop+" i/o error"); System.err.println(propFile.getAbsolutePath()+" i/o error");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment