mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
build scripts: remove obsolete 'modules.output' property
Also error message about missing module output directory is improved.
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
<dirname property="build" file="${ant.file}"/>
|
||||
<property name="project.home" value="${build}/../"/>
|
||||
<property name="gant.home" value="${project.home}/build/lib/gant"/>
|
||||
<property name="modules.output" value="${project.home}/out"/>
|
||||
|
||||
<macrodef name="run">
|
||||
<attribute name="script"/>
|
||||
@@ -36,7 +35,6 @@
|
||||
<java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
|
||||
<jvmarg line="-Xms64m -Xmx512m"/>
|
||||
<jvmarg line=""-Ddeploy=@{deploy}""/>
|
||||
<jvmarg line=""-Dmodules.output=${modules.output}""/>
|
||||
<jvmarg line=""-Dgant.script=@{script}""/>
|
||||
<jvmarg line=""-Dgant.target=@{target}""/>
|
||||
|
||||
|
||||
@@ -45,11 +45,6 @@ public abstract class IdeaModuleBase extends LayoutFileSet {
|
||||
}
|
||||
|
||||
protected File getOutputDir() {
|
||||
String common = getProject().getProperty("modules.output");
|
||||
if (common != null) {
|
||||
return new File(new File(common), getKind() + "/" + getName());
|
||||
}
|
||||
|
||||
String adhoc = getProject().getProperty(getOutputDirProperty());
|
||||
return adhoc != null ? new File(adhoc) : null;
|
||||
}
|
||||
@@ -60,11 +55,11 @@ public abstract class IdeaModuleBase extends LayoutFileSet {
|
||||
}
|
||||
|
||||
File outputDir = getOutputDir();
|
||||
|
||||
if (outputDir == null || !outputDir.exists()) {
|
||||
throw new BuildException("No " + getKind() + " output found for module " + name +
|
||||
". Either modules.output property references project output that doesn't contain this module or " +
|
||||
getOutputDirProperty() + " is not defined or references non-existing directory.");
|
||||
if (outputDir == null) {
|
||||
throw new BuildException("Cannot find " + getKind() + " output for module " + name + ": '" + getOutputDirProperty() + "' property isn't defined");
|
||||
}
|
||||
if (!outputDir.exists()) {
|
||||
throw new BuildException("No " + getKind() + " output found for module " + name + ": " + outputDir + " doesn't exist");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user