diff --git a/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java b/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java index ae767d020..99eeb81c2 100644 --- a/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java +++ b/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java @@ -64,7 +64,10 @@ public class JarArchiver /** * The index file name. + * + * @deprecated See JDK-8302819 */ + @Deprecated private static final String INDEX_NAME = "META-INF/INDEX.LIST"; /** @@ -120,7 +123,10 @@ public class JarArchiver /** * jar index is JDK 1.3+ only + * + * @deprecated See JDK-8302819 */ + @Deprecated private boolean index = false; /** @@ -140,7 +146,10 @@ public class JarArchiver /** * Path containing jars that shall be indexed in addition to this archive. + * + * @deprecated See JDK-8302819 */ + @Deprecated private List indexJars; /** @@ -164,7 +173,9 @@ public JarArchiver() * This may speed up classloading in some cases. * * @param flag true to create an index + * @deprecated See JDK-8302819 */ + @Deprecated public void setIndex( boolean flag ) { index = flag; @@ -291,7 +302,9 @@ public void setFilesetmanifest( FilesetManifestConfig config ) /** * @param indexJar The indexjar + * @deprecated See JDK-8302819 */ + @Deprecated public void addConfiguredIndexJars( File indexJar ) { if ( indexJars == null ) @@ -402,7 +415,9 @@ protected void finalizeZipOutputStream( ConcurrentJarCreator zOut ) * @throws IOException thrown if there is an error while creating the * index and adding it to the zip stream. * @throws org.codehaus.plexus.archiver.ArchiverException + * @deprecated See JDK-8302819 */ + @Deprecated private void createIndexList( ConcurrentJarCreator zOut ) throws IOException, ArchiverException { @@ -657,7 +672,9 @@ public enum FilesetManifestConfig * @param dirs The directories * @param files The files * @param writer The printwriter ;) + * @deprecated See JDK-8302819 */ + @Deprecated protected final void writeIndexLikeList( List dirs, List files, PrintWriter writer ) { // JarIndex is sorting the directories by ascending order.