HHH-13443 Build failing to parse *.properties file attributes containing trailing space

This commit is contained in:
MD. Mohiuddin Ahmed 2019-06-19 22:10:53 +06:00 committed by Sanne Grinovero
parent e7cefd8ddd
commit 084c91c3d0
1 changed files with 2 additions and 2 deletions

View File

@ -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) {