private File getPluginsDir(Application application) { String pluginsDir = System.getProperty("pf4j.pluginsDir"); // if no system parameter check filter/servlet <init-param> and <context-param> if (pluginsDir == null) { pluginsDir = ((WebApplication) application).getInitParameter("pluginsDir"); } if (pluginsDir == null) { pluginsDir = ((WebApplication) application).getServletContext().getInitParameter("pluginsDir"); } return pluginsDir != null ? new File(pluginsDir) : null; }
result = getInitParameter("wicket." + Application.CONFIGURATION); result = getInitParameter(Application.CONFIGURATION);
result = getInitParameter("wicket." + Application.CONFIGURATION); result = getInitParameter(Application.CONFIGURATION);
result = getInitParameter("wicket." + Application.CONFIGURATION); result = getInitParameter(Application.CONFIGURATION);
result = getInitParameter("wicket." + Application.CONFIGURATION); result = getInitParameter(Application.CONFIGURATION);
private File getPluginsDir(Application application) { String pluginsDir = System.getProperty("pf4j.pluginsDir"); // if no system parameter check filter/servlet <init-param> and <context-param> if (pluginsDir == null) { pluginsDir = ((WebApplication) application).getInitParameter("pluginsDir"); } if (pluginsDir == null) { pluginsDir = ((WebApplication) application).getServletContext().getInitParameter("pluginsDir"); } if (pluginsDir == null) { // TODO: improve ?! // pluginsDir = DefaultPluginManager.DEFAULT_PLUGINS_DIRECTORY; // retrieves the runtime mode from system String modeAsString = System.getProperty("pf4j.mode", RuntimeMode.DEPLOYMENT.toString()); RuntimeMode runtimeMode = RuntimeMode.byName(modeAsString); if (RuntimeMode.DEVELOPMENT.equals(runtimeMode)) { pluginsDir = DefaultPluginManager.DEVELOPMENT_PLUGINS_DIRECTORY; } else { pluginsDir = DefaultPluginManager.DEFAULT_PLUGINS_DIRECTORY; } } return new File(pluginsDir); }
public TestReportPage() { WebApplication application = (WebApplication) getApplication(); String originalTargetClassStr = application .getInitParameter(Constants.DEFAULT_TEST_SUITE_KEY); add(new FeedbackPanel(Constants.FEEDBACK_ID)); add(new SummaryMarkupContainer(Constants.SUMMARY_ID, null)); Form<String> form = new RunTestForm(Constants.RUN_FORM_ID, this); add(form); form.add(new TextField<String>(Constants.TEST_CLASS_NAME_ID, new Model<String>(originalTargetClassStr))); EmptyPanel emptyPanel = new EmptyPanel(Constants.NODE_ID); add(emptyPanel); }
String resourceFolder = getInitParameter("sourceFolder"); if (resourceFolder != null)
String resourceFolder = getInitParameter("sourceFolder"); if (resourceFolder != null)
String resourceFolder = getInitParameter("sourceFolder"); if (resourceFolder != null)
String resourceFolder = getInitParameter("sourceFolder"); if (resourceFolder != null)