The following snippet will find the contents of the ClearCase
label REL1 and output the contents to the file
cclabelreport.xml. It will the use Ant's <style>
task to generate a HTML file:
<project name="test" default="label-report"
xmlns:ca="antlib:net.sourceforge.clearantlib">
<target name="label-report">
<ca:cclabelreport labelselector="REL1@\Projects"
outfile="cclabelreport.xml"
failonerror="true"/>
<style in="cclabelreport.xml"
out="cclabelreport.html"
style="etc/ccdlabelreport.xsl">
</style>
</target>
</project> |