Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Support back-to-back properties and file.separator in SpoonPom #5156

Merged

Conversation

I-Al-Istannen
Copy link
Collaborator

This fixes property extraction for poms with <something>${first}${second}</something>.

This fixes property extraction for poms with
`<something>${first}${second}</something>`.
@I-Al-Istannen I-Al-Istannen self-assigned this Apr 6, 2023
@I-Al-Istannen I-Al-Istannen marked this pull request as ready for review April 6, 2023 08:24
@I-Al-Istannen I-Al-Istannen requested a review from SirYwell April 6, 2023 08:24
@@ -353,6 +353,8 @@
}
} else if ("project.basedir".equals(key) || "pom.basedir".equals(key) || "basedir".equals(key)) {
return pomFile.getParent();
} else if ("file.separator".equals(key)) {

This comment was marked as spam.

@sonatype-lift
Copy link
Contributor

sonatype-lift bot commented Apr 6, 2023

🛠 Lift Auto-fix

Some of the Lift findings in this PR can be automatically fixed. You can download and apply these changes in your local project directory of your branch to review the suggestions before committing.1

# Download the patch
curl https://lift.sonatype.com/api/patch/github.com/INRIA/spoon/5156.diff -o lift-autofixes.diff

# Apply the patch with git
git apply lift-autofixes.diff

# Review the changes
git diff

Want it all in a single command? Open a terminal in your project's directory and copy and paste the following command:

curl https://lift.sonatype.com/api/patch/github.com/INRIA/spoon/5156.diff | git apply

Once you're satisfied, commit and push your changes in your project.

Footnotes

  1. You can preview the patch by opening the patch URL in the browser.

Copy link
Collaborator

@SirYwell SirYwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@MartinWitt MartinWitt merged commit 78c3118 into INRIA:master Apr 13, 2023
@MartinWitt
Copy link
Collaborator

Thanks @I-Al-Istannen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants