You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by suganya subramanian <su...@hotmail.com> on 2005/06/24 00:13:23 UTC
how to add customized classes to ant, customize report generated by junitreport
Hi,
I have a couple of questions
1. How do I add another class file to the ant bundle, so that it can be
deployed as a single
bundle along with the jar files of ant?
2. I have modified the XMLJunitResultFormatter to generate certain extra
information on the
xml file. How do I propagate these changes to the report generated by
junitreport tag?
Which are the class files that I will have to modify for the changes to come
into effect?
Thanks,
Suganya Subramanian
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: how to add customized classes to ant, customize report generated
by junitreport
Posted by Steve Loughran <st...@apache.org>.
suganya subramanian wrote:
> Hi,
>
> I have a couple of questions
>
> 1. How do I add another class file to the ant bundle, so that it can be
> deployed as a single
> bundle along with the jar files of ant?
you dont, you create a new JAR which can go on the classpath of Ant,
containing your new tasks, then people use <taskdef>, <typedef> or
antlib to load your tasks and types.
in theory you could just stick your stuff into ants src/java tree and
have it built in-situ, but you then end up being responsible for the
release of ant you have just made, you may not get IDE integration, etc,
etc,.
>
> 2. I have modified the XMLJunitResultFormatter to generate certain extra
> information on the
> xml file. How do I propagate these changes to the report generated by
> junitreport tag?
> Which are the class files that I will have to modify for the changes to
> come into effect?
not a class file, an XSLT transfrom. Its somewhere in the source, but
you dont even need to modify the jar, just use the styledir attribute of
<junitreport> to point to a directory containing the new style sheets.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org