Changeset 13595 in josm for trunk/tools/japicc/modules/Internals/SysFiles.pm
- Timestamp:
- 2018-04-02T23:20:00+02:00 (8 years ago)
- File:
-
- 1 edited
-
trunk/tools/japicc/modules/Internals/SysFiles.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/japicc/modules/Internals/SysFiles.pm
r12872 r13595 2 2 # A module to find system files 3 3 # 4 # Copyright (C) 2016-201 7Andrey Ponomarenko's ABI Laboratory4 # Copyright (C) 2016-2018 Andrey Ponomarenko's ABI Laboratory 5 5 # 6 6 # Written by Andrey Ponomarenko 7 7 # 8 # This program is free software: you can redistribute it and/or modify 9 # it under the terms of the GNU General Public License or the GNU Lesser 10 # General Public License as published by the Free Software Foundation. 11 # 12 # This program is distributed in the hope that it will be useful, 8 # This library is free software; you can redistribute it and/or 9 # modify it under the terms of the GNU Lesser General Public 10 # License as published by the Free Software Foundation; either 11 # version 2.1 of the License, or (at your option) any later version. 12 # 13 # This library is distributed in the hope that it will be useful, 13 14 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # and the GNU Lesser General Public License along with this program. 19 # If not, see <http://www.gnu.org/licenses/>. 15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 # Lesser General Public License for more details. 17 # 18 # You should have received a copy of the GNU Lesser General Public 19 # License along with this library; if not, write to the Free Software 20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 21 # MA 02110-1301 USA. 20 22 ########################################################################### 21 23 use strict; … … 225 227 } 226 228 229 sub getArchivePaths($$) 230 { 231 my ($Dest, $LVer) = @_; 232 if(-f $Dest) { 233 return ($Dest); 234 } 235 elsif(-d $Dest) 236 { 237 $Dest=~s/[\/\\]+\Z//g; 238 next if(not $Dest); 239 240 my @Archives = (); 241 foreach my $Path (cmdFind($Dest, "", "*\\.jar")) 242 { 243 next if(ignorePath($Path, $Dest)); 244 push(@Archives, realpath_F($Path)); 245 } 246 foreach my $Path (cmdFind($Dest, "", "*\\.jmod")) 247 { 248 next if(ignorePath($Path, $Dest)); 249 push(@Archives, realpath_F($Path)); 250 } 251 return @Archives; 252 } 253 return (); 254 } 255 227 256 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.
