[Jpackage-commits] dist/plexus-ant-factory/JPP-6 Makefile, NONE, 1.1 plexus-ant-factory-build.xml, NONE, 1.1 plexus-ant-factory-jpp-depmap.xml, NONE, 1.1 plexus-ant-factory.spec, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Mon Dec 6 23:39:38 CET 2010


Update of /home/projects/jpackage/cvs/dist/plexus-ant-factory/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv2626/JPP-6

Added Files:
	Makefile plexus-ant-factory-build.xml 
	plexus-ant-factory-jpp-depmap.xml plexus-ant-factory.spec 
	sources 
Log Message:
Import plexus-ant-factory into JPP-6

--- NEW FILE: plexus-ant-factory-build.xml ---
<project name="plexus-ant-factory" default="jar" basedir=".">
  <property file="${user.home}/.m2/maven.properties"/>
  <property name="maven.build.output" value="target/classes"/>
  <property name="maven.build.directory" value="target"/>
  <property name="maven.build.final.name" value="plexus-ant-factory-1.0-alpha-1"/>
  <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
  <property name="maven.test.output" value="target/test-classes"/>
  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
  <path id="build.classpath">
    <fileset dir="lib">
      <include name="plexus_container-default.jar"/>
      <include name="classworlds.jar"/>
      <include name="ant.jar"/>
      <include name="plexus_utils.jar"/>
      <include name="ant-launcher.jar"/>
    </fileset>
  </path>
  <target name="clean" description="Clean the output directory">
    <delete dir="${maven.build.directory}"/>
  </target>
  <target name="compile" depends="get-deps" description="Compile the code">
    <mkdir dir="${maven.build.output}"/>
    <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
      <src>
        <pathelement location="src/main/java"/>
      </src>
      <classpath refid="build.classpath"/>
    </javac>
    <copy todir="${maven.build.output}">
      <fileset dir="src/main/resources"/>
    </copy>
  </target>
  <target name="jar" depends="compile,test" description="Clean the JAR">
    <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
  </target>
  <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
    <mkdir dir="${maven.test.output}"/>
  </target>
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases"/>
  <target name="test-junit-present">
    <available classname="junit.framework.Test" property="junit.present"/>
  </target>
  <target name="junit-present" depends="test-junit-present" unless="junit.present">
    <echo>================================= WARNING ================================</echo>
    <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
    <echo>==========================================================================</echo>
  </target>
  <target name="test-offline">
    <condition property="maven.mode.offline">
      <equals arg1="${build.sysclasspath}" arg2="only"/>
    </condition>
  </target>
  <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
    <mkdir dir="${maven.repo.local}"/>
    <mkdir dir="/home/dbhole/DIST/plexus-ant-factory/plexus-ant-factory/org/codehaus/plexus/plexus-container-default/1.0-alpha-9"/>
    <get src="http://snapshots.maven.codehaus.org/maven2//org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/home/dbhole/DIST/plexus-ant-factory/plexus-ant-factory/classworlds/classworlds/1.1-alpha-2"/>
    <get src="http://snapshots.maven.codehaus.org/maven2//classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/home/dbhole/DIST/plexus-ant-factory/plexus-ant-factory/ant/ant/1.6.5"/>
    <get src="http://snapshots.maven.codehaus.org/maven2//ant/ant/1.6.5/ant-1.6.5.jar" dest="${maven.repo.local}/ant/ant/1.6.5/ant-1.6.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/ant/ant/1.6.5/ant-1.6.5.jar" dest="${maven.repo.local}/ant/ant/1.6.5/ant-1.6.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/ant/ant/1.6.5/ant-1.6.5.jar" dest="${maven.repo.local}/ant/ant/1.6.5/ant-1.6.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/home/dbhole/DIST/plexus-ant-factory/plexus-ant-factory/org/codehaus/plexus/plexus-utils/1.0.5"/>
    <get src="http://snapshots.maven.codehaus.org/maven2//org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/home/dbhole/DIST/plexus-ant-factory/plexus-ant-factory/ant/ant-launcher/1.6.5"/>
    <get src="http://snapshots.maven.codehaus.org/maven2//ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar" dest="${maven.repo.local}/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar" dest="${maven.repo.local}/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar" dest="${maven.repo.local}/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar" usetimestamp="true" ignoreerrors="true"/>
  </target>
</project>

--- NEW FILE: sources ---
c344afdd8e8994e3061c3158eaee61bc  plexus-ant-factory-src.tar.gz

--- NEW FILE: plexus-ant-factory.spec ---
# Copyright (c) 2000-2010, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}

%bcond_without          maven

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section     free

%define parent plexus
%define subname ant-factory
%define namedversion 1.0-alpha-2.1

%define maven_settings_file %{_builddir}/%{name}/settings.xml

Name:           %{parent}-%{subname}
Version:        1.0
Release:        0.a2.1.1%{?dist}
Epoch:          0
Summary:        Plexus Ant Factory
License:        ASL 2.0
Group:          Development/Java
URL:            http://plexus.codehaus.org/
Source0:        %{name}-src.tar.gz
# svn export svn://svn.plexus.codehaus.org/plexus/tags/plexus-ant-factory-1.0-alpha-2.1 plexus-ant-factory

Source1:        %{name}-jpp-depmap.xml
Source2:        %{name}-build.xml

%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
%if %with maven
BuildRequires:  maven2 >= 2.0.8
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-common-poms >= 1.0-2
BuildRequires:  maven-release
BuildRequires:  maven-surefire-plugin
%endif

BuildRequires:  ant >= 0:1.7.1
BuildRequires:  classworlds
BuildRequires:  plexus-container-default
BuildRequires:  plexus-utils
Requires:       java >= 0:1.6.0
Requires:       ant >= 0:1.7.1
Requires:       classworlds
Requires:       plexus-container-default
Requires:       plexus-utils
Requires(post): jpackage-utils >= 0:1.7.5
Requires(postun): jpackage-utils >= 0:1.7.5
%if %{gcj_support}
BuildRequires:  java-gcj-compat-devel
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
The Plexus project seeks to create end-to-end developer tools for
writing applications. At the core is the container, which can be
embedded or for a full scale application server. There are many
reusable components for hibernate, form processing, jndi, i18n,
velocity, etc. Plexus also includes an application server which
is like a J2EE application server, without all the baggage.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}

%if %without maven
cp -p %{SOURCE2} build.xml
%endif

%build
%if %with maven
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL

mvn-jpp -e -Dmaven.repo.local=$MAVEN_REPO_LOCAL install javadoc:javadoc
%else
export CLASSPATH=
export OPT_JAR_LIST=:
mkdir -p lib
build-jar-repository -s -p lib ant ant-launcher classworlds  plexus/container-default plexus/utils
ant -Dmaven.mode.offline=true package javadoc
%endif

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/plexus
install -pm 644 target/*.jar $RPM_BUILD_ROOT%{_javadir}/%{parent}/%{subname}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir}/%{parent} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# pom
%add_to_maven_depmap org.codehaus.plexus %{name} 1.0-alpha-2.1 JPP/%{parent} %{subname}

install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}.pom

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif
%update_maven_depmap

%postun
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif
%update_maven_depmap

%files
%defattr(0644,root,root,755)
%dir %{_javadir}/plexus
%{_javadir}/plexus/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*

%if %with maven
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/ant-factory-1.0.jar.*
%endif

%files javadoc
%defattr(0644,root,root,755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%endif

%changelog
* Mon Dec 06 2010 Ralph Apel <r.apel at r-apel.de> 0:1.0-0.a2.1.1
- 1.0-alpha-2.1

* Thu Oct 02 2008 David Walluck <dwalluck at redhat.com> 0:1.0-0.a1.4
- spec cleanup

* Wed Jul 30 2008 David Walluck <dwalluck at redhat.com> 0:1.0-0.a1.3
- build for JPackage 5

* Tue Oct 17 2006 Deepak Bhole <dbhole at redhat.com> 1.0-0.a1.2jpp
- Update for maven2 9jpp.

* Thu Sep 07 2006 Deepak Bhole <dbhole at redhat.com> 1.0-0.a1.1jpp
- Initial build

--- NEW FILE: Makefile ---
# Makefile for source rpm: plexus-ant-factory
# $Id: Makefile,v 1.1 2010/12/06 22:39:36 jpackage Exp $
NAME := plexus-ant-factory
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: plexus-ant-factory-jpp-depmap.xml ---
<dependencies>
	<dependency>
		<maven>
		  <groupId>ant</groupId>
		  <artifactId>ant-launcher</artifactId>
		  <version>1.6.5</version>
		</maven>
		<jpp>
		  <groupId>JPP</groupId>
		  <artifactId>ant-launcher</artifactId>
		  <version>1.6.5</version>
		</jpp>
	</dependency>

	<dependency>
		<maven>
		  <groupId>ant</groupId>
		  <artifactId>ant</artifactId>
		  <version>1.6.5</version>
		</maven>
		<jpp>
		  <groupId>JPP</groupId>
		  <artifactId>ant</artifactId>
		  <version>1.6.5</version>
		</jpp>
	</dependency>

	<dependency>
		<maven>
		  <groupId>org.codehaus.plexus</groupId>
		  <artifactId>plexus-utils</artifactId>
		  <version>1.0.5</version>
		</maven>
		<jpp>
		  <groupId>JPP/plexus</groupId>
		  <artifactId>utils</artifactId>
		  <version>1.0.5</version>
		</jpp>
	</dependency>

	<dependency>
		<maven>
		  <groupId>org.codehaus.plexus</groupId>
		  <artifactId>plexus-container-default</artifactId>
		  <version>1.0-alpha-9</version>
		</maven>
		<jpp>
		  <groupId>JPP/plexus</groupId>
		  <artifactId>container-default</artifactId>
		  <version>1.0-alpha-9</version>
		</jpp>
	</dependency>

 	<dependency>
	  <maven>
		<groupId>org.codehaus.plexus</groupId>
		<artifactId>plexus-component-factories</artifactId>
		<version>1.0-alpha-5</version>
	  </maven>
	  <jpp>
		<groupId>JPP/plexus</groupId>
		<artifactId>component-factories</artifactId>
		<version>1.0-alpha-5</version>
	  </jpp>
	</dependency>

 	<dependency>
	  <maven>
		<groupId>org.codehaus.plexus</groupId>
		<artifactId>plexus-ant-factory</artifactId>
		<version>1.0-alpha-1</version>
	  </maven>
	  <jpp>
		<groupId>JPP/plexus</groupId>
		<artifactId>ant-factory</artifactId>
		<version>1.0-alpha-1</version>
	  </jpp>
	</dependency>

</dependencies>





More information about the JPackage-commits mailing list