private void recordFileLocations( final Properties appProps) throws URISyntaxException { /* * Setting the properties in the appProps now will cause them to be * stored in the domain.xml elements along with other properties when * the entire config is saved. */ if (safeCopyOfApp != null) { appProps.setProperty(Application.APP_LOCATION_PROP_NAME, DeploymentUtils.relativizeWithinDomainIfPossible( safeCopyOfApp.toURI())); } if (safeCopyOfDeploymentPlan != null) { appProps.setProperty(Application.DEPLOYMENT_PLAN_LOCATION_PROP_NAME, DeploymentUtils.relativizeWithinDomainIfPossible( safeCopyOfDeploymentPlan.toURI())); } }
private void recordFileLocations( final Properties appProps) throws URISyntaxException { /* * Setting the properties in the appProps now will cause them to be * stored in the domain.xml elements along with other properties when * the entire config is saved. */ if (safeCopyOfApp != null) { appProps.setProperty(Application.APP_LOCATION_PROP_NAME, DeploymentUtils.relativizeWithinDomainIfPossible( safeCopyOfApp.toURI())); } if (safeCopyOfDeploymentPlan != null) { appProps.setProperty(Application.DEPLOYMENT_PLAN_LOCATION_PROP_NAME, DeploymentUtils.relativizeWithinDomainIfPossible( safeCopyOfDeploymentPlan.toURI())); } if (safeCopyOfAltDD != null) { appProps.setProperty(Application.ALT_DD_LOCATION_PROP_NAME, DeploymentUtils.relativizeWithinDomainIfPossible( safeCopyOfAltDD.toURI())); } if (safeCopyOfRuntimeAltDD != null) { appProps.setProperty( Application.RUNTIME_ALT_DD_LOCATION_PROP_NAME, DeploymentUtils.relativizeWithinDomainIfPossible( safeCopyOfRuntimeAltDD.toURI())); } }
String location = DeploymentUtils.relativizeWithinDomainIfPossible(new URI(app.getLocation())); appProps.setProperty(ServerTags.LOCATION, location); appProps.setProperty(Application.APP_LOCATION_PROP_NAME, DeploymentUtils.relativizeWithinDomainIfPossible(new URI(appLocation))); String planLocation = appProps.getProperty(Application.DEPLOYMENT_PLAN_LOCATION_PROP_NAME); if (planLocation != null) { appProps.setProperty(Application.DEPLOYMENT_PLAN_LOCATION_PROP_NAME, DeploymentUtils.relativizeWithinDomainIfPossible(new URI(planLocation)));
String appLocation = DeploymentUtils.relativizeWithinDomainIfPossible( deploymentContext.getSource().getURI());
String appLocation = DeploymentUtils.relativizeWithinDomainIfPossible( deploymentContext.getSource().getURI());