Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package plexus-velocity for openSUSE:Factory
checked in at 2022-03-29 21:06:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plexus-velocity (Old)
and /work/SRC/openSUSE:Factory/.plexus-velocity.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plexus-velocity"
Tue Mar 29 21:06:59 2022 rev:4 rq:965692 version:1.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/plexus-velocity/plexus-velocity.changes
2022-03-22 19:41:22.771164136 +0100
+++
/work/SRC/openSUSE:Factory/.plexus-velocity.new.1900/plexus-velocity.changes
2022-03-29 21:07:15.253129976 +0200
@@ -1,0 +2,6 @@
+Tue Mar 29 14:22:10 UTC 2022 - Fridrich Strba <[email protected]>
+
+- Simplify the build file and remove tests which depend on
+ apache-commons-lang
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ plexus-velocity.spec ++++++
--- /var/tmp/diff_new_pack.6xISLw/_old 2022-03-29 21:07:15.813130462 +0200
+++ /var/tmp/diff_new_pack.6xISLw/_new 2022-03-29 21:07:15.821130469 +0200
@@ -16,7 +16,6 @@
#
-%bcond_with tests
Name: plexus-velocity
Version: 1.2
Release: 0
@@ -38,14 +37,6 @@
Requires: mvn(org.codehaus.plexus:plexus-container-default)
Requires: mvn(velocity:velocity)
BuildArch: noarch
-%if %{with tests}
-BuildRequires: ant-junit
-BuildRequires: apache-commons-lang
-BuildRequires: guava
-BuildRequires: plexus-classworlds
-BuildRequires: plexus-utils
-BuildRequires: xbean
-%endif
%description
This package provides Plexus Velocity component - a wrapper for
@@ -72,16 +63,9 @@
mkdir -p lib
build-jar-repository -s lib commons-collections
plexus-containers/plexus-container-default velocity
-%if %{with tests}
-build-jar-repository -s lib commons-lang guava/guava plexus/classworlds
plexus/utils xbean/xbean-reflect
-%endif
%build
-ant \
-%if %{without tests}
- -Dtest.skip=true \
-%endif
- jar javadoc
+ant jar javadoc
%install
# jar
++++++ plexus-velocity-build.xml ++++++
--- /var/tmp/diff_new_pack.6xISLw/_old 2022-03-29 21:07:15.877130518 +0200
+++ /var/tmp/diff_new_pack.6xISLw/_new 2022-03-29 21:07:15.881130521 +0200
@@ -20,10 +20,7 @@
<property name="build.outputDir" value="${build.dir}/classes"/>
<property name="build.srcDir" value="src/main/java"/>
<property name="build.resourceDir" value="src/main/resources"/>
- <property name="build.testOutputDir" value="${build.dir}/test-classes"/>
- <property name="build.testDir" value="src/test/java"/>
- <property name="build.testResourceDir" value="src/test/resources"/>
- <property name="test.reports" value="${build.dir}/test-reports"/>
+
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ======================================================================
-->
@@ -82,104 +79,6 @@
</copy>
</target>
- <!-- ======================================================================
-->
- <!-- Test-compilation target
-->
- <!-- ======================================================================
-->
-
- <target name="compile-tests"
- depends="compile"
- description="Compile the test code"
- unless="test.skip">
- <mkdir dir="${build.testOutputDir}"/>
- <javac destdir="${build.testOutputDir}"
- nowarn="false"
- debug="true"
- optimize="false"
- deprecation="true"
- target="${compiler.target}"
- verbose="false"
- fork="false"
- source="${compiler.source}">
- <src>
- <pathelement location="${build.testDir}"/>
- </src>
- <classpath>
- <path refid="build.test.classpath"/>
- <pathelement location="${build.outputDir}"/>
- </classpath>
- </javac>
- <copy todir="${build.testOutputDir}">
- <fileset dir="${build.testResourceDir}"/>
- </copy>
- </target>
-
- <!-- ======================================================================
-->
- <!-- Run all tests
-->
- <!-- ======================================================================
-->
-
- <target name="test"
- depends="compile-tests, junit-missing"
- unless="junit.skipped"
- description="Run the test cases">
- <mkdir dir="${test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true"
fork="true" dir=".">
- <sysproperty key="basedir" value="."/>
- <formatter type="xml"/>
- <formatter type="plain" usefile="false"/>
- <classpath>
- <path refid="build.test.classpath"/>
- <pathelement location="${build.outputDir}"/>
- <pathelement location="${build.testOutputDir}"/>
- </classpath>
- <batchtest todir="${test.reports}" unless="test">
- <fileset dir="${build.testDir}">
- <include name="**/Test*.java"/>
- <include name="**/*Test.java"/>
- <include name="**/*TestCase.java"/>
- <exclude name="**/*Abstract*Test.java"/>
- </fileset>
- </batchtest>
- <batchtest todir="${test.reports}" if="test">
- <fileset dir="${build.testDir}">
- <include name="**/${test}.java"/>
- <exclude name="**/*Abstract*Test.java"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="test-junit-present">
- <available classname="junit.framework.Test" property="junit.present"
classpathref="build.test.classpath"/>
- </target>
-
- <target name="test-junit-status"
- depends="test-junit-present">
- <condition property="junit.missing">
- <and>
- <isfalse value="${junit.present}"/>
- <isfalse value="${test.skip}"/>
- </and>
- </condition>
- <condition property="junit.skipped">
- <or>
- <isfalse value="${junit.present}"/>
- <istrue value="${test.skip}"/>
- </or>
- </condition>
- </target>
-
- <target name="junit-missing"
- depends="test-junit-status"
- if="junit.missing">
- <echo>=================================== WARNING
===================================</echo>
- <echo> JUnit is not present in the test classpath or your $ANT_HOME/lib
directory. Tests not executed.</echo>
-
<echo>===============================================================================</echo>
- </target>
-
- <!-- ======================================================================
-->
- <!-- Javadoc target
-->
- <!-- ======================================================================
-->
-
<target name="javadoc" description="Generates the Javadoc of the
application">
<javadoc sourcepath="${build.srcDir}"
packagenames="*"
@@ -207,7 +106,7 @@
<!-- Package target
-->
<!-- ======================================================================
-->
- <target name="package" depends="compile,test" description="Package the
application">
+ <target name="package" depends="compile" description="Package the
application">
<jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true"
index="false"