From duke at openjdk.org Mon Jan 19 17:29:35 2026 From: duke at openjdk.org (David Beaumont) Date: Mon, 19 Jan 2026 17:29:35 GMT Subject: RFR: 8375649: idea.sh script adds source paths in a single, enormous, line to jdk.iml. Message-ID: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> Allow replacement string to contain embedded newlines to split entries. This turns output like: ... another 10k chars on the end of this line ... into: ... one entry per line ... ------------- Commit messages: - 8375649: idea.sh script adds source paths in a single, enormous, line to jdk.iml Changes: https://git.openjdk.org/jdk/pull/29305/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29305&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8375649 Stats: 6 lines in 1 file changed: 4 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/29305.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/29305/head:pull/29305 PR: https://git.openjdk.org/jdk/pull/29305 From liach at openjdk.org Mon Jan 19 17:43:34 2026 From: liach at openjdk.org (Chen Liang) Date: Mon, 19 Jan 2026 17:43:34 GMT Subject: RFR: 8375649: idea.sh script adds source paths in a single, enormous, line to jdk.iml In-Reply-To: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> References: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> Message-ID: On Mon, 19 Jan 2026 17:23:10 GMT, David Beaumont wrote: > Allow replacement string to contain embedded newlines to split entries. > This turns output like: > > > > ... another 10k chars on the end of this line ... > > > into: > > > > > > ... one entry per line ... Should we just leave the newline in SOURCE_POSTFIX? ------------- PR Comment: https://git.openjdk.org/jdk/pull/29305#issuecomment-3769511305 From duke at openjdk.org Mon Jan 19 20:08:56 2026 From: duke at openjdk.org (David Beaumont) Date: Mon, 19 Jan 2026 20:08:56 GMT Subject: RFR: 8375649: idea.sh script adds source paths in a single, enormous, line to jdk.iml In-Reply-To: References: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> Message-ID: On Mon, 19 Jan 2026 17:39:58 GMT, Chen Liang wrote: > Should we just leave the newline in SOURCE_POSTFIX? You end up with an extra blank line in the output if you do that, unless you mess with the template file as well. The postfix is output +1 times more than the intermediate separator (fence posts). ------------- PR Comment: https://git.openjdk.org/jdk/pull/29305#issuecomment-3769946094 From erikj at openjdk.org Tue Jan 20 19:13:56 2026 From: erikj at openjdk.org (Erik Joelsson) Date: Tue, 20 Jan 2026 19:13:56 GMT Subject: RFR: 8375649: idea.sh script adds source paths in a single, enormous, line to jdk.iml In-Reply-To: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> References: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> Message-ID: On Mon, 19 Jan 2026 17:23:10 GMT, David Beaumont wrote: > Allow replacement string to contain embedded newlines to split entries. > This turns output like: > > > > ... another 10k chars on the end of this line ... > > > into: > > > > > > ... one entry per line ... Marked as reviewed by erikj (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/29305#pullrequestreview-3683874366 From liach at openjdk.org Wed Jan 21 16:35:14 2026 From: liach at openjdk.org (Chen Liang) Date: Wed, 21 Jan 2026 16:35:14 GMT Subject: RFR: 8375649: idea.sh script adds source paths in a single, enormous, line to jdk.iml In-Reply-To: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> References: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> Message-ID: On Mon, 19 Jan 2026 17:23:10 GMT, David Beaumont wrote: > Allow replacement string to contain embedded newlines to split entries. > This turns output like: > > > > ... another 10k chars on the end of this line ... > > > into: > > > > > > ... one entry per line ... In addition, I see extra spaces presumably for indent after the `\n` - are we sure the number of spaces is correct? Is there a reason we don't need this indent for the 1st line? ------------- PR Comment: https://git.openjdk.org/jdk/pull/29305#issuecomment-3779447248 From duke at openjdk.org Thu Jan 22 10:49:55 2026 From: duke at openjdk.org (David Beaumont) Date: Thu, 22 Jan 2026 10:49:55 GMT Subject: RFR: 8375649: idea.sh script adds source paths in a single, enormous, line to jdk.iml In-Reply-To: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> References: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> Message-ID: On Mon, 19 Jan 2026 17:23:10 GMT, David Beaumont wrote: > Allow replacement string to contain embedded newlines to split entries. > This turns output like: > > > > ... another 10k chars on the end of this line ... > > > into: > > > > > > ... one entry per line ... The spaces are correct (6) and the first line's indent is in the template file itself. ------------- PR Comment: https://git.openjdk.org/jdk/pull/29305#issuecomment-3783728479 From liach at openjdk.org Thu Jan 22 23:22:23 2026 From: liach at openjdk.org (Chen Liang) Date: Thu, 22 Jan 2026 23:22:23 GMT Subject: RFR: 8375649: idea.sh script adds source paths in a single, enormous, line to jdk.iml In-Reply-To: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> References: <8VKFvGh68jUTy_zfGyXsDUS9qu-vxOQ0bbWEnkMrcXU=.a0ad4c14-4181-4752-9780-cdcef5f8a1a2@github.com> Message-ID: On Mon, 19 Jan 2026 17:23:10 GMT, David Beaumont wrote: > Allow replacement string to contain embedded newlines to split entries. > This turns output like: > > > > ... another 10k chars on the end of this line ... > > > into: > > > > > > ... one entry per line ... Sure, I think someone who revisit that template will notice this bash and update here too :) ------------- Marked as reviewed by liach (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/29305#pullrequestreview-3695031056