From 084c91c3d0eae4b96bbf05dd30723a9f0b232ddb Mon Sep 17 00:00:00 2001 From: "MD. Mohiuddin Ahmed" Date: Wed, 19 Jun 2019 22:10:53 +0600 Subject: [PATCH] HHH-13443 Build failing to parse *.properties file attributes containing trailing space --- .../src/main/java/org/hibernate/tool/schema/Action.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/tool/schema/Action.java b/hibernate-core/src/main/java/org/hibernate/tool/schema/Action.java index 1453f7d807..d0acffaeae 100644 --- a/hibernate-core/src/main/java/org/hibernate/tool/schema/Action.java +++ b/hibernate-core/src/main/java/org/hibernate/tool/schema/Action.java @@ -150,7 +150,7 @@ public enum Action { return hbm2ddlSetting( (Action) value ); } - final String name = value.toString(); + final String name = value.toString().trim(); if ( StringHelper.isEmpty( name ) || NONE.externalJpaName.equals( name ) ) { // default is NONE return NONE; @@ -178,7 +178,7 @@ public enum Action { } } - throw new IllegalArgumentException( "Unrecognized legacy `hibernate.hbm2ddl.auto` value : " + value ); + throw new IllegalArgumentException( "Unrecognized legacy `hibernate.hbm2ddl.auto` value : `" + value + "`"); } private static Action hbm2ddlSetting(Action action) {