APISonar


org.apache.tools.ant.Task.log

> org > apache > tools > ant > Task > log
org APIs apache APIs tools APIs ant APIs Task APIs log APIs

Example 1
private static Task task;

    public static void log(String message)
    {
        task.log(message);
    }
Example 2
private final Task owner;

    private Date parseDate(String date) {
        for (SimpleDateFormat df : c_inputDate) {
            try {
                return df.parse(date);
            } catch (ParseException e) {
                // try next if one fails
            }
        }

        // nothing worked
        owner.log("Failed to parse "+date+"\n", Project.MSG_ERR);
        //final String message = REZ.getString( "changelog.bat-date.error", date );
        //getContext().error( message );
        return null;
    }
Example 3
private transient Task task;

    public void info(String msg) {
        if (task != null) {
            task.log(msg, Project.MSG_INFO);
        }
    }
Example 4
private transient Task task;

    public void warn(String format, Object arg) {
        if (task != null) {
            final FormattingTuple tp = MessageFormatter.format(format, arg);
            task.log(tp.getMessage(), Project.MSG_WARN);
        }
    }