add sloccount.report target (mostly useful for those that run jenkins)
This commit is contained in:
19
build.xml
19
build.xml
@ -188,6 +188,7 @@
|
|||||||
<target name="clean" description="clean up">
|
<target name="clean" description="clean up">
|
||||||
<delete dir="${build.dir}" />
|
<delete dir="${build.dir}" />
|
||||||
<delete dir="${dist.dir}" />
|
<delete dir="${dist.dir}" />
|
||||||
|
<delete file="sloccount.sc" />
|
||||||
<delete file="syndie.jar" />
|
<delete file="syndie.jar" />
|
||||||
<delete dir="plugin" />
|
<delete dir="plugin" />
|
||||||
<delete file="syndie.xpi2p" />
|
<delete file="syndie.xpi2p" />
|
||||||
@ -235,5 +236,23 @@
|
|||||||
<property name="release.number" value="unknown" />
|
<property name="release.number" value="unknown" />
|
||||||
<echo message="Release number is ${release.number}" />
|
<echo message="Release number is ${release.number}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="sloccount.report">
|
||||||
|
<echo message="Generating sloccount report (this will take awhile)" />
|
||||||
|
<exec executable="sloccount" failonerror="true">
|
||||||
|
<arg value="--details"/>
|
||||||
|
<arg value="--wide"/>
|
||||||
|
<arg value="${basedir}"/>
|
||||||
|
<redirector output="sloccount.sc">
|
||||||
|
<outputfilterchain>
|
||||||
|
<linecontainsregexp negate="true">
|
||||||
|
<regexp pattern="(WARNING|Warning:|sloccount\.sc)" />
|
||||||
|
</linecontainsregexp>
|
||||||
|
</outputfilterchain>
|
||||||
|
</redirector>
|
||||||
|
</exec>
|
||||||
|
<echo message="sloccount report saved to the file sloccount.sc" />
|
||||||
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
<!-- vim: set ft=xml ts=4 sw=4 et: -->
|
<!-- vim: set ft=xml ts=4 sw=4 et: -->
|
||||||
|
Reference in New Issue
Block a user