if (altDeployDir != null && !altDeployDir.equals("")) container.getLogger().info("Using non-default deployment target directory " + altDeployDir, this.getClass().getName()); deployDir = new File(getHome(), altDeployDir);
if (altDeployDir != null && !altDeployDir.equals("")) container.getLogger().info("Using non-default deployment target directory " + altDeployDir, this.getClass().getName()); deployDir = new File(getHome(), altDeployDir);
/** * {@inheritDoc}. For JBoss container the target is the <code>deployments</code> directory. */ @Override public String getDeployableDir(Deployable deployable) { String altDeployDir = getContainer().getConfiguration(). getPropertyValue(JBossPropertySet.ALTERNATIVE_DEPLOYMENT_DIR); if (altDeployDir != null && !"".equals(altDeployDir)) { getContainer().getLogger().info("Using non-default deployment target directory " + altDeployDir, this.getClass().getName()); return getFileHandler().append(getContainer().getConfiguration().getHome(), altDeployDir); } else { return getFileHandler().append(getContainer(). getConfiguration().getHome(), "deployments"); } }
/** * {@inheritDoc}. For JBoss container the target is the <code>deployments</code> directory. */ @Override public String getDeployableDir(Deployable deployable) { String altDeployDir = getContainer().getConfiguration(). getPropertyValue(JBossPropertySet.ALTERNATIVE_DEPLOYMENT_DIR); if (altDeployDir != null && !"".equals(altDeployDir)) { getContainer().getLogger().info("Using non-default deployment target directory " + altDeployDir, this.getClass().getName()); return getFileHandler().append(getContainer().getConfiguration().getHome(), altDeployDir); } else { return getFileHandler().append(getContainer(). getConfiguration().getHome(), "deployments"); } }