| 2 |
## $Id$ |
## $Id$ |
| 3 |
## ---------------------------------------------------------------------- |
## ---------------------------------------------------------------------- |
| 4 |
## $Log$ |
## $Log$ |
| 5 |
|
## Revision 1.4 2003/02/22 16:51:21 joko |
| 6 |
|
## + enhanced run_executable |
| 7 |
|
## modified logging output |
| 8 |
|
## |
| 9 |
## Revision 1.3 2003/02/21 01:46:17 joko |
## Revision 1.3 2003/02/21 01:46:17 joko |
| 10 |
## renamed core function |
## renamed core function |
| 11 |
## |
## |
| 45 |
my $self = shift; |
my $self = shift; |
| 46 |
my $targetname = shift; |
my $targetname = shift; |
| 47 |
|
|
| 48 |
$self->log("Performing Target '$targetname'.", 'notice'); |
my $header = ("- " x 12) . " " . $targetname . " " . ("- " x 6); |
| 49 |
|
|
| 50 |
|
#$self->log("- " x 35, 'notice'); |
| 51 |
|
#$self->log("Performing Target '$targetname'.", 'notice'); |
| 52 |
|
|
| 53 |
|
$self->log($header, 'notice'); |
| 54 |
|
|
| 55 |
#exit; |
#exit; |
| 56 |
|
|
| 111 |
my $command = shift; |
my $command = shift; |
| 112 |
|
|
| 113 |
if (!$command) { |
if (!$command) { |
| 114 |
$self->log("Command was empty!", 'warning'); |
$self->log("Command was empty!", 'debug'); |
| 115 |
return; |
return; |
| 116 |
} |
} |
| 117 |
|
|
| 299 |
my @buf; |
my @buf; |
| 300 |
foreach (keys %$opts) { |
foreach (keys %$opts) { |
| 301 |
my $value = $opts->{$_}; |
my $value = $opts->{$_}; |
| 302 |
|
if (m/^_/) { |
| 303 |
|
if ($_ eq '_switches') { |
| 304 |
|
my @switches = split(/,\s|,/, $value); |
| 305 |
|
foreach my $switch (@switches) { |
| 306 |
|
push @buf, '--' . $switch; |
| 307 |
|
} |
| 308 |
|
} |
| 309 |
|
next; |
| 310 |
|
} |
| 311 |
|
|
| 312 |
if ($value =~ /\s/) { |
if ($value =~ /\s/) { |
| 313 |
$value = "\"$value\""; |
$value = "\"$value\""; |
| 314 |
} |
} |