Add support of directory in the KAR deployer
@@ -69,9 +69,9 @@ public class KarArtifactInstaller implements ArtifactInstaller {
}
public boolean canHandle(File file) {
- // If the file ends with .kar, then we can handle it!
+ // If the file or directory ends with .kar, then we can handle it!
//
- if (file.isFile() && file.getName().endsWith(KAR_SUFFIX)) {
+ if (file.getName().endsWith(KAR_SUFFIX)) {
LOGGER.info("Found a .kar file to deploy.");
return true;
}
