Skip to content

add format-java.sh using eclipse format.xml#22

Open
fpichler wants to merge 4 commits intodevfrom
add-format-java-script
Open

add format-java.sh using eclipse format.xml#22
fpichler wants to merge 4 commits intodevfrom
add-format-java-script

Conversation

@fpichler
Copy link
Member

No description provided.

@fpichler fpichler requested a review from msladek February 19, 2026 02:16
@fpichler fpichler changed the title add format-java.sh using eclips format.xml add format-java.sh using eclipse format.xml Feb 19, 2026
Comment on lines +42 to +43
-Dmaven.compiler.source=21 \
-Dmaven.compiler.target=21 \
Copy link
Member

Choose a reason for hiding this comment

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

improvement idea: to avoid hardcoding the java version, it could be extracted from the projects pom.xml

$ JAVA_VERSION=$(mvn help:evaluate -Dexpression=java.version -q -DforceStdout)
$ echo $JAVA_VERSION 
21.0.10

# Calculate script directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
FORMATTER_CONFIG="$DIR/../eclipse/synventis-code-formatter.xml"
echo "Formater-config: $FORMATTER_CONFIG"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
echo "Formater-config: $FORMATTER_CONFIG"
echo "Formatter config: $FORMATTER_CONFIG"

@msladek msladek assigned fpichler and unassigned msladek Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants