Skip to content

Commit

Permalink
chore: switch sb-contrib to fb-contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
mebigfatguy committed Sep 29, 2024
1 parent 155bc01 commit 742d6cc
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
78 changes: 39 additions & 39 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- sb-contrib Ant build script. Dave Brosius -->
<!-- fb-contrib Ant build script. Dave Brosius -->

<project name="sb-contrib" default="default">
<project name="fb-contrib" default="default">

<presetdef name="javac">
<javac encoding="UTF-8" />
Expand Down Expand Up @@ -34,14 +34,14 @@
<property name="fb-contrib.version" value="7.6.5" />
<property name="sb-contrib.version" value="7.6.5" />

<property name="sonatype.dir" value="${user.home}/.sb-contrib-${sb-contrib.version}-sonatype" />
<property name="sonatype.dir" value="${user.home}/.fb-contrib-${fb-contrib.version}-sonatype" />

<target name="clean" description="removes all generated collateral">
<delete dir="${target.dir}" />
<delete file="${htdocs.dir}/bugdescriptions.html" />
</target>

<target name="infra_jars" description="pull jars needed to build sb-contrib to ${user.dir}/.ant/lib">
<target name="infra_jars" description="pull jars needed to build fb-contrib to ${user.dir}/.ant/lib">
<mkdir dir="${user.home}/.ant/lib" />
<get src="https://repo1.maven.org/maven2/com/mebigfatguy/yank/yank/2.0.1/yank-2.0.1.jar" dest="${user.home}/.ant/lib"/>
<get src="https://bitbucket.org/kjlubick/bugrankcheckstyle/downloads/bug-rank-check-style-1.0.0.jar" dest="${user.home}/.ant/lib"/>
Expand All @@ -59,9 +59,9 @@
</target>

<target name="info">
<echo message="sb-contrib - a findbugs plugin"/>
<echo message="fb-contrib - a findbugs plugin"/>
<echo message=""/>
<echo message=" This project requires three jars to build sb-contrib: yank, bug-rank-check-style, vcsversion and" />
<echo message=" This project requires three jars to build fb-contrib: yank, bug-rank-check-style, vcsversion and" />
<echo message=" and optionally fb-delta, to generate delta's of bug reports, as well as stringliterals to dump"/>
<echo message=" a report of all string literals used in the code"/>
<echo message=""/>
Expand Down Expand Up @@ -99,7 +99,7 @@
<mkdir dir="${test.classes.dir}" />
<mkdir dir="${samples.classes.dir}" />
<mkdir dir="${javadoc.dir}" />
<path id="sb-contrib.classpath">
<path id="fb-contrib.classpath">
<pathelement location="${lib.dir}/findbugs-${findbugs.version}.jar" />
<pathelement location="${lib.dir}/bcel-${bcel.version}.jar" />
<pathelement location="${lib.dir}/findbugs-annotations-${findbugs-annotations.version}.jar" />
Expand All @@ -108,7 +108,7 @@
<pathelement location="${lib.dir}/jsr305-${jsr305.version}.jar" />
<pathelement location="${main.classes.dir}" />
</path>
<path id="sb-contrib.test.classpath">
<path id="fb-contrib.test.classpath">
<pathelement location="${lib.dir}/testng-${testng.version}.jar" />
<pathelement location="${lib.dir}/jcommander-${jcommander.version}.jar" />
<pathelement location="${lib.dir}/mockito-core-${mockito-core.version}.jar" />
Expand All @@ -119,7 +119,7 @@
<pathelement location="${findbugs.dir}/lib/jaxen-1.1.6.jar" />

</path>
<path id="sb-contrib.samples.classpath">
<path id="fb-contrib.samples.classpath">
<pathelement location="${lib.dir}/akka-actor_2.12-${akka-actor_2.12.version}.jar" />
<pathelement location="${lib.dir}/akka-http_2.12-${akka-http_2.12.version}.jar" />
<pathelement location="${lib.dir}/akka-http-core_2.12-${akka-http-core_2.12.version}.jar" />
Expand Down Expand Up @@ -172,28 +172,28 @@

<target name="compile" depends="-init" description="compiles java files">
<javac srcdir="${src.dir}" destdir="${main.classes.dir}" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" debug="${javac.debug}" includeantruntime="false">
<classpath refid="sb-contrib.classpath" />
<classpath refid="fb-contrib.classpath" />
</javac>
</target>

<target name="compile_test" depends="compile" description="compiles java test files">
<javac srcdir="${test.dir}" destdir="${test.classes.dir}" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" debug="${javac.debug}" includeantruntime="false">
<classpath refid="sb-contrib.classpath" />
<classpath refid="sb-contrib.test.classpath" />
<classpath refid="fb-contrib.classpath" />
<classpath refid="fb-contrib.test.classpath" />
</javac>
</target>

<target name="compile_samples" depends="-init" description="compiles sample problem files">
<javac srcdir="${samples.dir}" destdir="${samples.classes.dir}" source="1.8" target="1.8" deprecation="${javac.deprecation}" debug="${javac.debug}" includeantruntime="false">
<compilerarg value="-XDignore.symbol.file"/>
<classpath refid="sb-contrib.classpath" />
<classpath refid="sb-contrib.samples.classpath" />
<classpath refid="fb-contrib.classpath" />
<classpath refid="fb-contrib.samples.classpath" />
</javac>
<delete file="${samples.dir}/SJVU_Sample.class" />
<javac srcdir="${samples.dir}" destdir="${samples.classes.dir}" source="1.4" target="1.4" deprecation="${javac.deprecation}" debug="${javac.debug}" includeantruntime="false">
<include name="SJVU_Sample.java" />
<classpath refid="sb-contrib.classpath" />
<classpath refid="sb-contrib.samples.classpath" />
<classpath refid="fb-contrib.classpath" />
<classpath refid="fb-contrib.samples.classpath" />
</javac>
</target>

Expand All @@ -203,15 +203,15 @@

<testng outputDir="${test_reports.dir}">
<classfileset dir="${test.classes.dir}" includes="**/*.class"/>
<classpath refid="sb-contrib.classpath"/>
<classpath refid="sb-contrib.test.classpath"/>
<classpath refid="fb-contrib.classpath"/>
<classpath refid="fb-contrib.test.classpath"/>
<classpath location="${test.classes.dir}"/>
</testng>
</target>

<target name="jar" depends="compile" xmlns:vcs="antlib:com.mebigfatguy.vcsversion" description="produces the sb-contrib jar file">
<target name="jar" depends="compile" xmlns:vcs="antlib:com.mebigfatguy.vcsversion" description="produces the fb-contrib jar file">
<vcs:vcsversion vcs="git" revisionProperty="_rev_" dateProperty="_date_" branchProperty="_branch_" urlProperty="_url_"/>
<jar destfile="${target.dir}/sb-contrib-${sb-contrib.version}.jar">
<jar destfile="${target.dir}/fb-contrib-${fb-contrib.version}.jar">
<fileset dir="etc">
<include name="findbugs.xml" />
<include name="messages*.xml" />
Expand All @@ -226,19 +226,19 @@
<include name="license.txt" />
</fileset>
<manifest>
<attribute name="sb-contrib-version" value="${sb-contrib.version}" />
<attribute name="fb-contrib-version" value="${fb-contrib.version}" />
<attribute name="Main-Class" value="com.mebigfatguy.fbcontrib.FBContrib" />
<attribute name="git-url" value="${_url_}" />
<attribute name="git-branch" value="${_branch_}" />
<attribute name="git-revision" value="${_rev_}" />
<attribute name="git-date" value="${_date_}" />
<attribute name="Eclipse-RegisterBuddy" value="edu.umd.cs.findbugs.plugin.eclipse" />
<attribute name="Bundle-ManifestVersion" value="2" />
<attribute name="Bundle-Name" value="sb-contrib plugin" />
<attribute name="Bundle-SymbolicName" value="sb-contrib; singleton:=true" />
<attribute name="Bundle-Version" value="${sb-contrib.version}" />
<attribute name="Bundle-Name" value="fb-contrib plugin" />
<attribute name="Bundle-SymbolicName" value="fb-contrib; singleton:=true" />
<attribute name="Bundle-Version" value="${fb-contrib.version}" />
<attribute name="Bundle-ClassPath" value="." />
<attribute name="Bundle-Vendor" value="SB-Contrib Project" />
<attribute name="Bundle-Vendor" value="fb-contrib Project" />
<attribute name="Require-Bundle" value="edu.umd.cs.findbugs.plugin.eclipse" />
<attribute name="Bundle-ActivationPolicy" value="lazy" />
<attribute name="Export-Package" value="com.mebigfatguy.fbcontrib, com.mebigfatguy.fbcontrib.collect, com.mebigfatguy.fbcontrib.detect, com.mebigfatguy.fbcontrib.debug, com.mebigfatguy.fbcontrib.utils" />
Expand All @@ -252,7 +252,7 @@
</target>

<target name="srczip" description="builds the source distribution zip file">
<zip destfile="${target.dir}/sb-contrib-src-${sb-contrib.version}.zip">
<zip destfile="${target.dir}/fb-contrib-src-${fb-contrib.version}.zip">
<fileset dir="${basedir}">
<include name="**/*.java" />
<include name="**/*.xml" />
Expand All @@ -268,8 +268,8 @@
</target>

<target name="javadoc" depends="-init" description="build the javadoc for the project">
<javadoc packagenames="com.mebigfatguy.*" sourcepath="${src.dir}" classpathref="sb-contrib.classpath" destdir="${javadoc.dir}" windowtitle="fb-contrib api" access="private" failonerror="true">
<doctitle><![CDATA[<h1>sb-contrib javadoc</h1>]]></doctitle>
<javadoc packagenames="com.mebigfatguy.*" sourcepath="${src.dir}" classpathref="fb-contrib.classpath" destdir="${javadoc.dir}" windowtitle="fb-contrib api" access="private" failonerror="true">
<doctitle><![CDATA[<h1>fb-contrib javadoc</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright &#169; 2005-2019 MeBigFatGuy.com. All Rights Reserved.</i>]]></bottom>
</javadoc>
</target>
Expand All @@ -281,14 +281,14 @@
<echo message="findbugs: ${findbugs.dir}/plugin"/>
<copy todir="${findbugs.dir}/plugin">
<fileset dir="${target.dir}">
<include name="sb-contrib-${sb-contrib.version}.jar" />
<include name="fb-contrib-${fb-contrib.version}.jar" />
</fileset>
</copy>
</target>

<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">
<taskdef resource="edu/umd/cs/findbugs/anttask/tasks.properties" classpath="${lib.dir}/findbugs-ant-${findbugs-ant.version}.jar"/>
<findbugs reportlevel="low" home="${findbugs.dir}" auxClassPathRef="sb-contrib.samples.classpath" output="xml:withMessages" jvmargs="-ea -Xmx800m" projectName="Samples" outputFile="${target.dir}/samples.xml">
<findbugs reportlevel="low" home="${findbugs.dir}" auxClassPathRef="fb-contrib.samples.classpath" output="xml:withMessages" jvmargs="-ea -Xmx800m" projectName="Samples" outputFile="${target.dir}/samples.xml">
<class location="${samples.classes.dir}" />
</findbugs>

Expand All @@ -315,28 +315,28 @@

<target name="sonatype" depends="release" description="prepare an artifact bundle for sonatype">
<mkdir dir="${sonatype.dir}"/>
<copy todir="${sonatype.dir}" file="${target.dir}/sb-contrib-${sb-contrib.version}.jar"/>
<copy tofile="${sonatype.dir}/sb-contrib-${sb-contrib.version}-sources.jar" file="${target.dir}/sb-contrib-src-${sb-contrib.version}.zip"/>
<jar destfile="${sonatype.dir}/sb-contrib-${sb-contrib.version}-javadoc.jar" basedir="${target.dir}" includes="javadoc/**"/>
<copy tofile="${sonatype.dir}/sb-contrib-${sb-contrib.version}.pom" file="${basedir}/pom.xml"/>
<copy todir="${sonatype.dir}" file="${target.dir}/fb-contrib-${fb-contrib.version}.jar"/>
<copy tofile="${sonatype.dir}/fb-contrib-${fb-contrib.version}-sources.jar" file="${target.dir}/fb-contrib-src-${fb-contrib.version}.zip"/>
<jar destfile="${sonatype.dir}/fb-contrib-${fb-contrib.version}-javadoc.jar" basedir="${target.dir}" includes="javadoc/**"/>
<copy tofile="${sonatype.dir}/fb-contrib-${fb-contrib.version}.pom" file="${basedir}/pom.xml"/>

<exec executable="gpg">
<arg value="-abi" />
<arg value="${sonatype.dir}/sb-contrib-${sb-contrib.version}.jar" />
<arg value="${sonatype.dir}/fb-contrib-${fb-contrib.version}.jar" />
</exec>
<exec executable="gpg">
<arg value="-abi" />
<arg value="${sonatype.dir}/sb-contrib-${sb-contrib.version}.pom" />
<arg value="${sonatype.dir}/fb-contrib-${fb-contrib.version}.pom" />
</exec>
<exec executable="gpg">
<arg value="-abi" />
<arg value="${sonatype.dir}/sb-contrib-${sb-contrib.version}-sources.jar" />
<arg value="${sonatype.dir}/fb-contrib-${fb-contrib.version}-sources.jar" />
</exec>
<exec executable="gpg">
<arg value="-abi" />
<arg value="${sonatype.dir}/sb-contrib-${sb-contrib.version}-javadoc.jar" />
<arg value="${sonatype.dir}/fb-contrib-${fb-contrib.version}-javadoc.jar" />
</exec>
<jar destfile="${sonatype.dir}/bundle.jar" basedir="${sonatype.dir}" includes="sb-contrib*">
<jar destfile="${sonatype.dir}/bundle.jar" basedir="${sonatype.dir}" includes="fb-contrib*">
</jar>
<echo message="" />
<echo message="" />
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>com.mebigfatguy.sb-contrib</groupId>
<artifactId>sb-contrib</artifactId>
<groupId>com.mebigfatguy.fb-contrib</groupId>
<artifactId>fb-contrib</artifactId>
<version>7.6.5</version>

<!-- TODO: Oss parent is obsolete, define items directly for releasing -->
Expand Down Expand Up @@ -410,16 +410,16 @@
<configuration>
<archive>
<manifestEntries>
<sb-contrib-version>${project.version}</sb-contrib-version>
<fb-contrib-version>${project.version}</fb-contrib-version>
<Main-Class>com.mebigfatguy.fbcontrib.FBContrib</Main-Class>
<git-revision>${scmBranch} ${buildNumber} ${maven.build.timestamp}</git-revision>
<Eclipse-RegisterBuddy>edu.umd.cs.findbugs.plugin.eclipse</Eclipse-RegisterBuddy>
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-Name>sb-contrib plugin</Bundle-Name>
<Bundle-SymbolicName>sb-contrib; singleton:=true</Bundle-SymbolicName>
<Bundle-Name>fb-contrib plugin</Bundle-Name>
<Bundle-SymbolicName>fb-contrib; singleton:=true</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-ClassPath>.</Bundle-ClassPath>
<Bundle-Vendor>SB-Contrib Project</Bundle-Vendor>
<Bundle-Vendor>FB-Contrib Project</Bundle-Vendor>
<Require-Bundle>edu.umd.cs.findbugs.plugin.eclipse</Require-Bundle>
<Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
<Export-Package>com.mebigfatguy.fbcontrib.collect, com.mebigfatguy.fbcontrib.detect,
Expand Down Expand Up @@ -597,8 +597,8 @@
<effort>Max</effort>
<plugins>
<plugin>
<groupId>com.mebigfatguy.sb-contrib</groupId>
<artifactId>sb-contrib</artifactId>
<groupId>com.mebigfatguy.fb-contrib</groupId>
<artifactId>fb-contrib</artifactId>
<version>${project.version}</version>
</plugin>
</plugins>
Expand Down

0 comments on commit 742d6cc

Please sign in to comment.