thanks Dominique. I think I have to go your suggested route instead. The previous suggestion by Jan was really good, but turned out I would have to worry too much about cloning the project properties and alot of other stuff. I did especially like the debug you added too!!!! fits in right with what I want.
thanks,
dean


Dominique Devienne wrote:

A little hackish, but this works...

Redirects the INFO output to VERBOSE. --DD

/** Silent version of <unzip>. */
private static class SilentExpand extends Expand {
public void log(String msg) { super.log(msg, Project.MSG_VERBOSE); }
public void log(String msg, int level) { super.log(msg, (level==Project.MSG_INFO? Project.MSG_VERBOSE: level));
}
} // END class DspModuleInstall.SilentExpand




-----Original Message-----
From: Dean Hiller [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 8:27 AM
To: [EMAIL PROTECTED]
Subject: how to programatically temporarily turn off logging

I have a task that uses the move tasks.  How do I turn off logging from
the Move task?

I typically will only let the move task log when the user selects
verbose or debug or something. Otherwise, there is just too much
logging coming out of my new ant task.
thanks,
dean



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




Reply via email to