mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-19 03:55:19 -04:00
Rename renameFolders
to removeDateFromFolderName
This commit is contained in:
parent
88441468c3
commit
7c7f56d0de
@ -111,7 +111,7 @@ task unzipLibzim(type: Copy) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task renameLibzimFolders() {
|
task renameLibzimFolders() {
|
||||||
renameFolders(buildDir.path,"libzim_")
|
removeDateFromFolderName(buildDir.path,"libzim_")
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyLibzimHeaderAndSoFiles(type: Copy) {
|
task copyLibzimHeaderAndSoFiles(type: Copy) {
|
||||||
@ -175,10 +175,10 @@ task downloadLibkiwixSoAndHeaderFiles(type: Download) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task renameLibkiwixFolders() {
|
task renameLibkiwixFolders() {
|
||||||
renameFolders(buildDir.path,"libkiwix_")
|
removeDateFromFolderName(buildDir.path,"libkiwix_")
|
||||||
}
|
}
|
||||||
|
|
||||||
static void renameFolders(String path, String startWith) {
|
static void removeDateFromFolderName(String path, String startWith) {
|
||||||
File directory = new File(path)
|
File directory = new File(path)
|
||||||
if (directory.exists() && directory.isDirectory()) {
|
if (directory.exists() && directory.isDirectory()) {
|
||||||
Arrays.stream(directory.listFiles())
|
Arrays.stream(directory.listFiles())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user