|
114 | 114 | </apply> |
115 | 115 | </target> |
116 | 116 |
|
117 | | - <target name="check" depends="resolve"> |
118 | | - <taskdef resource="checkstyletask.properties" |
119 | | - classpathref="analysis.classpath"/> |
120 | | - <checkstyle config="checkstyle.xml"> |
121 | | - <fileset dir="${src.dir}" includes="**/*.java"/> |
122 | | - <classpath path="${build.dir}/classes"/> |
123 | | - </checkstyle> |
124 | | - </target> |
125 | | - |
126 | 117 | <target name="tags" description="Generate a TAGS file for your editor."> |
127 | 118 | <delete file="TAGS"/> |
128 | 119 | <apply executable="etags"> |
|
132 | 123 | </apply> |
133 | 124 | </target> |
134 | 125 |
|
| 126 | + <target name="check" depends="resolve" description="Run Checkstyle."> |
| 127 | + <taskdef resource="checkstyletask.properties" |
| 128 | + classpathref="analysis.classpath"/> |
| 129 | + <checkstyle config="checkstyle.xml"> |
| 130 | + <fileset dir="${src.dir}" includes="**/*.java"/> |
| 131 | + <classpath path="${build.dir}/classes"/> |
| 132 | + </checkstyle> |
| 133 | + </target> |
| 134 | + |
135 | 135 | <target name="findbugs" depends="compile" description="Run FindBugs."> |
136 | 136 | <taskdef classname="edu.umd.cs.findbugs.anttask.FindBugsTask" |
137 | 137 | name="findbugs" classpathref="analysis.classpath"/> |
|
142 | 142 | </findbugs> |
143 | 143 | </target> |
144 | 144 |
|
145 | | - <target name="pmd" depends="resolve"> |
| 145 | + <target name="pmd" depends="resolve" description="Run PMD on the code."> |
146 | 146 | <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" |
147 | 147 | classpathref="analysis.classpath"/> |
148 | 148 | <pmd> |
|
154 | 154 | </pmd> |
155 | 155 | </target> |
156 | 156 |
|
| 157 | + <target name="analyze" depends="check,pmd,findbugs" |
| 158 | + description="Run all static analysis tools."/> |
| 159 | + |
157 | 160 | <!-- Unit testing (JUnit) --> |
158 | 161 |
|
159 | 162 | <target name="test-compile" depends="compile"> |
|
0 commit comments