+ " extists but is not a directory!");
}
if (coreName == null || coreName.isEmpty()) {
throw new IllegalArgumentException("The parsed core name MUST NOT be NULL or empty!");
}
ArchiveEntry entry;
while ((entry = ais.getNextEntry()) != null) {
if (!entry.isDirectory()) {
copyArchiveEntry(ais, entry, coreDir, coreName, override);
/*
* NOTE: Here we use the coreName as context (last argument to prepairCopy(..)). This ensures
* that it matter if the archive contains the data directly in the root or within an folder
* with the name of the core.