replace paths with macros

This commit is contained in:
Anna Kozlova
2004-12-17 18:49:27 +03:00
parent 871e2c3ce4
commit d009b1467f
@@ -33,7 +33,7 @@ public class PluginModuleBuildProperties extends ModuleBuildProperties implement
public String myPluginXMLPath;
public PluginModuleBuildProperties(Module module) {
myModule = module;
myPluginXMLPath = new File(myModule.getModuleFilePath()).getParent();
myPluginXMLPath = FileUtil.toSystemIndependentName(new File(myModule.getModuleFilePath()).getParent());
myPluginXML = DeploymentDescriptorFactory.getInstance().createDeploymentItem(myModule, new PluginDescriptorMetaData());
myPluginXML.setUrl(createPluginXMLURL(myPluginXMLPath));
myPluginXML.createIfNotExists();
@@ -111,11 +111,11 @@ public class PluginModuleBuildProperties extends ModuleBuildProperties implement
}
public String getPluginXMLPath() {
return myPluginXMLPath;
return FileUtil.toSystemDependentName(myPluginXMLPath);
}
public void setPluginXMLPath(String pluginXMLPath) {
myPluginXMLPath = pluginXMLPath;
myPluginXMLPath = FileUtil.toSystemIndependentName(pluginXMLPath);
myPluginXML = DeploymentDescriptorFactory.getInstance().createDeploymentItem(myModule, new PluginDescriptorMetaData());
myPluginXML.setUrl(createPluginXMLURL(myPluginXMLPath));
myPluginXML.createIfNotExists();