Skip to content

Commit

Permalink
JENKINS-13635: Backup warnings when performing tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
johnou committed Jan 3, 2013
1 parent c6fb28f commit 8b1d530
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 8b1d530

Please sign in to comment.