Skip to content

Commit

Permalink
Merge pull request #5 from johnou/long-filenames
Browse files Browse the repository at this point in the history
JENKINS-13635: Backup warnings when performing tar.gz
  • Loading branch information
johnou committed Jan 3, 2013
2 parents 7a3bfc8 + 8b1d530 commit 4bf5a12
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -30,6 +30,7 @@
import org.codehaus.plexus.archiver.ArchiverException;
import org.codehaus.plexus.archiver.tar.TarArchiver;
import org.codehaus.plexus.archiver.tar.TarGZipUnArchiver;
import org.codehaus.plexus.archiver.tar.TarLongFileMode;
import org.codehaus.plexus.logging.console.ConsoleLogger;
import org.kohsuke.stapler.DataBoundConstructor;

Expand Down Expand Up @@ -64,6 +65,11 @@ public void backupStart(String tempDirectoryPath, String archiveFilenameBase) th
LOGGER.warning("Cannot set compression value " + e.getMessage());
}

// Support long filenames
TarLongFileMode fileMode = new TarLongFileMode();
fileMode.setValue(TarLongFileMode.GNU);
archiver.setLongfile(fileMode);

archiver.setCompression(compression);
}

Expand Down

0 comments on commit 4bf5a12

Please sign in to comment.