This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to branch master in repository libcommons-modeler-java.
commit 090223123f9cea431a8b0e0584be322917094204 Author: Takashi Okamoto <t...@debian.org> Date: Sun Oct 20 02:55:56 2002 +0000 Initial revision --- build.xml | 260 ++++++++++++++++++++++++++++ debian/changelog | 15 ++ debian/control | 27 +++ debian/copyright | 64 +++++++ debian/dirs | 1 + debian/libcommons-modeler-doc.docs | 1 + debian/libcommons-modeler-java-doc.docs | 1 + debian/libcommons-modeler-java-doc.examples | 1 + debian/libcommons-modeler-java-doc.postinst | 18 ++ debian/libcommons-modeler-java-doc.prerm | 16 ++ debian/libcommons-modeler-java.links | 1 + debian/postinst | 18 ++ debian/prerm | 16 ++ debian/rules | 110 ++++++++++++ 14 files changed, 549 insertions(+) diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..839fa0c --- /dev/null +++ b/build.xml @@ -0,0 +1,260 @@ +<project name="Modeler" default="compile" basedir="."> + + +<!-- + "Modeler" component of the Jakarta Commons Subproject + $Id$ +--> + + +<!-- ========== Initialize Properties ===================================== --> + + + <property file="build.properties"/> <!-- Component local --> + <property file="../build.properties"/> <!-- Commons local --> + <property file="${user.home}/build.properties"/> <!-- User local --> + + +<!-- ========== External Dependencies ===================================== --> + + + <!-- The directories corresponding to your necessary dependencies --> + <property name="jaxp.home" value="/usr/local/jaxp-1.1"/> + <property name="junit.home" value="/usr/local/junit3.7"/> + <property name="commons.home" value="../../jakarta-commons"/> + <property name="sandbox.home" value="../../jakarta-commons-sandbox"/> + <property name="beanutils.home" value="${commons.home}/beanutils"/> + <property name="collections.home" value="${commons.home}/collections"/> + <property name="digester.home" value="${commons.home}/digester"/> + <property name="jmx.home" value="/usr/local/jmx-ri_1.0.1/jmx"/> + <property name="logging.home" value="${commons.home}/logging"/> + +<!-- ========== Derived Values ============================================ --> + + + <!-- The locations of necessary jar files --> + <property name="jaxp.jaxp.jar" value="${jaxp.home}/jaxp.jar"/> + <property name="jaxp.parser.jar" value="${jaxp.home}/crimson.jar"/> + <property name="jaxp.xalan.jar" value="${jaxp.home}/xalan.jar"/> + <property name="jmx.jar" value="${jmx.home}/lib/jmxri.jar"/> + <property name="junit.jar" value="${junit.home}/junit.jar"/> + <property name="commons-beanutils.jar" value="${beanutils.home}/dist/commons-beanutils.jar"/> + <property name="commons-collections.jar" value="${collections.home}/dist/commons-collections.jar"/> + <property name="commons-digester.jar" value="${digester.home}/dist/commons-digester.jar"/> + <property name="commons-logging.jar" value="${logging.home}/dist/commons-logging.jar"/> + + +<!-- ========== Component Declarations ==================================== --> + + + <!-- The name of this component --> + <property name="component.name" value="modeler"/> + + <!-- The title of this component --> + <property name="component.title" value="Model MBeans Support Package"/> + + <!-- The current version number of this component --> + <property name="component.version" value="1.0"/> + + <!-- The base directory for compilation targets --> + <property name="build.home" value="target"/> + + <!-- The base directory for component configuration files --> + <property name="conf.home" value="src/conf"/> + + <!-- The base directory for distribution targets --> + <property name="dist.home" value="dist"/> + + <!-- The base directory for component sources --> + <property name="source.home" value="src/java"/> + + <!-- The base directory for unit test sources --> + <property name="test.home" value="src/test"/> + + +<!-- ========== Compiler Defaults ========================================= --> + + + <!-- Should Java compilations set the 'debug' compiler option? --> + <property name="compile.debug" value="true"/> + + <!-- Should Java compilations set the 'deprecation' compiler option? --> + <property name="compile.deprecation" value="false"/> + + <!-- Should Java compilations set the 'optimize' compiler option? --> + <property name="compile.optimize" value="true"/> + + <!-- Construct compile classpath --> + <path id="compile.classpath"> + <pathelement location="${build.home}/classes"/> + <pathelement location="${jaxp.jaxp.jar}"/> + <pathelement location="${jaxp.parser.jar}"/> + <pathelement location="${jaxp.xalan.jar}"/> + <pathelement location="${commons-beanutils.jar}"/> + <pathelement location="${commons-collections.jar}"/> + <pathelement location="${commons-digester.jar}"/> + <pathelement location="${commons-logging.jar}"/> + <pathelement location="${jmx.jar}"/> + </path> + + +<!-- ========== Test Execution Defaults =================================== --> + + + <!-- Construct unit test classpath --> + <path id="test.classpath"> + <pathelement location="${build.home}/classes"/> + <pathelement location="${build.home}/tests"/> + <pathelement location="${jaxp.jaxp.jar}"/> + <pathelement location="${jaxp.parser.jar}"/> + <pathelement location="${jaxp.xalan.jar}"/> + <pathelement location="${commons-beanutils.jar}"/> + <pathelement location="${commons-collections.jar}"/> + <pathelement location="${commons-digester.jar}"/> + <pathelement location="${commons-logging.jar}"/> + <pathelement location="${jmx.jar}"/> + <pathelement location="${junit.jar}"/> + </path> + + <!-- Should all tests fail if one does? --> + <property name="test.failonerror" value="true"/> + + <!-- The test runner to execute --> + <property name="test.runner" value="junit.textui.TestRunner"/> + + +<!-- ========== Executable Targets ======================================== --> + + + <target name="init" + description="Initialize and evaluate conditionals"> + <echo message="-------- ${component.name} ${component.version} --------"/> + <filter token="name" value="${component.name}"/> + <filter token="version" value="${component.version}"/> + </target> + + + <target name="prepare" depends="init" + description="Prepare build directory"> + <mkdir dir="${build.home}"/> + <mkdir dir="${build.home}/classes"/> + <mkdir dir="${build.home}/conf"/> + <mkdir dir="${build.home}/tests"/> + </target> + + + <target name="static" depends="prepare" + description="Copy static files to build directory"> + <tstamp/> + <copy todir="${build.home}/conf" filtering="on"> + <fileset dir="${conf.home}" includes="*.MF"/> + </copy> + </target> + + + <target name="compile" depends="static" + description="Compile shareable components"> + <javac srcdir="${source.home}" + destdir="${build.home}/classes" + debug="${compile.debug}" + deprecation="${compile.deprecation}" + optimize="${compile.optimize}" + excludes="org/apache/commons/workflow/demo/**"> + <classpath refid="compile.classpath"/> + </javac> + <copy todir="${build.home}/classes" filtering="on"> + <fileset dir="${source.home}" + excludes="**/*.java org/apache/commons/modeler/demo/**"/> + </copy> + </target> + + + <target name="clean" + description="Clean build and distribution directories"> + <delete dir="${build.home}"/> + <delete dir="${dist.home}"/> + </target> + + + <target name="all" depends="clean,compile" + description="Clean and compile all components"/> + + + <target name="javadoc" depends="compile" + description="Create component Javadoc documentation"> + <mkdir dir="${dist.home}"/> + <mkdir dir="${dist.home}/docs"/> + <mkdir dir="${dist.home}/docs/api"/> + <javadoc sourcepath="${source.home}" + destdir="${dist.home}/docs/api" + packagenames="org.apache.commons.*" + author="true" + private="true" + version="true" + doctitle="<h1>${component.title} (Version ${component.version})</h1>" + windowtitle="${component.title} (Version ${component.version})" + bottom="Copyright (c) 2001-2002 - Apache Software Foundation" + classpathref="compile.classpath" /> + </target> + + + <target name="dist" depends="compile,javadoc" + description="Create binary distribution"> + <mkdir dir="${dist.home}"/> + <copy file="RELEASE-NOTES.txt" + todir="${dist.home}"/> + <copy file="src/java/org/apache/commons/modeler/mbeans-descriptors.dtd" + todir="${dist.home}"/> + <mkdir dir="${build.home}/classes/META-INF"/> + <jar jarfile="${dist.home}/commons-${component.name}.jar" + basedir="${build.home}/classes" + manifest="${build.home}/conf/MANIFEST.MF"/> + </target> + + +<!-- ========== Unit Test Targets ========================================= --> + + + <target name="compile.tests" depends="compile" + description="Compile unit test cases"> + <javac srcdir="${test.home}" + destdir="${build.home}/tests" + debug="${compile.debug}" + deprecation="${compile.deprecation}" + optimize="${compile.optimize}"> + <classpath refid="test.classpath"/> + </javac> + <copy todir="${build.home}/tests" filtering="on"> + <fileset dir="${test.home}" excludes="**/*.java"/> + </copy> + </target> + + + <target name="test" depends="compile.tests, + test.Registry" + description="Run all unit test cases"> + </target> + + + <target name="test.Registry"> + <echo message="Running Registry tests ..."/> + <java classname="${test.runner}" fork="yes" + failonerror="${test.failonerror}"> + <arg value="org.apache.commons.modeler.RegistryTestCase"/> + <classpath refid="test.classpath"/> + </java> + </target> + + +<!-- ========== Demonstration Targets ===================================== --> + + + <target name="demo" depends="compile.tests" + description="Run demostration application"> + <java classname="org.apache.commons.modeler.demo.Demo" fork="yes"> + <classpath refid="test.classpath"/> + </java> + </target> + + +</project> diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1516a6b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,15 @@ +commons-modeler (1.0-2) unstable; urgency=low + + * use ant to build jar file (Closes:#162426). + + -- Takashi Okamoto <t...@debian.org> Fri, 27 Sep 2002 19:31:27 +0900 + +commons-modeler (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Takashi Okamoto <t...@debian.org> Sun, 15 Sep 2002 22:21:55 +0900 + +Local variables: +mode: debian-changelog +End: diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c7e22a7 --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: commons-modeler +Section: contrib/libs +Priority: optional +Maintainer: Takashi Okamoto <t...@debian.org> +Build-Depends-Indep: debhelper (>> 3.0.0), libcommons-logging-java, libcommons-digester-java, libmx4j-java +Standards-Version: 3.5.2 + +Package: libcommons-modeler-java +Architecture: all +Depends: libmx4j-java, libcommons-logging-java, libcommons-digester-java +Description: A convenience library to use Java JMX(TM) technology. + Modeler provides the following services to the application developer + who wishes to make their applications manageable via JMX: + * Reads an XML-based description of the Model MBeans to be provided + for a set of managed resources. + * Provides a registry of these descriptions. + * Supplies a base Model MBean implementation class that can be used + for all management activities where the attribute accesses or + operation calls are simply reflected on to the managed object. + +Package: libcommons-modeler-java-doc +Architecture: all +Suggests: libcommons-modeler-java +Description: Document for commons-modeler + This package provide documents and examples for + commons-modeler which is convenience library to use Java JMX(TM) + technology. \ No newline at end of file diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0f0cd4a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,64 @@ +This package was debianized by Takashi Okamoto <t...@debian.org> on +Wed, 11 Sep 2002 21:09:56 +0900. + +It was downloaded from http://jakarta.apache.org/commons/modeler.html. + +Upstream Author(s): Craig R. McClanahan. + +Copyright: +/* + * ==================================================================== + * + * The Apache Software License, Version 1.1 + * + * Copyright (c) 1999-2001 The Apache Software Foundation. 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. The end-user documentation included with the redistribution, if + * any, must include the following acknowlegement: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowlegement may appear in the software itself, + * if and wherever such third-party acknowlegements normally appear. + * + * 4. The names "The Jakarta Project", "Commons", and "Apache Software + * Foundation" must not be used to endorse or promote products derived + * from this software without prior written permission. For written + * permission, please contact apa...@apache.org. + * + * 5. Products derived from this software may not be called "Apache" + * nor may "Apache" appear in their names without prior written + * permission of the Apache Group. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 APACHE SOFTWARE FOUNDATION OR + * ITS 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. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * <http://www.apache.org/>. + * + */ diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..f5cd8f2 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/share/java \ No newline at end of file diff --git a/debian/libcommons-modeler-doc.docs b/debian/libcommons-modeler-doc.docs new file mode 100644 index 0000000..eedd89b --- /dev/null +++ b/debian/libcommons-modeler-doc.docs @@ -0,0 +1 @@ +api diff --git a/debian/libcommons-modeler-java-doc.docs b/debian/libcommons-modeler-java-doc.docs new file mode 100644 index 0000000..eedd89b --- /dev/null +++ b/debian/libcommons-modeler-java-doc.docs @@ -0,0 +1 @@ +api diff --git a/debian/libcommons-modeler-java-doc.examples b/debian/libcommons-modeler-java-doc.examples new file mode 100644 index 0000000..17a036e --- /dev/null +++ b/debian/libcommons-modeler-java-doc.examples @@ -0,0 +1 @@ +src/test diff --git a/debian/libcommons-modeler-java-doc.postinst b/debian/libcommons-modeler-java-doc.postinst new file mode 100644 index 0000000..87f311c --- /dev/null +++ b/debian/libcommons-modeler-java-doc.postinst @@ -0,0 +1,18 @@ +#! /bin/sh +# postinst script for libcommons-modeler-java-doc +# +# see: dh_installdeb(1) + +set -e + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/libcommons-modeler-java-doc -a -d /usr/share/doc/libcommons-modeler-java-doc ]; then + ln -sf ../share/doc/libcommons-modeler-java-doc /usr/doc/libcommons-modeler-java-doc + fi +fi + +#DEBHELPER# + +exit 0 + + diff --git a/debian/libcommons-modeler-java-doc.prerm b/debian/libcommons-modeler-java-doc.prerm new file mode 100644 index 0000000..22ab68f --- /dev/null +++ b/debian/libcommons-modeler-java-doc.prerm @@ -0,0 +1,16 @@ +#! /bin/sh +# prerm script for libcommons-modeler-java-doc +# +# see: dh_installdeb(1) + +set -e + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/libcommons-modeler-java-doc ]; then + rm -f /usr/doc/libcommons-modeler-java-doc +fi + + +#DEBHELPER# + +exit 0 + diff --git a/debian/libcommons-modeler-java.links b/debian/libcommons-modeler-java.links new file mode 100644 index 0000000..14d93e8 --- /dev/null +++ b/debian/libcommons-modeler-java.links @@ -0,0 +1 @@ +usr/share/java/commons-modeler-1.0.jar usr/share/java/commons-modeler.jar diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..9eda854 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,18 @@ +#! /bin/sh +# postinst script for libcommons-modeler-java +# +# see: dh_installdeb(1) + +set -e + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/libcommons-modeler-java -a -d /usr/share/doc/libcommons-modeler-java ]; then + ln -sf ../share/doc/libcommons-modeler-java /usr/doc/libcommons-modeler-java + fi +fi + +#DEBHELPER# + +exit 0 + + diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..d6b124c --- /dev/null +++ b/debian/prerm @@ -0,0 +1,16 @@ +#! /bin/sh +# prerm script for libcommons-modeler-java +# +# see: dh_installdeb(1) + +set -e + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/libcommons-modeler-java ]; then + rm -f /usr/doc/libcommons-modeler-java +fi + +#DEBHELPER# + +exit 0 + + diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..e1ce405 --- /dev/null +++ b/debian/rules @@ -0,0 +1,110 @@ +#!/usr/bin/make -f +# +# You should put mailapi.jar into /usr/local/share/java +# to build this package. You should also put J2SDK1.4.1 into +# /usr/local/j2sdk1.4.1. +# +# +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# used for jar. +LIBRARY=commons-modeler +VERSION=1.0 + +# Directories to look for JAVA_HOME (JDK 1.2+ rquired!) +jdk_dirs:=/usr/lib/j2se/1.3 /usr/lib/j2sdk1.3 +export JAVA_HOME=$(shell for jdir in $(jdk_dirs); do if [ -d "$$jdir" ]; then echo $$jdir; exit 0; fi; done) + +export LANG=C + +export CLASSPATH=/usr/share/java/mx4j.jar:/usr/share/java/commons-digester.jar:/usr/share/java/commons-logging.jar:/usr/share/java/xerces.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:. + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +export LANG=C +PNAME=commons-modeler +JARFILE=${PNAME}-${VERSION}.jar +BUILDFILE=build.xml + +export JAVAC=${JAVA_HOME}/bin/javac +export JAVADOC=${JAVA_HOME}/bin/javadoc +export JAR=${JAVA_HOME}/bin/jar + +# for Kaffe (you shuld add kaffe at Build-Depends) +# remove following comments when you use kaffe +# you should you kaffe when you want to put your package into main +#export JAVA_HOME=/usr/lib/kaffe +#export CLASSPATH=.:/usr/share/kaffe/Klasses.jar:/usr/share/kaffe/rmi.jar +#export JAVAC=/usr/bin/jikes + + + +build: build-stamp +build-stamp: + dh_testdir + + # Edit this line to build + mkdir -p target/classes + ant dist + + touch build-stamp + +clean: + dh_testdir + dh_testroot + ant clean + + # Add here commands to clean up after the build process. + dh_clean + rm build-stamp + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/commons-collections. + install -m 644 dist/commons-modeler.jar $(CURDIR)/debian/lib${PNAME}-java/usr/share/java/${PNAME}-${VERSION}.jar + + dh_movefiles --sourcedir=debian/lib${PNAME}-java + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i +# dh_installdebconf -i + dh_installdocs -i + dh_installexamples -i + dh_installmenu -i +# dh_installlogrotate -i +# dh_installemacsen -i +# dh_installpam -i +# dh_installmime -i +# dh_installinit -i +# dh_installcron -i +# dh_installman -i +# dh_installinfo -i +# dh_undocumented -i + dh_installchangelogs -i + dh_link -i + dh_strip -i + dh_compress -i + dh_fixperms -i +# dh_makeshlibs -i + dh_installdeb -i +# dh_perl -i +# dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libcommons-modeler-java.git _______________________________________________ pkg-java-commits mailing list pkg-java-comm...@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits