Tabnine Logo
Echo.execute
Code IndexAdd Tabnine to your IDE (free)

How to use
execute
method
in
org.apache.tools.ant.taskdefs.Echo

Best Java code snippets using org.apache.tools.ant.taskdefs.Echo.execute (Showing top 5 results out of 315)

origin: org.codehaus.mojo/plugin-support

  public void echo(final String msg) {
    assert msg != null;
    
    Echo echo = (Echo)createTask("echo");
    echo.setMessage(msg);
    echo.execute();
  }
}
origin: org.apache.geronimo.genesis.plugins/plugin-support

  public void echo(final String msg) {
    assert msg != null;
    
    Echo echo = (Echo)createTask("echo");
    echo.setMessage(msg);
    echo.execute();
  }
}
origin: appfuse/appfuse

private void installInternationalizationKeys(String webFramework) {
  createLoadFileTask("src/main/resources/" + pojoName + "-ApplicationResources.properties", "i18n.file").execute();
  File existingFile = new File(destinationDirectory + "/src/main/resources/ApplicationResources.properties");
  // if ApplicationResources doesn't exist, assume appfuse-light and use messages instead
  if (!existingFile.exists()) {
    if ("wicket".equalsIgnoreCase(webFramework)) {
      existingFile = new File(destinationDirectory + "/src/main/java/" + project.getGroupId().replace(".", "/")
          + "/webapp/pages/AbstractWebPage.properties");
    } else {
      existingFile = new File(destinationDirectory + "/src/main/resources/messages.properties");
    }
  }
  parsePropertiesFile(existingFile, pojoName);
  Echo echoTask = (Echo) antProject.createTask("echo");
  echoTask.setFile(existingFile);
  echoTask.setAppend(true);
  echoTask.setMessage(antProject.getProperty("i18n.file"));
  echoTask.execute();
}
origin: i18nlog/i18nlog

/**
* @see org.apache.tools.ant.Task#execute()
*/
public void execute()
throws BuildException
{
 validateTaskConfiguration();
 // because <echo> task lets you have the message in the XML text node, we need to trim all newlines and whitespace
 message = message.replaceAll( "\r\n", "" ).replaceAll( "\n", "" ).trim();
 // let's get the arguments
 // let's convert the message (which is only a bundle key right now) to the actual localized message
 message = Msg.createMsg( m_bundle, m_locale, message, m_arguments.toArray() ).toString();
 // if property is set, put the message text in that property, otherwise, we echo the message
 if ( m_property != null )
 {
   Project proj = getOwningTarget().getProject();
   proj.setNewProperty( m_property, message );
 }
 else
 {
   super.execute();
 }
 return;
}
origin: net.open-esb.core/jbi-ant-tasks

/**
 * Does the work.
 *
 * @exception BuildException if something goes wrong with the build
 */
public void execute() throws BuildException
{
  String i18nKey = this.getKey();
  String bundleBase = this.getBundle();
  String msg = null;
  if ( i18nKey != null )
  {
    msg = loadMessageFromBundle(bundleBase, i18nKey, getArguments());
  }
  
  if ( msg != null )
  {
    this.setMessage(msg);
  }
  // do actual echo
  super.execute();
}

org.apache.tools.ant.taskdefsEchoexecute

Javadoc

Does the work.

Popular methods of Echo

  • setMessage
    Message to write.
  • setAppend
    If true, append to existing file.
  • setFile
    File to write to.
  • setLevel
    Set the logging level. Level should be one of * error * warning * info * verbose * debug The de
  • <init>
  • getLocation
  • getProject
  • init
  • perform
  • setOutput
    Resource to write to.
  • setOwningTarget
  • setProject
  • setOwningTarget,
  • setProject

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now