Java-Build
view release on metacpan or search on metacpan
Build/Tasks.pm view on Meta::CPAN
to the directory from which the script was launched.
=item NEW_PROPS
A hash reference with the keys you want to change or add and their new values.
=back
=cut
sub update_prop_file {
my %args = @_;
my $name = delete $args{NAME}
or _my_croak "You didn't supply a NAME to update_prop_file";
my $new_props = delete $args{NEW_PROPS}
or _my_croak "You didn't supply a NEW_PROPS to update_prop_file";
_my_croak "Bad argument to update_prop_file: ", keys %args if (keys %args);
my $old_props = read_prop_file($name) || {};
my %output_props = ( %$old_props, %$new_props );
( run in 0.444 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )