2020 */
2121
2222import org .codehaus .plexus .archiver .*;
23+ import org .codehaus .plexus .components .io .attributes .PlexusIoResourceAttributes ;
2324import org .codehaus .plexus .components .io .resources .PlexusIoResource ;
2425import org .codehaus .plexus .components .io .resources .PlexusIoResourceCollection ;
2526import org .codehaus .plexus .util .StringUtils ;
@@ -55,38 +56,39 @@ public void createArchive()
5556 public void addDirectory ( final @ Nonnull File directory )
5657 throws ArchiverException
5758 {
58- added .add ( new Addition ( directory , null , null , null , - 1 ) );
59+ added .add ( new Addition ( directory , null , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
5960 }
6061
6162 public void addDirectory ( final @ Nonnull File directory , final String prefix )
6263 throws ArchiverException
6364 {
64- added .add ( new Addition ( directory , prefix , null , null , - 1 ) );
65+ added .add ( new Addition ( directory , prefix , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
6566 }
6667
6768 public void addDirectory ( final @ Nonnull File directory , final String [] includes , final String [] excludes )
6869 throws ArchiverException
6970 {
70- added .add ( new Addition ( directory , null , includes , excludes , - 1 ) );
71+ added .add ( new Addition ( directory , null , includes , excludes , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
7172 }
7273
7374 public void addDirectory ( final @ Nonnull File directory , final String prefix , final String [] includes ,
7475 final String [] excludes )
7576 throws ArchiverException
7677 {
77- added .add ( new Addition ( directory , prefix , includes , excludes , -1 ) );
78+ added .add ( new Addition ( directory , prefix , includes , excludes ,
79+ PlexusIoResourceAttributes .UNKNOWN_OCTAL_MODE ) );
7880 }
7981
8082 public void addFileSet ( final @ Nonnull FileSet fileSet )
8183 throws ArchiverException
8284 {
83- added .add ( new Addition ( fileSet , null , null , null , - 1 ) );
85+ added .add ( new Addition ( fileSet , null , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
8486 }
8587
8688 public void addFile ( final @ Nonnull File inputFile , final @ Nonnull String destFileName )
8789 throws ArchiverException
8890 {
89- added .add ( new Addition ( inputFile , destFileName , null , null , - 1 ) );
91+ added .add ( new Addition ( inputFile , destFileName , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
9092 }
9193
9294 public void addFile ( final @ Nonnull File inputFile , final @ Nonnull String destFileName , final int permissions )
@@ -98,51 +100,53 @@ public void addFile( final @Nonnull File inputFile, final @Nonnull String destFi
98100 public void addArchivedFileSet ( final @ Nonnull File archiveFile )
99101 throws ArchiverException
100102 {
101- added .add ( new Addition ( archiveFile , null , null , null , - 1 ) );
103+ added .add ( new Addition ( archiveFile , null , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
102104 }
103105
104106 public void addArchivedFileSet ( final @ Nonnull File archiveFile , final String prefix )
105107 throws ArchiverException
106108 {
107- added .add ( new Addition ( archiveFile , prefix , null , null , - 1 ) );
109+ added .add ( new Addition ( archiveFile , prefix , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
108110 }
109111
110112 public void addSymlink ( String s , String s2 )
111113 throws ArchiverException
112114 {
113- added .add ( new Addition ( s , null , null , null , - 1 ) );
115+ added .add ( new Addition ( s , null , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
114116 }
115117
116118 public void addSymlink ( String s , int i , String s2 )
117119 throws ArchiverException
118120 {
119- added .add ( new Addition ( s , null , null , null , - 1 ) );
121+ added .add ( new Addition ( s , null , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
120122
121123 }
122124
123125 public void addArchivedFileSet ( final File archiveFile , final String [] includes , final String [] excludes )
124126 throws ArchiverException
125127 {
126- added .add ( new Addition ( archiveFile , null , includes , excludes , -1 ) );
128+ added .add ( new Addition ( archiveFile , null , includes , excludes ,
129+ PlexusIoResourceAttributes .UNKNOWN_OCTAL_MODE ) );
127130 }
128131
129132 public void addArchivedFileSet ( final @ Nonnull File archiveFile , final String prefix , final String [] includes ,
130133 final String [] excludes )
131134 throws ArchiverException
132135 {
133- added .add ( new Addition ( archiveFile , prefix , includes , excludes , -1 ) );
136+ added .add ( new Addition ( archiveFile , prefix , includes , excludes ,
137+ PlexusIoResourceAttributes .UNKNOWN_OCTAL_MODE ) );
134138 }
135139
136140 public void addArchivedFileSet ( final ArchivedFileSet fileSet )
137141 throws ArchiverException
138142 {
139- added .add ( new Addition ( fileSet , null , null , null , - 1 ) );
143+ added .add ( new Addition ( fileSet , null , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
140144 }
141145
142146 public void addArchivedFileSet ( final ArchivedFileSet fileSet , Charset charset )
143147 throws ArchiverException
144148 {
145- added .add ( new Addition ( fileSet , null , null , null , - 1 ) );
149+ added .add ( new Addition ( fileSet , null , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
146150 }
147151
148152 public void addResource ( final PlexusIoResource resource , final String destFileName , final int permissions )
@@ -154,7 +158,7 @@ public void addResource( final PlexusIoResource resource, final String destFileN
154158 public void addResources ( final PlexusIoResourceCollection resources )
155159 throws ArchiverException
156160 {
157- added .add ( new Addition ( resources , null , null , null , - 1 ) );
161+ added .add ( new Addition ( resources , null , null , null , PlexusIoResourceAttributes . UNKNOWN_OCTAL_MODE ) );
158162 }
159163
160164 public File getDestFile ()
0 commit comments