Fridrich Strba 2024-09-29 13:06:46 +00:00 committed by Git OBS Bridge
parent 4cd9dc3f0e
commit 5992f65c68
2 changed files with 18 additions and 36 deletions

View File

@ -10,10 +10,9 @@
<property name="project.groupId" value="org.codehaus.plexus"/> <property name="project.groupId" value="org.codehaus.plexus"/>
<property name="project.artifactId" value="plexus-velocity"/> <property name="project.artifactId" value="plexus-velocity"/>
<property name="project.version" value="2.1.0"/> <property name="project.version" value="1.2"/>
<property name="compiler.release" value="8"/> <property name="compiler.source" value="1.8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/> <property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" value="${project.artifactId}-${project.version}"/> <property name="build.finalName" value="${project.artifactId}-${project.version}"/>
@ -30,12 +29,18 @@
<path id="build.classpath"> <path id="build.classpath">
<fileset dir="lib"> <fileset dir="lib">
<!-- plexus-container-default-1.0-alpha-9-stable-1
commons-collections-3.1 velocity-1.7 -->
<include name="**/*.jar"> <include name="**/*.jar">
</include> </include>
</fileset> </fileset>
</path> </path>
<path id="build.test.classpath"> <path id="build.test.classpath">
<fileset dir="lib"> <fileset dir="lib">
<!-- plexus-container-default-1.0-alpha-9-stable-1
commons-collections-3.1 velocity-1.7
plexus-utils-3.0.22 classworlds-1.1-alpha-2
guava-20.0 xbean-reflect-4.5 commons-lang-2.4 -->
<include name="**/*.jar"> <include name="**/*.jar">
</include> </include>
</fileset> </fileset>
@ -60,7 +65,6 @@
debug="true" debug="true"
optimize="false" optimize="false"
deprecation="true" deprecation="true"
release="${compiler.release}"
target="${compiler.target}" target="${compiler.target}"
verbose="false" verbose="false"
fork="false" fork="false"
@ -70,34 +74,11 @@
</src> </src>
<classpath refid="build.classpath"/> <classpath refid="build.classpath"/>
</javac> </javac>
<copy todir="${build.outputDir}">
<fileset dir="${build.resourceDir}"/>
</copy>
</target> </target>
<!-- ====================================================================== -->
<!-- Sisu javax.inject.Named generation target -->
<!-- ====================================================================== -->
<target name="sisu"
depends="compile"
description="Generate javax.inject.Name index">
<sequential>
<java classname="org.eclipse.sisu.space.SisuIndex"
failonerror="true"
fork="true">
<classpath>
<path refid="build.classpath"/>
</classpath>
<arg value="${build.outputDir}"/>
</java>
<move todir="${build.outputDir}/META-INF">
<fileset dir="META-INF"/>
</move>
</sequential>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application"> <target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${build.srcDir}" <javadoc sourcepath="${build.srcDir}"
packagenames="*" packagenames="*"
@ -125,7 +106,7 @@
<!-- Package target --> <!-- Package target -->
<!-- ====================================================================== --> <!-- ====================================================================== -->
<target name="package" depends="sisu" description="Package the application"> <target name="package" depends="compile" description="Package the application">
<jar jarfile="${build.dir}/${build.finalName}.jar" <jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true" compress="true"
index="false" index="false"

View File

@ -17,7 +17,7 @@
Name: plexus-velocity Name: plexus-velocity
Version: 2.1.0 Version: 1.2
Release: 0 Release: 0
Summary: Plexus Velocity Component Summary: Plexus Velocity Component
License: Apache-2.0 License: Apache-2.0
@ -28,12 +28,11 @@ Source1: %{name}-build.xml
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: ant BuildRequires: ant
BuildRequires: apache-commons-collections BuildRequires: apache-commons-collections
BuildRequires: atinject
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local >= 6 BuildRequires: javapackages-local >= 6
BuildRequires: sisu-inject BuildRequires: sisu-plexus
BuildRequires: velocity-engine-core BuildRequires: velocity
BuildArch: noarch BuildArch: noarch
%description %description
@ -56,8 +55,10 @@ find -name '*.jar' -delete
cp -p %{SOURCE1} build.xml cp -p %{SOURCE1} build.xml
cp -p %{SOURCE2} LICENSE cp -p %{SOURCE2} LICENSE
%pom_change_dep :plexus-container-default org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0.M2
mkdir -p lib mkdir -p lib
build-jar-repository -s lib atinject commons-collections org.eclipse.sisu.inject velocity-engine/velocity-engine-core build-jar-repository -s lib commons-collections org.eclipse.sisu.plexus velocity
%build %build
ant jar javadoc ant jar javadoc