File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import java.nio.file.Paths
12import java.util.stream.Collectors
23
34plugins {
@@ -113,7 +114,7 @@ task unzipLibzim(type: Copy) {
113114}
114115
115116task renameLibzimFolders () {
116- renameFolders (buildDir. path," libzim_" )
117+ removeDateFromFolderName (buildDir. path," libzim_" )
117118}
118119
119120task copyLibzimHeaderAndSoFiles (type : Copy ) {
@@ -177,10 +178,10 @@ task downloadLibkiwixSoAndHeaderFiles(type: Download) {
177178}
178179
179180task renameLibkiwixFolders () {
180- renameFolders (buildDir. path," libkiwix_" )
181+ removeDateFromFolderName (buildDir. path," libkiwix_" )
181182}
182183
183- static void renameFolders (String path , String startWith ) {
184+ static void removeDateFromFolderName (String path , String startWith ) {
184185 File directory = new File (path)
185186 if (directory. exists() && directory. isDirectory()) {
186187 Arrays . stream(directory. listFiles())
You can’t perform that action at this time.
0 commit comments