always upload SNAPSHOT self-contained jars

This commit is contained in:
Xavier Léauté 2015-04-03 16:56:20 -07:00
parent 9e028840ed
commit 8b5fa8f85d
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class JobHelper
final Path hdfsPath = new Path(distributedClassPath, jarFile.getName());
if (!existing.contains(hdfsPath)) {
if (jarFile.getName().endsWith("SNAPSHOT.jar") || !fs.exists(hdfsPath)) {
if (jarFile.getName().matches(".*SNAPSHOT(-selfcontained)?\\.jar$") || !fs.exists(hdfsPath)) {
log.info("Uploading jar to path[%s]", hdfsPath);
ByteStreams.copy(
Files.newInputStreamSupplier(jarFile),