in reply to How to find ant home/specific directory in Linux using perl
If I understand the question correctly, you need to change this line:
my $modulesDir = File::Spec->catfile($testDir, "modules");
to:
my $modulesDir = File::Spec->catfile(($testDir, 'common'), "modules");
Also, this line:
return File::Spec->catfile($testDir, $antDir);
should be:
return File::Spec->catfile($modulesDir, $antDir);
See File::Spec.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to find ant home/specific directory in Linux using perl
by sandeepda (Novice) on Feb 05, 2014 at 09:07 UTC | |
by Athanasius (Archbishop) on Feb 05, 2014 at 15:53 UTC |