| 2 |
## $Id$ |
## $Id$ |
| 3 |
## ---------------------------------------------------------------------- |
## ---------------------------------------------------------------------- |
| 4 |
## $Log$ |
## $Log$ |
| 5 |
|
## Revision 1.13 2003/12/05 05:02:08 joko |
| 6 |
|
## + minor update: disabled some unnecessary loggers or changed to debug-level |
| 7 |
|
## |
| 8 |
## Revision 1.12 2003/06/24 20:59:51 jonen |
## Revision 1.12 2003/06/24 20:59:51 jonen |
| 9 |
## added option 'detach' |
## added option 'detach' |
| 10 |
## |
## |
| 65 |
use Data::Mungle::Transform::Deep qw( expand deep_copy ); |
use Data::Mungle::Transform::Deep qw( expand deep_copy ); |
| 66 |
use File::Temp qw/ tempfile tempdir /; |
use File::Temp qw/ tempfile tempdir /; |
| 67 |
|
|
| 68 |
|
my $DEBUG = 0; |
| 69 |
|
|
| 70 |
sub performTarget { |
sub performTarget { |
| 71 |
my $self = shift; |
my $self = shift; |
| 93 |
#$self->log($header, 'notice'); |
#$self->log($header, 'notice'); |
| 94 |
|
|
| 95 |
# V3 |
# V3 |
| 96 |
$self->log("- " x 20, 'info'); |
#$self->log("- " x 20, 'info'); |
| 97 |
$self->log("Performing Target '$targetname'.", 'notice'); |
$self->log("Performing Target '$targetname'.", 'notice'); |
| 98 |
|
|
| 99 |
#exit; |
#exit; |
| 166 |
my $options = shift; |
my $options = shift; |
| 167 |
|
|
| 168 |
if (!$command) { |
if (!$command) { |
| 169 |
$self->log("Command was empty!", 'debug'); |
$self->log("Command was empty!", 'debug') if $DEBUG; |
| 170 |
return; |
return; |
| 171 |
} |
} |
| 172 |
|
|
| 173 |
# FIXME: make '__PACKAGE__' go one level deeper properly! |
# FIXME: make '__PACKAGE__' go one level deeper properly! |
| 174 |
$self->log( __PACKAGE__ . "->perform_command: " . $command, 'debug'); |
$self->log( __PACKAGE__ . "->perform_command: " . $command, 'debug') if $DEBUG; |
| 175 |
|
|
| 176 |
|
|
| 177 |
# 1. make arguments from list of arguments(?) |
# 1. make arguments from list of arguments(?) |
| 214 |
} else { |
} else { |
| 215 |
my $level = "debug"; |
my $level = "debug"; |
| 216 |
$level = "warning" if $options->{warn}; |
$level = "warning" if $options->{warn}; |
| 217 |
$self->log("Command '$command' not implemented.", $level); |
$self->log("Command '$command' not implemented.", $level) if $DEBUG; |
| 218 |
} |
} |
| 219 |
|
|
| 220 |
} |
} |
| 341 |
|
|
| 342 |
$name = '__rap.properties.' . $name; |
$name = '__rap.properties.' . $name; |
| 343 |
|
|
| 344 |
$self->log("get-name: $name"); |
$self->log("get-name: $name") if $DEBUG; |
| 345 |
|
|
| 346 |
# get property slot and return value |
# get property slot and return value |
| 347 |
$result = ref_slot($self, $name, undef, '.'); |
$result = ref_slot($self, $name, undef, '.'); |