← Back to team overview

slub.team team mailing list archive

[Merge] lp:~henning-gerhardt/goobi-production/bug-747165 into lp:goobi-production

 

Henning Gerhardt has proposed merging lp:~henning-gerhardt/goobi-production/bug-747165 into lp:goobi-production.

Requested reviews:
  Ralf Claussnitzer (ralf-claussnitzer)
Related bugs:
  Bug #747165 in Goobi.Production: "missing standard.xml on opening metadata editor"
  https://bugs.launchpad.net/goobi-production/+bug/747165

For more details, see:
https://code.launchpad.net/~henning-gerhardt/goobi-production/bug-747165/+merge/96120

Using class loader from helper class makes it possible to access class path.
-- 
https://code.launchpad.net/~henning-gerhardt/goobi-production/bug-747165/+merge/96120
Your team Saxon State Library Team is subscribed to branch lp:goobi-production.
=== modified file 'src/de/sub/goobi/beans/Prozess.java'
--- src/de/sub/goobi/beans/Prozess.java	2012-02-22 07:43:02 +0000
+++ src/de/sub/goobi/beans/Prozess.java	2012-03-06 13:53:23 +0000
@@ -743,7 +743,7 @@
 		File fstandard = new java.io.File(help.getGoobiDataDirectory() + "standard.xml");
 
 		if (!fstandard.exists()) {
-			URL standardURL = Helper.class.getResource("standard.xml");
+			URL standardURL = Helper.class.getClassLoader().getResource("standard.xml");
 			if (standardURL != null) {
 				try {
 					Helper.copyFile(new File(standardURL.toURI()), fstandard);


Follow ups