Browse Source

addConfiguredX --> addX

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270794 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
8bf8f72792
4 changed files with 20 additions and 18 deletions
  1. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Jar.java
  2. +8
    -7
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Manifest.java
  3. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Jar.java
  4. +8
    -7
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Manifest.java

+ 2
- 2
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Jar.java View File

@@ -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 )


+ 8
- 7
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Manifest.java View File

@@ -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 );


+ 2
- 2
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Jar.java View File

@@ -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 )


+ 8
- 7
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Manifest.java View File

@@ -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 );


Loading…
Cancel
Save