Package org.apache.tools.ant

Examples of org.apache.tools.ant.Project.log()


  public void execute()
  {
    Project project = getProject();
    project.log("PythonRunTask.execute()", Project.MSG_DEBUG);
    project.log("script: " + this.scriptFile, Project.MSG_DEBUG);
    project.log("command: " + this.command, Project.MSG_DEBUG);
   
   
   
    executeScript(project, this.dir, "Failure in running script");
View Full Code Here


  public void execute()
  {
    Project project = getProject();
    project.log("PythonRunTask.execute()", Project.MSG_DEBUG);
    project.log("script: " + this.scriptFile, Project.MSG_DEBUG);
    project.log("command: " + this.command, Project.MSG_DEBUG);
   
   
   
    executeScript(project, this.dir, "Failure in running script");
       
View Full Code Here

  private final static String FAIL_MSG = "Test execution failed.  See output for details.";

  public void execute()
  {
    Project project = getProject();
    project.log("PythonTestTask.execute()", Project.MSG_DEBUG);
    Commandline cmdline = new Commandline();
    cmdline.setExecutable("python");

    makeScript();
View Full Code Here

                MagicNames.ANT_FILE + "." + context.getCurrentProjectName();
            String dup = project.getProperty(antFileProp);
            if (dup != null && nameAttributeSet) {
                File dupFile = new File(dup);
                if (context.isIgnoringProjectTag() && !dupFile.equals(context.getBuildFile())) {
                    project.log("Duplicated project name in import. Project "
                            + context.getCurrentProjectName() + " defined first in " + dup
                            + " and again in " + context.getBuildFile(), Project.MSG_WARN);
                }
            }
            if (nameAttributeSet) {
View Full Code Here

            }
            Hashtable projectTargets = project.getTargets();
            boolean   usedTarget = false;
            // If the name has not already been defined define it
            if (projectTargets.containsKey(name)) {
                project.log("Already defined in main or a previous import, ignore " + name,
                        Project.MSG_VERBOSE);
            } else {
                target.setName(name);
                context.getCurrentTargets().put(name, target);
                project.addOrReplaceTarget(name, target);
View Full Code Here

            String dup = project.getProperty(antFileProp);
            if (dup != null && nameAttributeSet) {
                File dupFile = new File(dup);
                if (context.isIgnoringProjectTag()
                    && !dupFile.equals(context.getBuildFile())) {
                    project.log("Duplicated project name in import. Project "
                        + context.getCurrentProjectName() + " defined first in "
                        + dup + " and again in " + context.getBuildFile(),
                        Project.MSG_WARN);
                }
            }
View Full Code Here

                }
                // Alter the name.
                if (context.getCurrentProjectName() != null) {
                    String newName = context.getCurrentProjectName()
                        + "." + name;
                    project.log("Already defined in main or a previous import, "
                        + "define " + name + " as " + newName,
                                Project.MSG_VERBOSE);
                    name = newName;
                } else {
                    project.log("Already defined in main or a previous import, "
View Full Code Here

                    project.log("Already defined in main or a previous import, "
                        + "define " + name + " as " + newName,
                                Project.MSG_VERBOSE);
                    name = newName;
                } else {
                    project.log("Already defined in main or a previous import, "
                        + "ignore " + name, Project.MSG_VERBOSE);
                    name = null;
                }
            }
View Full Code Here

            String dup = project.getProperty(antFileProp);
            if (dup != null && nameAttributeSet) {
                File dupFile = new File(dup);
                if (context.isIgnoringProjectTag()
                    && !dupFile.equals(context.getBuildFile())) {
                    project.log("Duplicated project name in import. Project "
                        + context.getCurrentProjectName() + " defined first in "
                        + dup + " and again in " + context.getBuildFile(),
                        Project.MSG_WARN);
                }
            }
View Full Code Here

            Hashtable projectTargets = project.getTargets();
            boolean   usedTarget = false;
            // If the name has not already been defined define it
            if (projectTargets.containsKey(name)) {
                project.log("Already defined in main or a previous import, "
                            + "ignore " + name, Project.MSG_VERBOSE);
            } else {
                target.setName(name);
                context.getCurrentTargets().put(name, target);
                project.addOrReplaceTarget(name, target);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.