|
9 | 9 | import java.util.List; |
10 | 10 | import java.util.Map; |
11 | 11 | import java.util.Properties; |
| 12 | + |
12 | 13 | import org.apache.logging.log4j.LogManager; |
13 | 14 | import org.apache.logging.log4j.Logger; |
14 | 15 | import org.vaadin.teemu.wizards.Wizard; |
|
33 | 34 | import life.qbic.omero.BasicOMEROClient; |
34 | 35 | import life.qbic.openbis.openbisclient.IOpenBisClient; |
35 | 36 | import life.qbic.openbis.openbisclient.OpenBisClient; |
36 | | -import life.qbic.portal.portlet.QBiCPortletUI; |
37 | | -import life.qbic.portal.samplegraph.GraphPage; |
38 | 37 | import life.qbic.portal.utils.ConfigurationManager; |
39 | 38 | import life.qbic.portal.utils.ConfigurationManagerFactory; |
40 | 39 | import life.qbic.portal.utils.PortalUtils; |
@@ -64,7 +63,7 @@ public class ProjectWizardUI extends QBiCPortletUI { |
64 | 63 | List<String> expTypes = new ArrayList<String>( |
65 | 64 | Arrays.asList("Q_EXPERIMENTAL_DESIGN", "Q_SAMPLE_EXTRACTION", "Q_SAMPLE_PREPARATION")); |
66 | 65 |
|
67 | | - private Logger logger = LogManager.getLogger(ProjectWizardUI.class); |
| 66 | + private final static Logger logger = LogManager.getLogger(ProjectWizardUI.class); |
68 | 67 |
|
69 | 68 | private ConfigurationManager config; |
70 | 69 |
|
@@ -284,17 +283,16 @@ public static String getPathToVaadinFolder() { |
284 | 283 | if (PortalUtils.isLiferayPortlet()) { |
285 | 284 | Properties prop = new Properties(); |
286 | 285 | // workaround |
287 | | - GraphPage p = new GraphPage(); |
288 | | - InputStream in = p.getClass().getClassLoader() |
289 | | - .getResourceAsStream("WEB-INF/liferay-plugin-package.properties"); |
| 286 | + InputStream in = ProjectWizardUI.class.getClassLoader() |
| 287 | + .getResourceAsStream("portlet.properties"); |
290 | 288 | try { |
291 | 289 | prop.load(in); |
292 | 290 | in.close(); |
293 | 291 | } catch (IOException e1) { |
294 | | - // TODO Auto-generated catch block |
| 292 | + logger.error("Could not load portlet.properties"); |
295 | 293 | e1.printStackTrace(); |
296 | 294 | } |
297 | | - String portletName = prop.getProperty("name"); |
| 295 | + String portletName = prop.getProperty("artifact.id"); |
298 | 296 |
|
299 | 297 | URI location = UI.getCurrent().getPage().getLocation(); |
300 | 298 | // http |
|
0 commit comments