public static boolean updatePomProperty ( Properties properties , String name , Object value , boolean updated ) { if ( value != null ) { Object oldValue = properties . get ( name ) ; if ( ! Objects . equal ( oldValue , value ) ) { getLOG ( ) . debug ( "Updating pom.xml property: " + name + " to " + value ) ; properties . put ( name , value ) ; return true ; } } return updated ; }
Updates the given maven property value if value is not null and returns true if the pom has been changed