Browse Source

addText() --> addContent()

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270436 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
e2288433da
18 changed files with 32 additions and 32 deletions
  1. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Echo.java
  2. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Input.java
  3. +3
    -3
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Replace.java
  4. +3
    -3
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
  5. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/javadoc/GroupArgument.java
  6. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/javadoc/Html.java
  7. +4
    -4
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/javadoc/Javadoc.java
  8. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
  9. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java
  10. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Echo.java
  11. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Input.java
  12. +3
    -3
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Replace.java
  13. +3
    -3
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/SQLExec.java
  14. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/javadoc/GroupArgument.java
  15. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/javadoc/Html.java
  16. +4
    -4
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/javadoc/Javadoc.java
  17. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Script.java
  18. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java

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

@@ -60,7 +60,7 @@ public class Echo
* *
* @param msg The feature to be added to the Text attribute * @param msg The feature to be added to the Text attribute
*/ */
public void addText( final String message )
public void addContent( final String message )
throws TaskException throws TaskException
{ {
m_message = message; m_message = message;


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

@@ -85,7 +85,7 @@ public class Input extends Task
* *
* @param msg The feature to be added to the Text attribute * @param msg The feature to be added to the Text attribute
*/ */
public void addText( String msg )
public void addContent( String msg )
throws TaskException throws TaskException
{ {
message += getProject().replaceProperties( msg ); message += getProject().replaceProperties( msg );


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

@@ -114,7 +114,7 @@ public class Replace extends MatchingTask
*/ */
public void setToken( String token ) public void setToken( String token )
{ {
createReplaceToken().addText( token );
createReplaceToken().addContent( token );
} }


/** /**
@@ -124,7 +124,7 @@ public class Replace extends MatchingTask
*/ */
public void setValue( String value ) public void setValue( String value )
{ {
createReplaceValue().addText( value );
createReplaceValue().addContent( value );
} }


public Properties getProperties( File propertyFile ) public Properties getProperties( File propertyFile )
@@ -485,7 +485,7 @@ public class Replace extends MatchingTask
return buf.toString(); return buf.toString();
} }


public void addText( String val )
public void addContent( String val )
{ {
buf.append( val ); buf.append( val );
} }


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

@@ -354,7 +354,7 @@ public class SQLExec extends Task
* *
* @param sql The feature to be added to the Text attribute * @param sql The feature to be added to the Text attribute
*/ */
public void addText( String sql )
public void addContent( String sql )
{ {
this.sqlCommand += sql; this.sqlCommand += sql;
} }
@@ -425,7 +425,7 @@ public class SQLExec extends Task
// Make a transaction group for the outer command // Make a transaction group for the outer command
Transaction t = createTransaction(); Transaction t = createTransaction();
t.setSrc( srcFile ); t.setSrc( srcFile );
t.addText( sqlCommand );
t.addContent( sqlCommand );
} }


if( driver == null ) if( driver == null )
@@ -839,7 +839,7 @@ public class SQLExec extends Task
this.tSrcFile = src; this.tSrcFile = src;
} }


public void addText( String sql )
public void addContent( String sql )
{ {
this.tSqlCommand += sql; this.tSqlCommand += sql;
} }


+ 1
- 1
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/javadoc/GroupArgument.java View File

@@ -30,7 +30,7 @@ public class GroupArgument
public void setTitle( final String src ) public void setTitle( final String src )
{ {
final Html h = new Html(); final Html h = new Html();
h.addText( src );
h.addContent( src );
addTitle( h ); addTitle( h );
} }




+ 1
- 1
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/javadoc/Html.java View File

@@ -16,7 +16,7 @@ public class Html
return m_text.toString(); return m_text.toString();
} }


public void addText( final String text )
public void addContent( final String text )
{ {
m_text.append( text ); m_text.append( text );
} }


+ 4
- 4
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/javadoc/Javadoc.java View File

@@ -130,7 +130,7 @@ public class Javadoc
public void setBottom( String src ) public void setBottom( String src )
{ {
Html h = new Html(); Html h = new Html();
h.addText( src );
h.addContent( src );
addBottom( h ); addBottom( h );
} }


@@ -219,7 +219,7 @@ public class Javadoc
public void setDoctitle( String src ) public void setDoctitle( String src )
{ {
Html h = new Html(); Html h = new Html();
h.addText( src );
h.addContent( src );
addDoctitle( h ); addDoctitle( h );
} }


@@ -250,7 +250,7 @@ public class Javadoc
public void setFooter( String src ) public void setFooter( String src )
{ {
Html h = new Html(); Html h = new Html();
h.addText( src );
h.addContent( src );
addFooter( h ); addFooter( h );
} }


@@ -262,7 +262,7 @@ public class Javadoc
public void setHeader( String src ) public void setHeader( String src )
{ {
Html h = new Html(); Html h = new Html();
h.addText( src );
h.addContent( src );
addHeader( h ); addHeader( h );
} }




+ 1
- 1
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Script.java View File

@@ -71,7 +71,7 @@ public class Script extends Task
* *
* @param text The feature to be added to the Text attribute * @param text The feature to be added to the Text attribute
*/ */
public void addText( String text )
public void addContent( String text )
{ {
this.script += text; this.script += text;
} }


+ 1
- 1
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java View File

@@ -369,7 +369,7 @@ public class TelnetTask extends Task
taskString += s; taskString += s;
} }


public void addText( String s )
public void addContent( String s )
{ {
setString( s ); setString( s );
} }


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

@@ -60,7 +60,7 @@ public class Echo
* *
* @param msg The feature to be added to the Text attribute * @param msg The feature to be added to the Text attribute
*/ */
public void addText( final String message )
public void addContent( final String message )
throws TaskException throws TaskException
{ {
m_message = message; m_message = message;


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

@@ -85,7 +85,7 @@ public class Input extends Task
* *
* @param msg The feature to be added to the Text attribute * @param msg The feature to be added to the Text attribute
*/ */
public void addText( String msg )
public void addContent( String msg )
throws TaskException throws TaskException
{ {
message += getProject().replaceProperties( msg ); message += getProject().replaceProperties( msg );


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

@@ -114,7 +114,7 @@ public class Replace extends MatchingTask
*/ */
public void setToken( String token ) public void setToken( String token )
{ {
createReplaceToken().addText( token );
createReplaceToken().addContent( token );
} }


/** /**
@@ -124,7 +124,7 @@ public class Replace extends MatchingTask
*/ */
public void setValue( String value ) public void setValue( String value )
{ {
createReplaceValue().addText( value );
createReplaceValue().addContent( value );
} }


public Properties getProperties( File propertyFile ) public Properties getProperties( File propertyFile )
@@ -485,7 +485,7 @@ public class Replace extends MatchingTask
return buf.toString(); return buf.toString();
} }


public void addText( String val )
public void addContent( String val )
{ {
buf.append( val ); buf.append( val );
} }


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

@@ -354,7 +354,7 @@ public class SQLExec extends Task
* *
* @param sql The feature to be added to the Text attribute * @param sql The feature to be added to the Text attribute
*/ */
public void addText( String sql )
public void addContent( String sql )
{ {
this.sqlCommand += sql; this.sqlCommand += sql;
} }
@@ -425,7 +425,7 @@ public class SQLExec extends Task
// Make a transaction group for the outer command // Make a transaction group for the outer command
Transaction t = createTransaction(); Transaction t = createTransaction();
t.setSrc( srcFile ); t.setSrc( srcFile );
t.addText( sqlCommand );
t.addContent( sqlCommand );
} }


if( driver == null ) if( driver == null )
@@ -839,7 +839,7 @@ public class SQLExec extends Task
this.tSrcFile = src; this.tSrcFile = src;
} }


public void addText( String sql )
public void addContent( String sql )
{ {
this.tSqlCommand += sql; this.tSqlCommand += sql;
} }


+ 1
- 1
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/javadoc/GroupArgument.java View File

@@ -30,7 +30,7 @@ public class GroupArgument
public void setTitle( final String src ) public void setTitle( final String src )
{ {
final Html h = new Html(); final Html h = new Html();
h.addText( src );
h.addContent( src );
addTitle( h ); addTitle( h );
} }




+ 1
- 1
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/javadoc/Html.java View File

@@ -16,7 +16,7 @@ public class Html
return m_text.toString(); return m_text.toString();
} }


public void addText( final String text )
public void addContent( final String text )
{ {
m_text.append( text ); m_text.append( text );
} }


+ 4
- 4
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/javadoc/Javadoc.java View File

@@ -130,7 +130,7 @@ public class Javadoc
public void setBottom( String src ) public void setBottom( String src )
{ {
Html h = new Html(); Html h = new Html();
h.addText( src );
h.addContent( src );
addBottom( h ); addBottom( h );
} }


@@ -219,7 +219,7 @@ public class Javadoc
public void setDoctitle( String src ) public void setDoctitle( String src )
{ {
Html h = new Html(); Html h = new Html();
h.addText( src );
h.addContent( src );
addDoctitle( h ); addDoctitle( h );
} }


@@ -250,7 +250,7 @@ public class Javadoc
public void setFooter( String src ) public void setFooter( String src )
{ {
Html h = new Html(); Html h = new Html();
h.addText( src );
h.addContent( src );
addFooter( h ); addFooter( h );
} }


@@ -262,7 +262,7 @@ public class Javadoc
public void setHeader( String src ) public void setHeader( String src )
{ {
Html h = new Html(); Html h = new Html();
h.addText( src );
h.addContent( src );
addHeader( h ); addHeader( h );
} }




+ 1
- 1
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Script.java View File

@@ -71,7 +71,7 @@ public class Script extends Task
* *
* @param text The feature to be added to the Text attribute * @param text The feature to be added to the Text attribute
*/ */
public void addText( String text )
public void addContent( String text )
{ {
this.script += text; this.script += text;
} }


+ 1
- 1
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java View File

@@ -369,7 +369,7 @@ public class TelnetTask extends Task
taskString += s; taskString += s;
} }


public void addText( String s )
public void addContent( String s )
{ {
setString( s ); setString( s );
} }


Loading…
Cancel
Save