From d91630f94856e791b5674bcdbe5eb8bd794a6fbf Mon Sep 17 00:00:00 2001 From: Maurizio Cimadamore Date: Wed, 29 Aug 2018 11:25:51 +0100 Subject: [PATCH] 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 --- bin/idea.sh | 8 -------- make/idea/{template => }/build.xml | 4 ++-- make/idea/template/ant.xml | 3 ++- make/idea/template/misc.xml | 4 ++-- make/idea/template/workspace.xml | 15 +-------------- make/langtools/build.xml | 8 ++------ make/langtools/intellij/build.xml | 6 +++--- make/langtools/intellij/{ => template}/ant.xml | 3 ++- .../intellij/{ => template}/codeStyleSettings.xml | 0 .../intellij/{ => template}/compiler.xml | 0 .../{ => template}/copyright/langtools.xml | 0 .../copyright/profiles_settings.xml | 0 .../inspectionProfiles/langtools.xml | 0 .../inspectionProfiles/profiles_settings.xml | 0 .../intellij/{ => template}/langtools.iml | 0 make/langtools/intellij/{ => template}/misc.xml | 2 +- .../langtools/intellij/{ => template}/modules.xml | 0 .../{ => template}/runConfigurations/javac.xml | 0 .../{ => template}/runConfigurations/javadoc.xml | 0 .../{ => template}/runConfigurations/javap.xml | 0 .../{ => template}/runConfigurations/jshell.xml | 0 .../{ => template}/runConfigurations/sjavac.xml | 0 .../src/idea/LangtoolsIdeaAntLogger.java | 0 make/langtools/intellij/{ => template}/vcs.xml | 0 .../intellij/{ => template}/workspace.xml | 2 +- 25 files changed, 16 insertions(+), 39 deletions(-) rename make/idea/{template => }/build.xml (92%) rename make/langtools/intellij/{ => template}/ant.xml (73%) rename make/langtools/intellij/{ => template}/codeStyleSettings.xml (100%) rename make/langtools/intellij/{ => template}/compiler.xml (100%) rename make/langtools/intellij/{ => template}/copyright/langtools.xml (100%) rename make/langtools/intellij/{ => template}/copyright/profiles_settings.xml (100%) rename make/langtools/intellij/{ => template}/inspectionProfiles/langtools.xml (100%) rename make/langtools/intellij/{ => template}/inspectionProfiles/profiles_settings.xml (100%) rename make/langtools/intellij/{ => template}/langtools.iml (100%) rename make/langtools/intellij/{ => template}/misc.xml (85%) rename make/langtools/intellij/{ => template}/modules.xml (100%) rename make/langtools/intellij/{ => template}/runConfigurations/javac.xml (100%) rename make/langtools/intellij/{ => template}/runConfigurations/javadoc.xml (100%) rename make/langtools/intellij/{ => template}/runConfigurations/javap.xml (100%) rename make/langtools/intellij/{ => template}/runConfigurations/jshell.xml (100%) rename make/langtools/intellij/{ => template}/runConfigurations/sjavac.xml (100%) rename make/langtools/intellij/{ => template}/src/idea/LangtoolsIdeaAntLogger.java (100%) rename make/langtools/intellij/{ => template}/vcs.xml (100%) rename make/langtools/intellij/{ => template}/workspace.xml (91%) diff --git a/bin/idea.sh b/bin/idea.sh index 0852ff09f45..03b9eee13da 100644 --- a/bin/idea.sh +++ b/bin/idea.sh @@ -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=" " SOURCE_FOLDERS_DONE="false" diff --git a/make/idea/template/build.xml b/make/idea/build.xml similarity index 92% rename from make/idea/template/build.xml rename to make/idea/build.xml index 0377d266539..611ba851447 100644 --- a/make/idea/template/build.xml +++ b/make/idea/build.xml @@ -1,7 +1,7 @@ - + - diff --git a/make/idea/template/ant.xml b/make/idea/template/ant.xml index 5c2519d4606..89862ba1f78 100644 --- a/make/idea/template/ant.xml +++ b/make/idea/template/ant.xml @@ -1,11 +1,12 @@ - + + diff --git a/make/idea/template/misc.xml b/make/idea/template/misc.xml index 6363b8a051f..509bb021f2b 100644 --- a/make/idea/template/misc.xml +++ b/make/idea/template/misc.xml @@ -9,10 +9,10 @@ - + - + diff --git a/make/idea/template/workspace.xml b/make/idea/template/workspace.xml index 7113a00aa75..384ee54579d 100644 --- a/make/idea/template/workspace.xml +++ b/make/idea/template/workspace.xml @@ -11,24 +11,11 @@