|
1 |
| -<!-- sb-contrib Ant build script. Dave Brosius --> |
| 1 | +<!-- fb-contrib Ant build script. Dave Brosius --> |
2 | 2 |
|
3 |
| -<project name="sb-contrib" default="default"> |
| 3 | +<project name="fb-contrib" default="default"> |
4 | 4 |
|
5 | 5 | <presetdef name="javac">
|
6 | 6 | <javac encoding="UTF-8" />
|
|
34 | 34 | <property name="fb-contrib.version" value="7.6.5" />
|
35 | 35 | <property name="sb-contrib.version" value="7.6.5" />
|
36 | 36 |
|
37 |
| - <property name="sonatype.dir" value="${user.home}/.sb-contrib-${sb-contrib.version}-sonatype" /> |
| 37 | + <property name="sonatype.dir" value="${user.home}/.fb-contrib-${fb-contrib.version}-sonatype" /> |
38 | 38 |
|
39 | 39 | <target name="clean" description="removes all generated collateral">
|
40 | 40 | <delete dir="${target.dir}" />
|
41 | 41 | <delete file="${htdocs.dir}/bugdescriptions.html" />
|
42 | 42 | </target>
|
43 | 43 |
|
44 |
| - <target name="infra_jars" description="pull jars needed to build sb-contrib to ${user.dir}/.ant/lib"> |
| 44 | + <target name="infra_jars" description="pull jars needed to build fb-contrib to ${user.dir}/.ant/lib"> |
45 | 45 | <mkdir dir="${user.home}/.ant/lib" />
|
46 | 46 | <get src="https://repo1.maven.org/maven2/com/mebigfatguy/yank/yank/2.0.1/yank-2.0.1.jar" dest="${user.home}/.ant/lib"/>
|
47 | 47 | <get src="https://bitbucket.org/kjlubick/bugrankcheckstyle/downloads/bug-rank-check-style-1.0.0.jar" dest="${user.home}/.ant/lib"/>
|
|
59 | 59 | </target>
|
60 | 60 |
|
61 | 61 | <target name="info">
|
62 |
| - <echo message="sb-contrib - a findbugs plugin"/> |
| 62 | + <echo message="fb-contrib - a findbugs plugin"/> |
63 | 63 | <echo message=""/>
|
64 |
| - <echo message=" This project requires three jars to build sb-contrib: yank, bug-rank-check-style, vcsversion and" /> |
| 64 | + <echo message=" This project requires three jars to build fb-contrib: yank, bug-rank-check-style, vcsversion and" /> |
65 | 65 | <echo message=" and optionally fb-delta, to generate delta's of bug reports, as well as stringliterals to dump"/>
|
66 | 66 | <echo message=" a report of all string literals used in the code"/>
|
67 | 67 | <echo message=""/>
|
|
99 | 99 | <mkdir dir="${test.classes.dir}" />
|
100 | 100 | <mkdir dir="${samples.classes.dir}" />
|
101 | 101 | <mkdir dir="${javadoc.dir}" />
|
102 |
| - <path id="sb-contrib.classpath"> |
| 102 | + <path id="fb-contrib.classpath"> |
103 | 103 | <pathelement location="${lib.dir}/findbugs-${findbugs.version}.jar" />
|
104 | 104 | <pathelement location="${lib.dir}/bcel-${bcel.version}.jar" />
|
105 | 105 | <pathelement location="${lib.dir}/findbugs-annotations-${findbugs-annotations.version}.jar" />
|
|
108 | 108 | <pathelement location="${lib.dir}/jsr305-${jsr305.version}.jar" />
|
109 | 109 | <pathelement location="${main.classes.dir}" />
|
110 | 110 | </path>
|
111 |
| - <path id="sb-contrib.test.classpath"> |
| 111 | + <path id="fb-contrib.test.classpath"> |
112 | 112 | <pathelement location="${lib.dir}/testng-${testng.version}.jar" />
|
113 | 113 | <pathelement location="${lib.dir}/jcommander-${jcommander.version}.jar" />
|
114 | 114 | <pathelement location="${lib.dir}/mockito-core-${mockito-core.version}.jar" />
|
|
119 | 119 | <pathelement location="${findbugs.dir}/lib/jaxen-1.1.6.jar" />
|
120 | 120 |
|
121 | 121 | </path>
|
122 |
| - <path id="sb-contrib.samples.classpath"> |
| 122 | + <path id="fb-contrib.samples.classpath"> |
123 | 123 | <pathelement location="${lib.dir}/akka-actor_2.12-${akka-actor_2.12.version}.jar" />
|
124 | 124 | <pathelement location="${lib.dir}/akka-http_2.12-${akka-http_2.12.version}.jar" />
|
125 | 125 | <pathelement location="${lib.dir}/akka-http-core_2.12-${akka-http-core_2.12.version}.jar" />
|
|
172 | 172 |
|
173 | 173 | <target name="compile" depends="-init" description="compiles java files">
|
174 | 174 | <javac srcdir="${src.dir}" destdir="${main.classes.dir}" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" debug="${javac.debug}" includeantruntime="false">
|
175 |
| - <classpath refid="sb-contrib.classpath" /> |
| 175 | + <classpath refid="fb-contrib.classpath" /> |
176 | 176 | </javac>
|
177 | 177 | </target>
|
178 | 178 |
|
179 | 179 | <target name="compile_test" depends="compile" description="compiles java test files">
|
180 | 180 | <javac srcdir="${test.dir}" destdir="${test.classes.dir}" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" debug="${javac.debug}" includeantruntime="false">
|
181 |
| - <classpath refid="sb-contrib.classpath" /> |
182 |
| - <classpath refid="sb-contrib.test.classpath" /> |
| 181 | + <classpath refid="fb-contrib.classpath" /> |
| 182 | + <classpath refid="fb-contrib.test.classpath" /> |
183 | 183 | </javac>
|
184 | 184 | </target>
|
185 | 185 |
|
186 | 186 | <target name="compile_samples" depends="-init" description="compiles sample problem files">
|
187 | 187 | <javac srcdir="${samples.dir}" destdir="${samples.classes.dir}" source="1.8" target="1.8" deprecation="${javac.deprecation}" debug="${javac.debug}" includeantruntime="false">
|
188 | 188 | <compilerarg value="-XDignore.symbol.file"/>
|
189 |
| - <classpath refid="sb-contrib.classpath" /> |
190 |
| - <classpath refid="sb-contrib.samples.classpath" /> |
| 189 | + <classpath refid="fb-contrib.classpath" /> |
| 190 | + <classpath refid="fb-contrib.samples.classpath" /> |
191 | 191 | </javac>
|
192 | 192 | <delete file="${samples.dir}/SJVU_Sample.class" />
|
193 | 193 | <javac srcdir="${samples.dir}" destdir="${samples.classes.dir}" source="1.4" target="1.4" deprecation="${javac.deprecation}" debug="${javac.debug}" includeantruntime="false">
|
194 | 194 | <include name="SJVU_Sample.java" />
|
195 |
| - <classpath refid="sb-contrib.classpath" /> |
196 |
| - <classpath refid="sb-contrib.samples.classpath" /> |
| 195 | + <classpath refid="fb-contrib.classpath" /> |
| 196 | + <classpath refid="fb-contrib.samples.classpath" /> |
197 | 197 | </javac>
|
198 | 198 | </target>
|
199 | 199 |
|
|
203 | 203 |
|
204 | 204 | <testng outputDir="${test_reports.dir}">
|
205 | 205 | <classfileset dir="${test.classes.dir}" includes="**/*.class"/>
|
206 |
| - <classpath refid="sb-contrib.classpath"/> |
207 |
| - <classpath refid="sb-contrib.test.classpath"/> |
| 206 | + <classpath refid="fb-contrib.classpath"/> |
| 207 | + <classpath refid="fb-contrib.test.classpath"/> |
208 | 208 | <classpath location="${test.classes.dir}"/>
|
209 | 209 | </testng>
|
210 | 210 | </target>
|
211 | 211 |
|
212 |
| - <target name="jar" depends="compile" xmlns:vcs="antlib:com.mebigfatguy.vcsversion" description="produces the sb-contrib jar file"> |
| 212 | + <target name="jar" depends="compile" xmlns:vcs="antlib:com.mebigfatguy.vcsversion" description="produces the fb-contrib jar file"> |
213 | 213 | <vcs:vcsversion vcs="git" revisionProperty="_rev_" dateProperty="_date_" branchProperty="_branch_" urlProperty="_url_"/>
|
214 |
| - <jar destfile="${target.dir}/sb-contrib-${sb-contrib.version}.jar"> |
| 214 | + <jar destfile="${target.dir}/fb-contrib-${fb-contrib.version}.jar"> |
215 | 215 | <fileset dir="etc">
|
216 | 216 | <include name="findbugs.xml" />
|
217 | 217 | <include name="messages*.xml" />
|
|
226 | 226 | <include name="license.txt" />
|
227 | 227 | </fileset>
|
228 | 228 | <manifest>
|
229 |
| - <attribute name="sb-contrib-version" value="${sb-contrib.version}" /> |
| 229 | + <attribute name="fb-contrib-version" value="${fb-contrib.version}" /> |
230 | 230 | <attribute name="Main-Class" value="com.mebigfatguy.fbcontrib.FBContrib" />
|
231 | 231 | <attribute name="git-url" value="${_url_}" />
|
232 | 232 | <attribute name="git-branch" value="${_branch_}" />
|
233 | 233 | <attribute name="git-revision" value="${_rev_}" />
|
234 | 234 | <attribute name="git-date" value="${_date_}" />
|
235 | 235 | <attribute name="Eclipse-RegisterBuddy" value="edu.umd.cs.findbugs.plugin.eclipse" />
|
236 | 236 | <attribute name="Bundle-ManifestVersion" value="2" />
|
237 |
| - <attribute name="Bundle-Name" value="sb-contrib plugin" /> |
238 |
| - <attribute name="Bundle-SymbolicName" value="sb-contrib; singleton:=true" /> |
239 |
| - <attribute name="Bundle-Version" value="${sb-contrib.version}" /> |
| 237 | + <attribute name="Bundle-Name" value="fb-contrib plugin" /> |
| 238 | + <attribute name="Bundle-SymbolicName" value="fb-contrib; singleton:=true" /> |
| 239 | + <attribute name="Bundle-Version" value="${fb-contrib.version}" /> |
240 | 240 | <attribute name="Bundle-ClassPath" value="." />
|
241 |
| - <attribute name="Bundle-Vendor" value="SB-Contrib Project" /> |
| 241 | + <attribute name="Bundle-Vendor" value="fb-contrib Project" /> |
242 | 242 | <attribute name="Require-Bundle" value="edu.umd.cs.findbugs.plugin.eclipse" />
|
243 | 243 | <attribute name="Bundle-ActivationPolicy" value="lazy" />
|
244 | 244 | <attribute name="Export-Package" value="com.mebigfatguy.fbcontrib, com.mebigfatguy.fbcontrib.collect, com.mebigfatguy.fbcontrib.detect, com.mebigfatguy.fbcontrib.debug, com.mebigfatguy.fbcontrib.utils" />
|
|
252 | 252 | </target>
|
253 | 253 |
|
254 | 254 | <target name="srczip" description="builds the source distribution zip file">
|
255 |
| - <zip destfile="${target.dir}/sb-contrib-src-${sb-contrib.version}.zip"> |
| 255 | + <zip destfile="${target.dir}/fb-contrib-src-${fb-contrib.version}.zip"> |
256 | 256 | <fileset dir="${basedir}">
|
257 | 257 | <include name="**/*.java" />
|
258 | 258 | <include name="**/*.xml" />
|
|
268 | 268 | </target>
|
269 | 269 |
|
270 | 270 | <target name="javadoc" depends="-init" description="build the javadoc for the project">
|
271 |
| - <javadoc packagenames="com.mebigfatguy.*" sourcepath="${src.dir}" classpathref="sb-contrib.classpath" destdir="${javadoc.dir}" windowtitle="fb-contrib api" access="private" failonerror="true"> |
272 |
| - <doctitle><![CDATA[<h1>sb-contrib javadoc</h1>]]></doctitle> |
| 271 | + <javadoc packagenames="com.mebigfatguy.*" sourcepath="${src.dir}" classpathref="fb-contrib.classpath" destdir="${javadoc.dir}" windowtitle="fb-contrib api" access="private" failonerror="true"> |
| 272 | + <doctitle><![CDATA[<h1>fb-contrib javadoc</h1>]]></doctitle> |
273 | 273 | <bottom><![CDATA[<i>Copyright © 2005-2019 MeBigFatGuy.com. All Rights Reserved.</i>]]></bottom>
|
274 | 274 | </javadoc>
|
275 | 275 | </target>
|
|
281 | 281 | <echo message="findbugs: ${findbugs.dir}/plugin"/>
|
282 | 282 | <copy todir="${findbugs.dir}/plugin">
|
283 | 283 | <fileset dir="${target.dir}">
|
284 |
| - <include name="sb-contrib-${sb-contrib.version}.jar" /> |
| 284 | + <include name="fb-contrib-${fb-contrib.version}.jar" /> |
285 | 285 | </fileset>
|
286 | 286 | </copy>
|
287 | 287 | </target>
|
288 | 288 |
|
289 | 289 | <target name="sample_delta" depends="install" xmlns:fbdelta="antlib:com.mebigfatguy.fbdelta" description="compares this runs reported bugs on the sample classes set, against the stored report">
|
290 | 290 | <taskdef resource="edu/umd/cs/findbugs/anttask/tasks.properties" classpath="${lib.dir}/findbugs-ant-${findbugs-ant.version}.jar"/>
|
291 |
| - <findbugs reportlevel="low" home="${findbugs.dir}" auxClassPathRef="sb-contrib.samples.classpath" output="xml:withMessages" jvmargs="-ea -Xmx800m" projectName="Samples" outputFile="${target.dir}/samples.xml"> |
| 291 | + <findbugs reportlevel="low" home="${findbugs.dir}" auxClassPathRef="fb-contrib.samples.classpath" output="xml:withMessages" jvmargs="-ea -Xmx800m" projectName="Samples" outputFile="${target.dir}/samples.xml"> |
292 | 292 | <class location="${samples.classes.dir}" />
|
293 | 293 | </findbugs>
|
294 | 294 |
|
|
315 | 315 |
|
316 | 316 | <target name="sonatype" depends="release" description="prepare an artifact bundle for sonatype">
|
317 | 317 | <mkdir dir="${sonatype.dir}"/>
|
318 |
| - <copy todir="${sonatype.dir}" file="${target.dir}/sb-contrib-${sb-contrib.version}.jar"/> |
319 |
| - <copy tofile="${sonatype.dir}/sb-contrib-${sb-contrib.version}-sources.jar" file="${target.dir}/sb-contrib-src-${sb-contrib.version}.zip"/> |
320 |
| - <jar destfile="${sonatype.dir}/sb-contrib-${sb-contrib.version}-javadoc.jar" basedir="${target.dir}" includes="javadoc/**"/> |
321 |
| - <copy tofile="${sonatype.dir}/sb-contrib-${sb-contrib.version}.pom" file="${basedir}/pom.xml"/> |
| 318 | + <copy todir="${sonatype.dir}" file="${target.dir}/fb-contrib-${fb-contrib.version}.jar"/> |
| 319 | + <copy tofile="${sonatype.dir}/fb-contrib-${fb-contrib.version}-sources.jar" file="${target.dir}/fb-contrib-src-${fb-contrib.version}.zip"/> |
| 320 | + <jar destfile="${sonatype.dir}/fb-contrib-${fb-contrib.version}-javadoc.jar" basedir="${target.dir}" includes="javadoc/**"/> |
| 321 | + <copy tofile="${sonatype.dir}/fb-contrib-${fb-contrib.version}.pom" file="${basedir}/pom.xml"/> |
322 | 322 |
|
323 | 323 | <exec executable="gpg">
|
324 | 324 | <arg value="-abi" />
|
325 |
| - <arg value="${sonatype.dir}/sb-contrib-${sb-contrib.version}.jar" /> |
| 325 | + <arg value="${sonatype.dir}/fb-contrib-${fb-contrib.version}.jar" /> |
326 | 326 | </exec>
|
327 | 327 | <exec executable="gpg">
|
328 | 328 | <arg value="-abi" />
|
329 |
| - <arg value="${sonatype.dir}/sb-contrib-${sb-contrib.version}.pom" /> |
| 329 | + <arg value="${sonatype.dir}/fb-contrib-${fb-contrib.version}.pom" /> |
330 | 330 | </exec>
|
331 | 331 | <exec executable="gpg">
|
332 | 332 | <arg value="-abi" />
|
333 |
| - <arg value="${sonatype.dir}/sb-contrib-${sb-contrib.version}-sources.jar" /> |
| 333 | + <arg value="${sonatype.dir}/fb-contrib-${fb-contrib.version}-sources.jar" /> |
334 | 334 | </exec>
|
335 | 335 | <exec executable="gpg">
|
336 | 336 | <arg value="-abi" />
|
337 |
| - <arg value="${sonatype.dir}/sb-contrib-${sb-contrib.version}-javadoc.jar" /> |
| 337 | + <arg value="${sonatype.dir}/fb-contrib-${fb-contrib.version}-javadoc.jar" /> |
338 | 338 | </exec>
|
339 |
| - <jar destfile="${sonatype.dir}/bundle.jar" basedir="${sonatype.dir}" includes="sb-contrib*"> |
| 339 | + <jar destfile="${sonatype.dir}/bundle.jar" basedir="${sonatype.dir}" includes="fb-contrib*"> |
340 | 340 | </jar>
|
341 | 341 | <echo message="" />
|
342 | 342 | <echo message="" />
|
|
0 commit comments