Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package plexus-compiler for openSUSE:Factory
checked in at 2022-03-12 17:15:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plexus-compiler (Old)
and /work/SRC/openSUSE:Factory/.plexus-compiler.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plexus-compiler"
Sat Mar 12 17:15:29 2022 rev:2 rq:961202 version:2.11.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/plexus-compiler/plexus-compiler.changes
2019-04-03 10:50:27.897916516 +0200
+++
/work/SRC/openSUSE:Factory/.plexus-compiler.new.25692/plexus-compiler.changes
2022-03-12 17:16:12.866356787 +0100
@@ -1,0 +2,9 @@
+Sat Mar 12 09:32:05 UTC 2022 - Fridrich Strba <[email protected]>
+
+- Upgrade to upstream release 2.11.1
+ * needed by the latest maven-compiler-plugin
+- Rewrite the plexus metadata generation in the ant build files
+ * it is now possible to give it an ad-hoc classpath to look for
+ dependencies
+
+-------------------------------------------------------------------
Old:
----
plexus-compiler-2.8.2.tar.gz
New:
----
plexus-compiler-2.11.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ plexus-compiler.spec ++++++
--- /var/tmp/diff_new_pack.numawC/_old 2022-03-12 17:16:13.278357263 +0100
+++ /var/tmp/diff_new_pack.numawC/_new 2022-03-12 17:16:13.286357273 +0100
@@ -1,7 +1,7 @@
#
# spec file for package plexus-compiler
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,12 +17,10 @@
Name: plexus-compiler
-Version: 2.8.2
+Version: 2.11.1
Release: 0
Summary: Compiler call initiators for Plexus
-# extras subpackage has a bit different licensing
-# parts of compiler-api are ASL2.0/MIT
-License: MIT AND Apache-2.0
+License: Apache-2.0 AND MIT
Group: Development/Libraries/Java
URL: https://github.com/codehaus-plexus/plexus-compiler
Source0:
https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz
@@ -34,6 +32,7 @@
BuildRequires: fdupes
BuildRequires: javapackages-local
BuildRequires: plexus-classworlds
+BuildRequires: plexus-containers-component-annotations
BuildRequires: plexus-containers-container-default
BuildRequires: plexus-metadata-generator
BuildRequires: plexus-utils
@@ -47,10 +46,7 @@
%package extras
Summary: Extra compiler support for %{name}
-# ASL 2.0: src/main/java/org/codehaus/plexus/compiler/util/scan/
-# ...codehaus/plexus/compiler/csharp/CSharpCompiler.java
-# ASL 1.1/MIT: ...codehaus/plexus/compiler/jikes/JikesCompiler.java
-License: MIT AND Apache-2.0 AND Apache-1.1
+License: Apache-2.0
Group: Development/Libraries/Java
Requires: mvn(org.codehaus.plexus:plexus-compiler-api) = %{version}
Requires: mvn(org.codehaus.plexus:plexus-utils)
@@ -61,7 +57,7 @@
%package javadoc
Summary: Javadoc for %{name}
-License: MIT AND Apache-2.0 AND Apache-1.1
+License: Apache-1.1 AND Apache-2.0 AND MIT
Group: Documentation/HTML
%description javadoc
@@ -87,15 +83,19 @@
for i in plexus-compiler-api plexus-compiler-manager plexus-compiler-test \
plexus-compilers/plexus-compiler-csharp
plexus-compilers/plexus-compiler-eclipse \
- plexus-compilers/plexus-compiler-jikes
plexus-compilers/plexus-compiler-javac \
- plexus-compilers/plexus-compiler-j2objc; do
+ plexus-compilers/plexus-compiler-javac
plexus-compilers/plexus-compiler-j2objc; do
%pom_remove_parent ${i}
%pom_xpath_inject "pom:project"
"<version>%{version}</version><groupId>org.codehaus.plexus</groupId>" ${i}
done
%build
mkdir -p lib
-build-jar-repository -s lib plexus/utils plexus/classworlds
plexus-containers/plexus-container-default ecj
+build-jar-repository -s lib plexus/utils plexus/classworlds \
+ plexus-containers/plexus-container-default \
+ plexus-containers/plexus-component-annotations \
+ plexus-metadata-generator objectweb-asm/asm \
+ jdom2/jdom2 commons-cli qdox plexus/cli guava/guava xbean/xbean-reflect \
+ ecj
# Tests are skipped because of unavailable plexus-compiler-test artifact
%{ant} \
-Dtest.skip=true \
@@ -106,16 +106,15 @@
install -dm 0755 %{buildroot}%{_javadir}/%{name}
for i in plexus-compiler-api plexus-compiler-manager \
plexus-compilers/plexus-compiler-csharp
plexus-compilers/plexus-compiler-eclipse \
- plexus-compilers/plexus-compiler-jikes
plexus-compilers/plexus-compiler-javac \
- plexus-compilers/plexus-compiler-j2objc; do
+ plexus-compilers/plexus-compiler-javac
plexus-compilers/plexus-compiler-j2objc; do
install -pm 0644 ${i}/target/$(basename ${i})-%{version}.jar
%{buildroot}%{_javadir}/%{name}/$(basename ${i}).jar
done
# poms
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
# These ones belong to the *-extras package
-for i in plexus-compilers/plexus-compiler-csharp
plexus-compilers/plexus-compiler-eclipse \
- plexus-compilers/plexus-compiler-jikes; do
+for i in plexus-compilers/plexus-compiler-csharp \
+ plexus-compilers/plexus-compiler-eclipse; do
bsnm=$(basename ${i})
install -pm 0644 ${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/$bsnm.pom
%add_maven_depmap %{name}/$bsnm.pom %{name}/$bsnm.jar -f extras
@@ -131,8 +130,7 @@
# javadoc
for i in plexus-compiler-api plexus-compiler-manager \
plexus-compilers/plexus-compiler-csharp
plexus-compilers/plexus-compiler-eclipse \
- plexus-compilers/plexus-compiler-jikes
plexus-compilers/plexus-compiler-javac \
- plexus-compilers/plexus-compiler-j2objc; do
+ plexus-compilers/plexus-compiler-javac
plexus-compilers/plexus-compiler-j2objc; do
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/${i}
cp -pr ${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/${i}/
done
++++++ plexus-compiler-2.8.2.tar.gz -> plexus-compiler-2.11.1.tar.gz ++++++
++++ 10812 lines of diff (skipped)
++++++ plexus-compiler-build.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/common.xml new/common.xml
--- old/common.xml 2019-03-11 07:25:10.724166188 +0100
+++ new/common.xml 2022-03-11 10:15:54.541374371 +0100
@@ -3,10 +3,10 @@
<project name="common" basedir=".">
<property file="build.properties"/>
- <property name="project.version" value="2.8.2"/>
+ <property name="project.version" value="2.11.1"/>
<property name="project.groupId" value="org.codehaus.plexus"/>
- <property name="compiler.source" value="1.6"/>
+ <property name="compiler.source" value="1.8"/>
<property name="compiler.target" value="${compiler.source}"/>
</project>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/plexus-compiler-manager/build.xml
new/plexus-compiler-manager/build.xml
--- old/plexus-compiler-manager/build.xml 2019-03-11 09:03:12.220588475
+0100
+++ new/plexus-compiler-manager/build.xml 2022-03-11 10:38:44.826268094
+0100
@@ -81,8 +81,15 @@
depends="compile"
description="Generate Plexus component.xml">
<mkdir dir="${build.outputDir}/META-INF/plexus"/>
- <exec executable="plexus-metadata-generator" failonerror="true">
- <env key="CLASSPATH" value="${build.outputDir}"/>
+ <java classname="org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
+ failonerror="true"
+ fork="true">
+ <!-- jvmarg value="-verbose"/ -->
+ <classpath>
+ <path refid="build.classpath"/>
+ <pathelement location="${build.outputDir}"/>
+ </classpath>
+ <arg value="-X"/>
<arg value="-s"/>
<arg value="${build.srcDir}"/>
<arg value="-c"/>
@@ -91,7 +98,7 @@
<arg value="${build.outputDir}/META-INF/plexus"/>
<arg value="-o"/>
<arg value="${build.outputDir}/META-INF/plexus/components.xml"/>
- </exec>
+ </java>
</target>
<!-- ======================================================================
-->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/plexus-compilers/build.xml
new/plexus-compilers/build.xml
--- old/plexus-compilers/build.xml 2019-03-10 19:21:00.458779121 +0100
+++ new/plexus-compilers/build.xml 2022-03-11 10:12:37.760097115 +0100
@@ -9,7 +9,6 @@
<target name="clean" description="Clean the output directory">
<ant antfile="build.xml" dir="plexus-compiler-csharp" target="clean"/>
<ant antfile="build.xml" dir="plexus-compiler-eclipse" target="clean"/>
- <ant antfile="build.xml" dir="plexus-compiler-jikes" target="clean"/>
<ant antfile="build.xml" dir="plexus-compiler-javac" target="clean"/>
<ant antfile="build.xml" dir="plexus-compiler-j2objc" target="clean"/>
</target>
@@ -21,7 +20,6 @@
<target name="compile" description="Compile the code">
<ant antfile="build.xml" dir="plexus-compiler-csharp" target="compile"/>
<ant antfile="build.xml" dir="plexus-compiler-eclipse" target="compile"/>
- <ant antfile="build.xml" dir="plexus-compiler-jikes" target="compile"/>
<ant antfile="build.xml" dir="plexus-compiler-javac" target="compile"/>
<ant antfile="build.xml" dir="plexus-compiler-j2objc" target="compile"/>
</target>
@@ -33,7 +31,6 @@
<target name="compile-tests" description="Compile the test code">
<ant antfile="build.xml" dir="plexus-compiler-csharp"
target="compile-tests"/>
<ant antfile="build.xml" dir="plexus-compiler-eclipse"
target="compile-tests"/>
- <ant antfile="build.xml" dir="plexus-compiler-jikes"
target="compile-tests"/>
<ant antfile="build.xml" dir="plexus-compiler-javac"
target="compile-tests"/>
<ant antfile="build.xml" dir="plexus-compiler-j2objc"
target="compile-tests"/>
</target>
@@ -45,7 +42,6 @@
<target name="test" description="Run the test cases">
<ant antfile="build.xml" dir="plexus-compiler-csharp" target="test"/>
<ant antfile="build.xml" dir="plexus-compiler-eclipse" target="test"/>
- <ant antfile="build.xml" dir="plexus-compiler-jikes" target="test"/>
<ant antfile="build.xml" dir="plexus-compiler-javac" target="test"/>
<ant antfile="build.xml" dir="plexus-compiler-j2objc" target="test"/>
</target>
@@ -57,7 +53,6 @@
<target name="javadoc" description="Generates the Javadoc of the
application">
<ant antfile="build.xml" dir="plexus-compiler-csharp" target="javadoc"/>
<ant antfile="build.xml" dir="plexus-compiler-eclipse" target="javadoc"/>
- <ant antfile="build.xml" dir="plexus-compiler-jikes" target="javadoc"/>
<ant antfile="build.xml" dir="plexus-compiler-javac" target="javadoc"/>
<ant antfile="build.xml" dir="plexus-compiler-j2objc" target="javadoc"/>
</target>
@@ -69,7 +64,6 @@
<target name="package" description="Package the application">
<ant antfile="build.xml" dir="plexus-compiler-csharp" target="package"/>
<ant antfile="build.xml" dir="plexus-compiler-eclipse" target="package"/>
- <ant antfile="build.xml" dir="plexus-compiler-jikes" target="package"/>
<ant antfile="build.xml" dir="plexus-compiler-javac" target="package"/>
<ant antfile="build.xml" dir="plexus-compiler-j2objc" target="package"/>
</target>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/plexus-compilers/plexus-compiler-csharp/build.xml
new/plexus-compilers/plexus-compiler-csharp/build.xml
--- old/plexus-compilers/plexus-compiler-csharp/build.xml 2019-03-11
09:09:11.674328091 +0100
+++ new/plexus-compilers/plexus-compiler-csharp/build.xml 2022-03-11
10:39:13.522454324 +0100
@@ -85,8 +85,15 @@
depends="compile"
description="Generate Plexus component.xml">
<mkdir dir="${build.outputDir}/META-INF/plexus"/>
- <exec executable="plexus-metadata-generator" failonerror="true">
- <env key="CLASSPATH" value="${build.outputDir}"/>
+ <java classname="org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
+ failonerror="true"
+ fork="true">
+ <!-- jvmarg value="-verbose"/ -->
+ <classpath>
+ <path refid="build.classpath"/>
+ <pathelement location="${build.outputDir}"/>
+ </classpath>
+ <arg value="-X"/>
<arg value="-s"/>
<arg value="${build.srcDir}"/>
<arg value="-c"/>
@@ -95,7 +102,7 @@
<arg value="${build.outputDir}/META-INF/plexus"/>
<arg value="-o"/>
<arg value="${build.outputDir}/META-INF/plexus/components.xml"/>
- </exec>
+ </java>
</target>
<!-- ======================================================================
-->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/plexus-compilers/plexus-compiler-eclipse/build.xml
new/plexus-compilers/plexus-compiler-eclipse/build.xml
--- old/plexus-compilers/plexus-compiler-eclipse/build.xml 2019-03-11
09:09:21.306374731 +0100
+++ new/plexus-compilers/plexus-compiler-eclipse/build.xml 2022-03-11
10:39:07.202413309 +0100
@@ -85,8 +85,15 @@
depends="compile"
description="Generate Plexus component.xml">
<mkdir dir="${build.outputDir}/META-INF/plexus"/>
- <exec executable="plexus-metadata-generator" failonerror="true">
- <env key="CLASSPATH" value="${build.outputDir}"/>
+ <java classname="org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
+ failonerror="true"
+ fork="true">
+ <!-- jvmarg value="-verbose"/ -->
+ <classpath>
+ <path refid="build.classpath"/>
+ <pathelement location="${build.outputDir}"/>
+ </classpath>
+ <arg value="-X"/>
<arg value="-s"/>
<arg value="${build.srcDir}"/>
<arg value="-c"/>
@@ -95,7 +102,7 @@
<arg value="${build.outputDir}/META-INF/plexus"/>
<arg value="-o"/>
<arg value="${build.outputDir}/META-INF/plexus/components.xml"/>
- </exec>
+ </java>
</target>
<!-- ======================================================================
-->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/plexus-compilers/plexus-compiler-j2objc/build.xml
new/plexus-compilers/plexus-compiler-j2objc/build.xml
--- old/plexus-compilers/plexus-compiler-j2objc/build.xml 2019-03-11
09:08:59.106267235 +0100
+++ new/plexus-compilers/plexus-compiler-j2objc/build.xml 2022-03-11
10:39:19.850495389 +0100
@@ -85,8 +85,15 @@
depends="compile"
description="Generate Plexus component.xml">
<mkdir dir="${build.outputDir}/META-INF/plexus"/>
- <exec executable="plexus-metadata-generator" failonerror="true">
- <env key="CLASSPATH" value="${build.outputDir}"/>
+ <java classname="org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
+ failonerror="true"
+ fork="true">
+ <!-- jvmarg value="-verbose"/ -->
+ <classpath>
+ <path refid="build.classpath"/>
+ <pathelement location="${build.outputDir}"/>
+ </classpath>
+ <arg value="-X"/>
<arg value="-s"/>
<arg value="${build.srcDir}"/>
<arg value="-c"/>
@@ -95,7 +102,7 @@
<arg value="${build.outputDir}/META-INF/plexus"/>
<arg value="-o"/>
<arg value="${build.outputDir}/META-INF/plexus/components.xml"/>
- </exec>
+ </java>
</target>
<!-- ======================================================================
-->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/plexus-compilers/plexus-compiler-javac/build.xml
new/plexus-compilers/plexus-compiler-javac/build.xml
--- old/plexus-compilers/plexus-compiler-javac/build.xml 2019-03-11
09:10:00.386563951 +0100
+++ new/plexus-compilers/plexus-compiler-javac/build.xml 2022-03-11
10:38:57.882352822 +0100
@@ -85,8 +85,15 @@
depends="compile"
description="Generate Plexus component.xml">
<mkdir dir="${build.outputDir}/META-INF/plexus"/>
- <exec executable="plexus-metadata-generator" failonerror="true">
- <env key="CLASSPATH" value="${build.outputDir}"/>
+ <java classname="org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
+ failonerror="true"
+ fork="true">
+ <!-- jvmarg value="-verbose"/ -->
+ <classpath>
+ <path refid="build.classpath"/>
+ <pathelement location="${build.outputDir}"/>
+ </classpath>
+ <arg value="-X"/>
<arg value="-s"/>
<arg value="${build.srcDir}"/>
<arg value="-c"/>
@@ -95,7 +102,7 @@
<arg value="${build.outputDir}/META-INF/plexus"/>
<arg value="-o"/>
<arg value="${build.outputDir}/META-INF/plexus/components.xml"/>
- </exec>
+ </java>
</target>
<!-- ======================================================================
-->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/plexus-compilers/plexus-compiler-jikes/build.xml
new/plexus-compilers/plexus-compiler-jikes/build.xml
--- old/plexus-compilers/plexus-compiler-jikes/build.xml 2019-03-11
09:08:50.146223850 +0100
+++ new/plexus-compilers/plexus-compiler-jikes/build.xml 1970-01-01
01:00:00.000000000 +0100
@@ -1,240 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<project name="plexus-compiler-jikes" default="package" basedir=".">
-
- <!-- ======================================================================
-->
- <!-- Build environment properties
-->
- <!-- ======================================================================
-->
-
- <include file="../../common.xml"/>
- <property file="build.properties"/>
-
- <property name="project.artifactId" value="plexus-compiler-jikes"/>
-
- <property name="build.finalName"
value="${project.artifactId}-${project.version}"/>
- <property name="build.dir" value="target"/>
- <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"/>
-
- <!-- ======================================================================
-->
- <!-- Defining classpaths
-->
- <!-- ======================================================================
-->
-
- <path id="build.classpath">
- <pathelement location="../../plexus-compiler-api/target/classes"/>
- <fileset dir="../../lib">
- <!-- plexus-utils-3.0.22 plexus-container-default-1.0-alpha-9-stable-1
- classworlds-1.1-alpha-2 -->
- <include name="**/*.jar"/>
- </fileset>
- </path>
- <path id="build.test.classpath">
- <pathelement location="../../plexus-compiler-api/target/classes"/>
- <pathelement location="../../plexus-compiler-test/target/classes"/>
- <fileset dir="../../lib">
- <!-- plexus-utils-3.0.22 plexus-container-default-1.0-alpha-9-stable-1
- classworlds-1.1-alpha-2
- junit-3.8.2 maven-artifact-test-2.0.10 maven-artifact-2.0
- maven-artifact-manager-2.0 maven-repository-metadata-2.0
- wagon-provider-api-1.0-alpha-5 maven-settings-2.0 maven-model-2.0
-->
- <include name="**/*.jar"/>
- </fileset>
- </path>
-
- <!-- ======================================================================
-->
- <!-- Cleaning up target
-->
- <!-- ======================================================================
-->
-
- <target name="clean" description="Clean the output directory">
- <delete dir="${build.dir}"/>
- </target>
-
- <!-- ======================================================================
-->
- <!-- Compilation target
-->
- <!-- ======================================================================
-->
-
- <target name="compile" description="Compile the code">
- <mkdir dir="${build.outputDir}"/>
- <javac destdir="${build.outputDir}"
- nowarn="false"
- debug="true"
- optimize="false"
- deprecation="true"
- target="${compiler.target}"
- verbose="false"
- fork="false"
- source="${compiler.source}">
- <src>
- <pathelement location="${build.srcDir}"/>
- </src>
- <classpath refid="build.classpath"/>
- </javac>
- </target>
-
- <!-- ======================================================================
-->
- <!-- Target to generate Plexus component.xml
-->
- <!-- ======================================================================
-->
-
- <target name="generate-metadata"
- depends="compile"
- description="Generate Plexus component.xml">
- <mkdir dir="${build.outputDir}/META-INF/plexus"/>
- <exec executable="plexus-metadata-generator" failonerror="true">
- <env key="CLASSPATH" value="${build.outputDir}"/>
- <arg value="-s"/>
- <arg value="${build.srcDir}"/>
- <arg value="-c"/>
- <arg value="${build.outputDir}"/>
- <arg value="-m"/>
- <arg value="${build.outputDir}/META-INF/plexus"/>
- <arg value="-o"/>
- <arg value="${build.outputDir}/META-INF/plexus/components.xml"/>
- </exec>
- </target>
-
- <!-- ======================================================================
-->
- <!-- Test-compilation target
-->
- <!-- ======================================================================
-->
-
- <target name="compile-tests"
- depends="generate-metadata"
- description="Compile the test code"
- unless="test.skip">
- <ant antfile="build.xml" dir="../../plexus-compiler-test"
target="compile"/>
- <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>
- </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="*"
- destdir="${reporting.outputDirectory}/apidocs"
- access="protected"
- verbose="false"
- version="true"
- use="true"
- author="true"
- splitindex="false"
- nodeprecated="false"
- nodeprecatedlist="false"
- notree="false"
- noindex="false"
- nohelp="false"
- nonavbar="false"
- serialwarn="false"
- charset="ISO-8859-1"
- linksource="false"
- breakiterator="false"
- source="${compiler.source}">
- <classpath refid="build.classpath"/>
- </javadoc>
- </target>
-
- <!-- ======================================================================
-->
- <!-- Package target
-->
- <!-- ======================================================================
-->
-
- <target name="package" depends="generate-metadata,test" description="Package
the application">
- <jar jarfile="${build.dir}/${build.finalName}.jar"
- compress="true"
- index="false"
- basedir="${build.outputDir}"
- excludes="**/package.html">
- <manifest>
- <attribute name="JavaPackages-ArtifactId"
value="${project.artifactId}"/>
- <attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
- <attribute name="JavaPackages-Version" value="${project.version}"/>
- </manifest>
- </jar>
- </target>
-
-</project>