Changeset 4838 in josm


Ignore:
Timestamp:
Jan 21, 2012 5:38:35 PM (17 months ago)
Author:
jttt
Message:

Add findbugs ant target

Location:
trunk
Files:
22 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r4837 r4838  
    224224                    public protected *; 
    225225                } 
    226                  
     226 
    227227                # Disable annoying [proguard] Note: the configuration keeps the entry point '...', but not the descriptor class '...'. This notes should not be a problem as we don't use obfuscation 
    228228                -dontnote 
     
    296296        </as:check-signature> 
    297297    </target> 
     298 
     299    <target name="findbugs" depends="dist"> 
     300        <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="tools/findbugs/findbugs-ant.jar"/> 
     301        <path id="findbugs-classpath"> 
     302            <fileset dir="tools/findbugs/"> 
     303                <include name="*.jar"/> 
     304            </fileset> 
     305        </path> 
     306        <property name="findbugs-classpath" refid="findbugs-classpath"/> 
     307      <findbugs output="xml" 
     308                outputFile="findbugs-josm.xml" 
     309                classpath="${findbugs-classpath}" 
     310                pluginList="" 
     311                excludeFilter="tools/findbugs/josm-filter.xml" 
     312                effort="max" 
     313                > 
     314        <sourcePath path="${basedir}/src" /> 
     315        <class location="${basedir}/dist/josm-custom.jar" /> 
     316      </findbugs> 
     317    </target> 
     318 
    298319</project> 
Note: See TracChangeset for help on using the changeset viewer.