8209064: Make intellij support more robust after changes for 2018.2
Do not treat build.xml wrapper as a template file Reviewed-by: erikj, ihse
This commit is contained in:
parent
13c1bb691b
commit
d91630f948
@ -68,12 +68,9 @@ mkdir $IDEA_OUTPUT || exit 1
|
||||
cd $IDEA_OUTPUT; IDEA_OUTPUT=`pwd`
|
||||
|
||||
MAKE_DIR="$SCRIPT_DIR/../make"
|
||||
SUPPORT_DIR="$SCRIPT_DIR/../build/.idea-support"
|
||||
IDEA_MAKE="$MAKE_DIR/idea"
|
||||
IDEA_TEMPLATE="$IDEA_MAKE/template"
|
||||
|
||||
mkdir -p $SUPPORT_DIR
|
||||
|
||||
cp -r "$IDEA_TEMPLATE"/* "$IDEA_OUTPUT"
|
||||
|
||||
#init template variables
|
||||
@ -127,11 +124,6 @@ if [ "x$SPEC" = "x" ] ; then
|
||||
echo "FATAL: SPEC is empty" >&2; exit 1
|
||||
fi
|
||||
|
||||
# move build.xml out of .idea, see IDEA-189915
|
||||
IDEA_BUILD_OLD=$IDEA_BUILD
|
||||
IDEA_BUILD=$SUPPORT_DIR/build.xml
|
||||
mv $IDEA_BUILD_OLD $IDEA_BUILD
|
||||
|
||||
SOURCE_FOLDER=" <sourceFolder url=\"file://\$MODULE_DIR\$/####\" isTestSource=\"false\" />"
|
||||
SOURCE_FOLDERS_DONE="false"
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!-- importing.xml -->
|
||||
<project name="jdk" basedir="../..">
|
||||
<project name="jdk">
|
||||
|
||||
<script language="javascript" classpath=".idea/classes">
|
||||
<script language="javascript" classpath="${idea.dir}/classes">
|
||||
var JdkLogger = Java.type("idea.JdkIdeaAntLogger");
|
||||
new JdkLogger(project)
|
||||
</script>
|
@ -1,11 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AntConfiguration">
|
||||
<buildFile url="file://$PROJECT_DIR$/build/.idea-support/build.xml">
|
||||
<buildFile url="file://$PROJECT_DIR$/make/idea/build.xml">
|
||||
<properties>
|
||||
<property name="intellij.ismake" value="$IsMake$" />
|
||||
<property name="build.target.dir" value="specDir" /> <!-- this will be replaced -->
|
||||
<property name="module.name" value="java.base" /> <!-- this will be replaced -->
|
||||
<property name="idea.dir" value="$ModuleFileDir$" />
|
||||
</properties>
|
||||
<executeOn event="afterCompilation" target="post-make" />
|
||||
</buildFile>
|
||||
|
@ -9,10 +9,10 @@
|
||||
<jre alt="true" value="images_jdk" /> <!-- this will be replaced -->
|
||||
<options></options>
|
||||
<ant>
|
||||
<target file="file://$PROJECT_DIR$/build/.idea-support/build.xml" name="images" />
|
||||
<target file="file://$PROJECT_DIR$/make/idea/build.xml" name="images" />
|
||||
</ant>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_9" assert-keyword="true" jdk-15="true">
|
||||
<output url="file://$PROJECT_DIR$/build/.idea-support/out" />
|
||||
<output url="file://$PROJECT_DIR$/build/out" />
|
||||
</component>
|
||||
</project>
|
||||
|
@ -11,24 +11,11 @@
|
||||
<component name="antWorkspaceConfiguration">
|
||||
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
|
||||
<option name="FILTER_TARGETS" value="false" />
|
||||
<buildFile url="file://$PROJECT_DIR$/.idea/build.xml">
|
||||
<buildFile url="file://$PROJECT_DIR$/make/idea/build.xml">
|
||||
<runInBackground value="false" />
|
||||
<targetFilters>
|
||||
<filter targetName="post-make" isVisible="false" />
|
||||
<filter targetName="clean" isVisible="true" />
|
||||
<filter targetName="-do-configure" isVisible="false" />
|
||||
<filter targetName="images" isVisible="true" />
|
||||
<filter targetName="build-module" isVisible="true" />
|
||||
<filter targetName="jtreg-debug" isVisible="false" />
|
||||
<filter targetName="jtreg-debug-internal" isVisible="false" />
|
||||
<filter targetName="jtreg" isVisible="false" />
|
||||
<filter targetName="-check-jtreg.home" isVisible="false" />
|
||||
<filter targetName="-def-check" isVisible="false" />
|
||||
<filter targetName="-def-jtreg" isVisible="false" />
|
||||
<filter targetName="-check-boot.java.home" isVisible="false" />
|
||||
<filter targetName="-check-target.java.home" isVisible="false" />
|
||||
<filter targetName="find-jdk-build-dir" isVisible="false" />
|
||||
<filter targetName="check-env" isVisible="false" />
|
||||
</targetFilters>
|
||||
<treeView value="false" />
|
||||
<expanded value="true" />
|
||||
|
@ -76,7 +76,6 @@
|
||||
<property name="make.conf.dir" location="${make.dir}/conf"/>
|
||||
<property name="make.tools.dir" location="${make.dir}/tools"/>
|
||||
<property name="build.dir" location="build/langtools"/>
|
||||
<property name="idea.support.dir" location="build/.idea-support"/>
|
||||
<property name="build.modules" location="${build.dir}/modules"/>
|
||||
<property name="build.gensrc" location="${build.dir}/gensrc"/>
|
||||
<property name="build.tools" location="${build.dir}/toolclasses"/>
|
||||
@ -270,14 +269,11 @@
|
||||
<target name="idea" depends="-check-langtools.jdk.home">
|
||||
<mkdir dir=".idea"/>
|
||||
<copy todir=".idea" >
|
||||
<fileset dir="${make.dir}/intellij">
|
||||
<fileset dir="${make.dir}/intellij/template">
|
||||
<exclude name="**/src/**"/>
|
||||
<exclude name="**/utils/**"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<!-- move build.xml out of .idea, see IDEA-189915 -->
|
||||
<mkdir dir="${idea.support.dir}"/>
|
||||
<move todir="${idea.support.dir}" file=".idea/build.xml"/>
|
||||
<condition property="idea.jtreg.home" value="${jtreg.home}" else = "[jtreg.home]">
|
||||
<isset property="jtreg.home"/>
|
||||
</condition>
|
||||
@ -293,7 +289,7 @@
|
||||
<mkdir dir=".idea/classes"/>
|
||||
<javac source="${javac.build.source}"
|
||||
target="${javac.build.target}"
|
||||
srcdir="${make.dir}/intellij/src"
|
||||
srcdir="${make.dir}/intellij/template/src"
|
||||
destdir=".idea/classes"/>
|
||||
</target>
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
<!-- importing.xml -->
|
||||
<project name="langtools" basedir="../..">
|
||||
<project name="langtools" basedir = "../../..">
|
||||
|
||||
<script language="javascript" classpath=".idea/classes">
|
||||
<script language="javascript" classpath="${idea.dir}/classes">
|
||||
var LangtoolsLogger = Java.type("idea.LangtoolsIdeaAntLogger");
|
||||
new LangtoolsLogger(project)
|
||||
</script>
|
||||
|
||||
<import file="../../make/langtools/build.xml"/>
|
||||
<import file="../build.xml"/>
|
||||
|
||||
<target name="cond-clean" unless="${intellij.ismake}">
|
||||
<antcall target="clean"/>
|
||||
|
@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AntConfiguration">
|
||||
<buildFile url="file://$PROJECT_DIR$/build/.idea-support/build.xml">
|
||||
<buildFile url="file://$PROJECT_DIR$/make/langtools/intellij/build.xml">
|
||||
<properties>
|
||||
<property name="langtools.jdk.home" value="@IDEA_TARGET_JDK@" />
|
||||
<property name="intellij.ismake" value="$IsMake$" />
|
||||
<property name="idea.dir" value="$ModuleFileDir$" />
|
||||
</properties>
|
||||
<executeOn event="afterCompilation" target="post-make" />
|
||||
</buildFile>
|
@ -9,7 +9,7 @@
|
||||
<jre alt="true" value="@IDEA_TARGET_JDK@" />
|
||||
<options>@XPATCH@</options>
|
||||
<ant>
|
||||
<target file="file://$PROJECT_DIR$/build/.idea-support/build.xml" name="build-all-classes" />
|
||||
<target file="file://$PROJECT_DIR$/make/langtools/intellij/build.xml" name="build-all-classes" />
|
||||
</ant>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
@ -6,7 +6,7 @@
|
||||
<component name="antWorkspaceConfiguration">
|
||||
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
|
||||
<option name="FILTER_TARGETS" value="false" />
|
||||
<buildFile url="file://$PROJECT_DIR$/.idea/build.xml">
|
||||
<buildFile url="file://$PROJECT_DIR$/make/langtools/intellij/build.xml">
|
||||
<runInBackground value="false" />
|
||||
<targetFilters>
|
||||
<filter targetName="build-all-tools" isVisible="true" />
|
Loading…
Reference in New Issue
Block a user