forked from I2P_Developers/i2p.i2p
add more excludes to 'sloccount.report' and make the report location configurable
This commit is contained in:
@ -19,6 +19,9 @@ junitdocs.url=http://junit.org/apidocs/
|
|||||||
# This will go in the jar manifests
|
# This will go in the jar manifests
|
||||||
build.built-by=unknown
|
build.built-by=unknown
|
||||||
|
|
||||||
|
# filename of the sloccount report
|
||||||
|
sloccount.report.file=sloccount.sc
|
||||||
|
|
||||||
# Building EXEs in x64 Linux requires that 32bit libraries are installed. In Debian,
|
# Building EXEs in x64 Linux requires that 32bit libraries are installed. In Debian,
|
||||||
# for example, installing the libc6-i386 package will satisfy this requirement.
|
# for example, installing the libc6-i386 package will satisfy this requirement.
|
||||||
|
|
||||||
|
13
build.xml
13
build.xml
@ -588,7 +588,7 @@
|
|||||||
<delete file="installer/lib/izpack/patches.jar" failonerror="false" quiet="true" />
|
<delete file="installer/lib/izpack/patches.jar" failonerror="false" quiet="true" />
|
||||||
<delete file="syndie-standalone.zip" failonerror="false" quiet="true" />
|
<delete file="syndie-standalone.zip" failonerror="false" quiet="true" />
|
||||||
<delete failonerror="false" quiet="true">
|
<delete failonerror="false" quiet="true">
|
||||||
<fileset dir="." includes="i2pinstall*jar i2p.fba sloccount.sc javadoc.zip i2pinstall*.exe i2pinstall*bz2" />
|
<fileset dir="." includes="i2pinstall*jar i2p.fba ${sloccount.report.file} javadoc.zip i2pinstall*.exe i2pinstall*bz2" />
|
||||||
</delete>
|
</delete>
|
||||||
<delete file="i2psnark-standalone.zip" failonerror="false" quiet="true" />
|
<delete file="i2psnark-standalone.zip" failonerror="false" quiet="true" />
|
||||||
<delete file="BOB-one.jar" failonerror="false" quiet="true" />
|
<delete file="BOB-one.jar" failonerror="false" quiet="true" />
|
||||||
@ -1335,19 +1335,24 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="sloccount.report">
|
<target name="sloccount.report">
|
||||||
<echo message="Generating sloccount report" />
|
<property name="sloccount.report.file" value="sloccount.sc" />
|
||||||
|
<echo message="Generating sloccount report (this will take awhile)" />
|
||||||
<exec executable="sloccount" failonerror="true">
|
<exec executable="sloccount" failonerror="true">
|
||||||
<arg value="--details"/>
|
<arg value="--details"/>
|
||||||
<arg value="--wide"/>
|
<arg value="--wide"/>
|
||||||
<arg value="${basedir}"/>
|
<arg value="${basedir}"/>
|
||||||
<redirector output="sloccount.sc">
|
<redirector output="${sloccount.report.file}">
|
||||||
<outputfilterchain>
|
<outputfilterchain>
|
||||||
<linecontainsregexp negate="true">
|
<linecontainsregexp negate="true">
|
||||||
<regexp pattern="(_MTN|reports|pkg-temp|licenses|i2p\.fba|sloccount\.sc)" />
|
<regexp pattern="(Warning: |lib/launch4j|_MTN|reports|pkg-temp|licenses|i2p\.fba|gmp-|WEB-INF)" />
|
||||||
</linecontainsregexp>
|
</linecontainsregexp>
|
||||||
|
<linecontains negate="true">
|
||||||
|
<contains value="${sloccount.report.file}" />
|
||||||
|
</linecontains>
|
||||||
</outputfilterchain>
|
</outputfilterchain>
|
||||||
</redirector>
|
</redirector>
|
||||||
</exec>
|
</exec>
|
||||||
|
<echo message="sloccount report saved to the file "${sloccount.report.file}"" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="findbugs" depends="build2">
|
<target name="findbugs" depends="build2">
|
||||||
|
Reference in New Issue
Block a user