##// END OF EJS Templates
Refactors axis updateGeometry handling...
Refactors axis updateGeometry handling * adds verticalaxis class * adds horizontalaxis class * adds updateGeometry logic to base clases * fixes small issues with axis hadnling for datetime,category,barcategory axis

File last commit:

r1203:5bd91523463d
r2111:80de54ed93f0
Show More
Jobs.pm
32 lines | 652 B | text/x-perl | PerlLexer
package Jobs;
use File::Basename;
use Tiny;
sub get {
my $inifile = shift;
my $jobname = shift;
# Strip the prefix from job name when using ${bamboo.buildPlanName}
my $prefix = "Digia Qt Commercial - Chart component - ";
$jobname =~ s/$prefix//;
# read ini file
my $cfg = Config::Tiny->read( $inifile );
# get section from ini by jobname
my %job = %{$cfg->{$jobname}};
if (!%job) {
die ("Unknown jobname! Check $inifile and bamboo job name.");
}
# print out the ini settings
print "\n\nini file: $inifile\n";
print "[$jobname]\n";
foreach (keys %job) {
print $_ . "=" . $job{$_} . "\n";
}
print "\n";
return %job;
}
1;