Manifest manifest = new Manifest(new FileInputStream(manifestFile));
Attributes attrs = manifest.getMainAttributes();
if (repoFolder == null) {
repoFolder = attrs.getValue(Constants.ATTR_ASSEMBLY_REPOSITORY);
}
<BUG>}
if (repoFolder != null && !repoFolder.isEmpty()) {
tmpAssemblyFolder = new File(tmpAssemblyFolder, repoFolder);

if (!tmpAssemblyFolder.isDirectory()) {
</BUG>
throw new IllegalArgumentException("No such repository folder within the assembly: " + repoFolder);

Manifest manifest = new Manifest(new FileInputStream(manifestFile));
Attributes attrs = manifest.getMainAttributes();
if (repoFolder == null) {
repoFolder = attrs.getValue(Constants.ATTR_ASSEMBLY_REPOSITORY);
