M
Mikael Petterson
Hi,
I am trying to find files in a directory (recursive in other directories)
that matches the following expression, org.eclipse.equinox.launcher_*.jar:
I have tried the following:
my $classpath;
find(\&equinox, '.');
sub equinox {
my $file = $File::Find::name;
#return unless -f $file;
if ($file =~ m/org.eclipse.equinox.launcher_*.jar/){
print "$file";
}
}
However it does not show the name of the files that I am searching for.
Problem 1: Find files in directories ( subdirectories ) matching
'org.eclipse.equinox.launcher_*.jar'.
Problem 2: Add each found entry ( full path ) to $classpath variable.
cheers,
//mikael
--
Mikael Petterson
Software Designer
Ericsson AB, Stockholm, Sweden
Visiting address: Isafjordsgatan 15, Kista
Phone: +46 70 2673044
E-mail: (e-mail address removed)
I am trying to find files in a directory (recursive in other directories)
that matches the following expression, org.eclipse.equinox.launcher_*.jar:
I have tried the following:
my $classpath;
find(\&equinox, '.');
sub equinox {
my $file = $File::Find::name;
#return unless -f $file;
if ($file =~ m/org.eclipse.equinox.launcher_*.jar/){
print "$file";
}
}
However it does not show the name of the files that I am searching for.
Problem 1: Find files in directories ( subdirectories ) matching
'org.eclipse.equinox.launcher_*.jar'.
Problem 2: Add each found entry ( full path ) to $classpath variable.
cheers,
//mikael
--
Mikael Petterson
Software Designer
Ericsson AB, Stockholm, Sweden
Visiting address: Isafjordsgatan 15, Kista
Phone: +46 70 2673044
E-mail: (e-mail address removed)