Changeset 7fd59c4 for build.xml


Ignore:
Timestamp:
Dec 21, 2012 8:45:05 PM (8 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
05c5f66
Parents:
6fe1272
Message:

add more excludes to 'sloccount.report' and make the report location configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r6fe1272 r7fd59c4  
    589589        <delete file="syndie-standalone.zip" failonerror="false" quiet="true" />
    590590        <delete failonerror="false" quiet="true">
    591             <fileset dir="." includes="i2pinstall*jar i2p.fba sloccount.sc javadoc.zip i2pinstall*.exe i2pinstall*bz2" />
     591            <fileset dir="." includes="i2pinstall*jar i2p.fba ${sloccount.report.file} javadoc.zip i2pinstall*.exe i2pinstall*bz2" />
    592592        </delete>
    593593        <delete file="i2psnark-standalone.zip" failonerror="false" quiet="true" />
     
    13361336
    13371337    <target name="sloccount.report">
    1338         <echo message="Generating sloccount report" />
     1338        <property name="sloccount.report.file" value="sloccount.sc" />
     1339        <echo message="Generating sloccount report (this will take awhile)" />
    13391340        <exec executable="sloccount" failonerror="true">
    13401341            <arg value="--details"/>
    13411342            <arg value="--wide"/>
    13421343        <arg value="${basedir}"/>
    1343             <redirector output="sloccount.sc">
     1344            <redirector output="${sloccount.report.file}">
    13441345                <outputfilterchain>
    13451346                    <linecontainsregexp negate="true">
    1346                         <regexp pattern="(_MTN|reports|pkg-temp|licenses|i2p\.fba|sloccount\.sc)" />
     1347                        <regexp pattern="(Warning: |lib/launch4j|_MTN|reports|pkg-temp|licenses|i2p\.fba|gmp-|WEB-INF)" />
    13471348                    </linecontainsregexp>
     1349                    <linecontains negate="true">
     1350                            <contains value="${sloccount.report.file}" />
     1351                    </linecontains>
    13481352                </outputfilterchain>
    13491353            </redirector>
    13501354        </exec>
     1355        <echo message="sloccount report saved to the file &quot;${sloccount.report.file}&quot;" />
    13511356    </target>
    13521357
Note: See TracChangeset for help on using the changeset viewer.