git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270794 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -22,7 +22,7 @@ import java.util.Iterator; | |||||
| import org.apache.myrmidon.api.TaskException; | import org.apache.myrmidon.api.TaskException; | ||||
| import org.apache.tools.ant.types.FileScanner; | import org.apache.tools.ant.types.FileScanner; | ||||
| import org.apache.tools.ant.types.ZipFileSet; | import org.apache.tools.ant.types.ZipFileSet; | ||||
| import org.apache.tools.zip.ZipOutputStream; | |||||
| import org.apache.aut.zip.ZipOutputStream; | |||||
| /** | /** | ||||
| * Creates a JAR archive. | * Creates a JAR archive. | ||||
| @@ -127,7 +127,7 @@ public class Jar | |||||
| getLogger().warn( message ); | getLogger().warn( message ); | ||||
| } | } | ||||
| public void addConfiguredManifest( Manifest newManifest ) | |||||
| public void addManifest( Manifest newManifest ) | |||||
| throws ManifestException, TaskException | throws ManifestException, TaskException | ||||
| { | { | ||||
| if( m_manifest == null ) | if( m_manifest == null ) | ||||
| @@ -32,7 +32,8 @@ import org.apache.tools.ant.types.EnumeratedAttribute; | |||||
| * @author <a href="mailto:conor@apache.org">Conor MacNeill</a> | * @author <a href="mailto:conor@apache.org">Conor MacNeill</a> | ||||
| * @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a> | * @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a> | ||||
| */ | */ | ||||
| public class Manifest extends Task | |||||
| public class Manifest | |||||
| extends Task | |||||
| { | { | ||||
| /** | /** | ||||
| * The standard manifest version header | * The standard manifest version header | ||||
| @@ -152,7 +153,7 @@ public class Manifest extends Task | |||||
| section.setName( nextSectionName ); | section.setName( nextSectionName ); | ||||
| nextSectionName = section.read( reader ); | nextSectionName = section.read( reader ); | ||||
| addConfiguredSection( section ); | |||||
| addSection( section ); | |||||
| } | } | ||||
| } | } | ||||
| @@ -239,13 +240,13 @@ public class Manifest extends Task | |||||
| return warnings.iterator(); | return warnings.iterator(); | ||||
| } | } | ||||
| public void addConfiguredAttribute( Attribute attribute ) | |||||
| public void addAttribute( final Attribute attribute ) | |||||
| throws ManifestException, TaskException | throws ManifestException, TaskException | ||||
| { | { | ||||
| mainSection.addConfiguredAttribute( attribute ); | |||||
| mainSection.addAttribute( attribute ); | |||||
| } | } | ||||
| public void addConfiguredSection( Section section ) | |||||
| public void addSection( final Section section ) | |||||
| throws ManifestException, TaskException | throws ManifestException, TaskException | ||||
| { | { | ||||
| if( section.getName() == null ) | if( section.getName() == null ) | ||||
| @@ -446,7 +447,7 @@ public class Manifest extends Task | |||||
| { | { | ||||
| try | try | ||||
| { | { | ||||
| mainSection.addConfiguredAttribute( new Attribute( ATTRIBUTE_SIGNATURE_VERSION, signatureVersion ) ); | |||||
| mainSection.addAttribute( new Attribute( ATTRIBUTE_SIGNATURE_VERSION, signatureVersion ) ); | |||||
| } | } | ||||
| catch( ManifestException e ) | catch( ManifestException e ) | ||||
| { | { | ||||
| @@ -772,7 +773,7 @@ public class Manifest extends Task | |||||
| return null; | return null; | ||||
| } | } | ||||
| public void addConfiguredAttribute( Attribute attribute ) | |||||
| public void addAttribute( Attribute attribute ) | |||||
| throws ManifestException, TaskException | throws ManifestException, TaskException | ||||
| { | { | ||||
| String check = addAttributeAndCheck( attribute ); | String check = addAttributeAndCheck( attribute ); | ||||
| @@ -22,7 +22,7 @@ import java.util.Iterator; | |||||
| import org.apache.myrmidon.api.TaskException; | import org.apache.myrmidon.api.TaskException; | ||||
| import org.apache.tools.ant.types.FileScanner; | import org.apache.tools.ant.types.FileScanner; | ||||
| import org.apache.tools.ant.types.ZipFileSet; | import org.apache.tools.ant.types.ZipFileSet; | ||||
| import org.apache.tools.zip.ZipOutputStream; | |||||
| import org.apache.aut.zip.ZipOutputStream; | |||||
| /** | /** | ||||
| * Creates a JAR archive. | * Creates a JAR archive. | ||||
| @@ -127,7 +127,7 @@ public class Jar | |||||
| getLogger().warn( message ); | getLogger().warn( message ); | ||||
| } | } | ||||
| public void addConfiguredManifest( Manifest newManifest ) | |||||
| public void addManifest( Manifest newManifest ) | |||||
| throws ManifestException, TaskException | throws ManifestException, TaskException | ||||
| { | { | ||||
| if( m_manifest == null ) | if( m_manifest == null ) | ||||
| @@ -32,7 +32,8 @@ import org.apache.tools.ant.types.EnumeratedAttribute; | |||||
| * @author <a href="mailto:conor@apache.org">Conor MacNeill</a> | * @author <a href="mailto:conor@apache.org">Conor MacNeill</a> | ||||
| * @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a> | * @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a> | ||||
| */ | */ | ||||
| public class Manifest extends Task | |||||
| public class Manifest | |||||
| extends Task | |||||
| { | { | ||||
| /** | /** | ||||
| * The standard manifest version header | * The standard manifest version header | ||||
| @@ -152,7 +153,7 @@ public class Manifest extends Task | |||||
| section.setName( nextSectionName ); | section.setName( nextSectionName ); | ||||
| nextSectionName = section.read( reader ); | nextSectionName = section.read( reader ); | ||||
| addConfiguredSection( section ); | |||||
| addSection( section ); | |||||
| } | } | ||||
| } | } | ||||
| @@ -239,13 +240,13 @@ public class Manifest extends Task | |||||
| return warnings.iterator(); | return warnings.iterator(); | ||||
| } | } | ||||
| public void addConfiguredAttribute( Attribute attribute ) | |||||
| public void addAttribute( final Attribute attribute ) | |||||
| throws ManifestException, TaskException | throws ManifestException, TaskException | ||||
| { | { | ||||
| mainSection.addConfiguredAttribute( attribute ); | |||||
| mainSection.addAttribute( attribute ); | |||||
| } | } | ||||
| public void addConfiguredSection( Section section ) | |||||
| public void addSection( final Section section ) | |||||
| throws ManifestException, TaskException | throws ManifestException, TaskException | ||||
| { | { | ||||
| if( section.getName() == null ) | if( section.getName() == null ) | ||||
| @@ -446,7 +447,7 @@ public class Manifest extends Task | |||||
| { | { | ||||
| try | try | ||||
| { | { | ||||
| mainSection.addConfiguredAttribute( new Attribute( ATTRIBUTE_SIGNATURE_VERSION, signatureVersion ) ); | |||||
| mainSection.addAttribute( new Attribute( ATTRIBUTE_SIGNATURE_VERSION, signatureVersion ) ); | |||||
| } | } | ||||
| catch( ManifestException e ) | catch( ManifestException e ) | ||||
| { | { | ||||
| @@ -772,7 +773,7 @@ public class Manifest extends Task | |||||
| return null; | return null; | ||||
| } | } | ||||
| public void addConfiguredAttribute( Attribute attribute ) | |||||
| public void addAttribute( Attribute attribute ) | |||||
| throws ManifestException, TaskException | throws ManifestException, TaskException | ||||
| { | { | ||||
| String check = addAttributeAndCheck( attribute ); | String check = addAttributeAndCheck( attribute ); | ||||