/** * This method is now deprecated. * * The {@code logger} provided is no longer used. * * @deprecated Use {@link #chmod(File, int)} */ @Deprecated public static void chmod( final File file, final int mode, final Logger logger ) throws ArchiverException { chmod( file, mode ); }
/** * This method is now deprecated. * * The {@code useJvmChmod} flag is ignored as the JVM is always used. * The {@code logger} provided is no longer used. * * @deprecated Use {@link #chmod(File, int)} */ @Deprecated public static void chmod( final File file, final int mode, final Logger logger, boolean useJvmChmod ) throws ArchiverException { chmod( file, mode ); }
private void setFileModes( ArchiveEntry entry, File outFile, long inLastModified ) { if ( !isIgnorePermissions() ) { ArchiveEntryUtils.chmod( outFile, entry.getMode() ); } outFile.setLastModified( inLastModified == PlexusIoResource.UNKNOWN_MODIFICATION_DATE ? System.currentTimeMillis() : inLastModified ); }
ArchiveEntryUtils.chmod( f, mode );
if ( !isIgnorePermissions() ) ArchiveEntryUtils.chmod( outFile, entry.getMode(), getLogger(), isUseJvmChmod() );
ArchiveEntryUtils.chmod( launcher, 0755, null );
if ( !isIgnorePermissions() ) ArchiveEntryUtils.chmod( outFile, entry.getMode(), getLogger(), isUseJvmChmod() );