Bug 36667 - Allow specification of a different logger for subtasks
Summary: Allow specification of a different logger for subtasks
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: unspecified
Hardware: All other
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2005-09-15 13:30 UTC by Ondrej Svetlik
Modified: 2011-07-25 03:23 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Svetlik 2005-09-15 13:30:58 UTC
Allow something like this:

<ant target="sometarget" logger="org.apache.tools.ant.XmlLogger"
logfile="mylog.xml" />

I need to perform a build and store the build log with the resulting jar, but
only when some conditions are met. It could look like this:
    <available file="/results/result.jar" />
    <ant target="buildjar" logger="org.apache.tools.ant.XmlLogger"
logfile="mylog.xml" />
    <copy from="mylog.xml" to="/results/result.xml" />

I hope it is obvious what do I mean.
Comment 1 Jose Alberto Fernandez 2005-09-15 14:45:29 UTC
Have you look at <record/> ?
Comment 2 Ondrej Svetlik 2005-09-15 15:36:40 UTC
Well, now I have and there is something that makes me sad:



There is some functionality that I would like to be able to add in the future.
They include things like the following:

listener  	A classname of a build listener to use from this point on instead of
the default listener.
Comment 3 Jeffrey E. Care 2005-09-15 15:41:22 UTC
Don't be sad, get involved! You can always submit a patch if you want to see
this functionality get added sooner.