[commons-beanutils] 01/56: Initial revision

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri May 30 12:01:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository commons-beanutils.

commit 5e3f0b5a6aae79d177d922e86389f34d4eb045cf
Author: Takashi Okamoto <tora at debian.org>
Date:   Sun Oct 20 02:57:38 2002 +0000

    Initial revision
---
 build.xml                                 | 384 ++++++++++++++++++++++++++++++
 debian/changelog                          |  21 ++
 debian/control                            |  22 ++
 debian/copyright                          |  63 +++++
 debian/dirs                               |   1 +
 debian/docs                               |   1 +
 debian/libcommons-beanutils-java-doc.docs |   1 +
 debian/libcommons-beanutils-java.links    |   1 +
 debian/rules                              |  86 +++++++
 9 files changed, 580 insertions(+)

diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..58417a9
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,384 @@
+<project name="Bean Utilities" default="compile" basedir=".">
+
+
+<!--
+        "Bean Utilities" 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 home directory for the Commons collection classes distribution -->
+  <property name="commons-collections.home" value="../collections/dist"/>
+
+  <!-- The home directory for the Commons collection classes distribution -->
+  <property name="commons-logging.home" value="../logging/dist"/>
+
+  <!-- The directory containing your binary distribution of JUnit,
+       version 3.7 or later -->
+  <property name="junit.home"              value="/usr/local/junit3.7"/>
+
+
+<!-- ========== Derived Values ============================================ -->
+
+
+  <!-- The pathname of the collections classes JAR file -->
+  <property name="commons-collections.jar" value="${commons-collections.home}/commons-collections.jar"/>
+
+  <!-- The pathname of the logging classes JAR file -->
+  <property name="commons-logging.jar" value="${commons-logging.home}/commons-logging.jar"/>
+
+  <!-- The pathname of the "junit.jar" JAR file -->
+  <property name="junit.jar"               value="${junit.home}/junit.jar"/>
+
+
+<!-- ========== Component Declarations ==================================== -->
+
+
+  <!-- The name of this component -->
+  <property name="component.name"          value="beanutils"/>
+
+  <!-- The primary package name of this component -->
+  <property name="component.package"       value="org.apache.commons.beanutils"/>
+
+  <!-- The title of this component -->
+  <property name="component.title"         value="Bean Introspection Utilities"/>
+
+  <!-- The current version number of this component -->
+  <property name="component.version"       value="1.3"/>
+
+  <!-- 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="true"/>
+
+  <!-- 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="${commons-collections.jar}"/>
+    <pathelement location="${commons-logging.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="${commons-collections.jar}"/>
+    <pathelement location="${commons-logging.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"/>
+
+  <!-- The Commons Logger LogFactory implementation to use -->
+  <property name="test.factory"
+           value="org.apache.commons.logging.impl.LogFactoryImpl"/>
+
+  <!-- The Commons Logger Log implementation to use (standard factory) -->
+  <property name="test.log"
+           value="org.apache.commons.logging.impl.SimpleLog"/>
+
+  <!-- The Commons Logger SimpleLog level for testing -->
+  <property name="test.level"               value="error"/>
+
+
+<!-- ========== Executable Targets ======================================== -->
+
+
+  <target name="init"
+   description="Initialize and evaluate conditionals">
+    <echo message="-------- ${component.name} ${component.version} --------"/>
+    <filter  token="name"                  value="${component.name}"/>
+    <filter  token="package"               value="${component.package}"/>
+    <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}">
+      <classpath refid="compile.classpath"/>
+    </javac>
+    <copy    todir="${build.home}/classes" filtering="on">
+      <fileset dir="${source.home}" excludes="**/*.java"/>
+    </copy>
+  </target>
+
+
+  <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="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"
+               overview="src/java/overview.html"
+               doctitle="<h1>${component.title} (Version ${component.version})</h1>"
+            windowtitle="${component.title} (Version ${component.version})"
+                 bottom="Copyright (c) 2001-2002 - Apache Software Foundation">
+      <classpath refid="compile.classpath"/>
+    </javadoc>
+  </target>
+
+
+  <target name="dist" depends="compile,javadoc"
+   description="Create binary distribution">
+    <mkdir      dir="${dist.home}"/>
+    <copy      file="RELEASE-NOTES.txt"
+              todir="${dist.home}"/>
+    <antcall target="jar"/>
+  </target>
+
+
+  <target name="jar" depends="compile"
+   description="Create jar">
+    <mkdir      dir="${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>
+
+
+  <target name="install-jar" depends="jar"
+   description="--> Installs jar file in ${lib.repo}">
+    <copy todir="${lib.repo}" filtering="no">
+      <fileset dir="${dist.home}">
+        <include name="commons-${component.name}.jar"/>
+      </fileset>
+    </copy>
+  </target>
+
+
+<!-- ========== Unit Test Targets ========================================= -->
+
+
+  <target name="test"  depends="compile.tests,
+                                test.basic.dynabean,
+                                test.wrap.dynabean,
+                                test.dyna.property,
+                                test.property,
+                                test.dyna.bean,
+                                test.bean,
+                                test.convert,
+                                test.method
+                               "
+   description="Run all unit test cases">
+  </target>
+
+
+  <target name="test.basic.dynabean" depends="compile.tests">
+    <echo message="Running BasicDynaBean tests ..."/>
+    <java classname="${test.runner}" fork="yes"
+        failonerror="${test.failonerror}">
+      <sysproperty key="org.apache.commons.logging.LogFactory"
+                 value="${test.factory}"/>
+      <sysproperty key="org.apache.commons.logging.Log"
+                 value="${test.log}"/>
+      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
+                 value="${test.level}"/>
+      <arg value="org.apache.commons.beanutils.BasicDynaBeanTestCase"/>
+      <classpath refid="test.classpath"/>
+    </java>
+  </target>
+
+  <target name="test.wrap.dynabean" depends="compile.tests">
+    <echo message="Running WrapDynaBean tests ..."/>
+    <java classname="${test.runner}" fork="yes"
+        failonerror="${test.failonerror}">
+      <sysproperty key="org.apache.commons.logging.LogFactory"
+                 value="${test.factory}"/>
+      <sysproperty key="org.apache.commons.logging.Log"
+                 value="${test.log}"/>
+      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
+                 value="${test.level}"/>
+      <arg value="org.apache.commons.beanutils.WrapDynaBeanTestCase"/>
+      <classpath refid="test.classpath"/>
+    </java>
+  </target>
+
+  <target name="test.dyna.property" depends="compile.tests">
+    <echo message="Running DynaBean PropertyUtils tests ..."/>
+    <java classname="${test.runner}" fork="yes"
+        failonerror="${test.failonerror}">
+      <sysproperty key="org.apache.commons.logging.LogFactory"
+                 value="${test.factory}"/>
+      <sysproperty key="org.apache.commons.logging.Log"
+                 value="${test.log}"/>
+      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
+                 value="${test.level}"/>
+      <arg value="org.apache.commons.beanutils.DynaPropertyUtilsTestCase"/>
+      <classpath refid="test.classpath"/>
+    </java>
+  </target>
+
+  <target name="test.property" depends="compile.tests">
+    <echo message="Running PropertyUtils tests ..."/>
+    <java classname="${test.runner}" fork="yes"
+        failonerror="${test.failonerror}">
+      <sysproperty key="org.apache.commons.logging.LogFactory"
+                 value="${test.factory}"/>
+      <sysproperty key="org.apache.commons.logging.Log"
+                 value="${test.log}"/>
+      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
+                 value="${test.level}"/>
+      <arg value="org.apache.commons.beanutils.PropertyUtilsTestCase"/>
+      <classpath refid="test.classpath"/>
+    </java>
+  </target>
+
+  <target name="test.dyna.bean" depends="compile.tests">
+    <echo message="Running DynaBean BeanUtils tests ..."/>
+    <java classname="${test.runner}" fork="yes"
+        failonerror="${test.failonerror}">
+      <sysproperty key="org.apache.commons.logging.LogFactory"
+                 value="${test.factory}"/>
+      <sysproperty key="org.apache.commons.logging.Log"
+                 value="${test.log}"/>
+      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
+                 value="${test.level}"/>
+      <arg value="org.apache.commons.beanutils.DynaBeanUtilsTestCase"/>
+      <classpath refid="test.classpath"/>
+    </java>
+  </target>
+
+ <target name="test.bean" depends="compile.tests">
+    <echo message="Running BeanUtils tests ..."/>
+    <java classname="${test.runner}" fork="yes"
+        failonerror="${test.failonerror}">
+      <sysproperty key="org.apache.commons.logging.LogFactory"
+                 value="${test.factory}"/>
+      <sysproperty key="org.apache.commons.logging.Log"
+                 value="${test.log}"/>
+      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
+                 value="${test.level}"/>
+      <arg value="org.apache.commons.beanutils.BeanUtilsTestCase"/>
+      <classpath refid="test.classpath"/>
+    </java>
+  </target>
+
+ <target name="test.convert" depends="compile.tests">
+    <echo message="Running ConvertUtils tests ..."/>
+    <java classname="${test.runner}" fork="yes"
+        failonerror="${test.failonerror}">
+      <sysproperty key="org.apache.commons.logging.LogFactory"
+                 value="${test.factory}"/>
+      <sysproperty key="org.apache.commons.logging.Log"
+                 value="${test.log}"/>
+      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
+                 value="${test.level}"/>
+      <arg value="org.apache.commons.beanutils.ConvertUtilsTestCase"/>
+      <classpath refid="test.classpath"/>
+    </java>
+  </target>
+
+  <target name="test.method" depends="compile.tests">
+    <echo message="Running MethodUtils tests ..."/>
+    <java classname="${test.runner}" fork="yes"
+        failonerror="${test.failonerror}">
+      <sysproperty key="org.apache.commons.logging.LogFactory"
+                 value="${test.factory}"/>
+      <sysproperty key="org.apache.commons.logging.Log"
+                 value="${test.log}"/>
+      <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
+                 value="${test.level}"/>
+      <arg value="org.apache.commons.beanutils.MethodUtilsTestCase"/>
+      <classpath refid="test.classpath"/>
+    </java>
+  </target>
+
+
+</project>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..467c287
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,21 @@
+commons-beanutils (1.3-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Takashi Okamoto <tora at debian.org>  Fri, 28 Jun 2002 02:19:02 +0900
+
+commons-beanutils (1.2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Takashi Okamoto <tora at debian.org>  Sat, 16 Feb 2002 23:17:39 +0900
+
+commons-beanutils (1.1-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Takashi Okamoto <tora at debian.org>  Mon,  5 Nov 2001 08:57:47 +0900
+
+Local variables:
+mode: debian-changelog
+End:
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..962a342
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,22 @@
+Source: commons-beanutils
+Section: contrib/libs
+Priority: optional
+Maintainer: Takashi Okamoto <tora at debian.org>
+Build-Depends-Indep: debhelper (>> 3.0.0), ant, libcommons-collections-java, libcommons-logging-java
+Standards-Version: 3.5.2
+
+Package: libcommons-beanutils-java
+Architecture: all
+Depends: java-common, libcommons-collections-java, libcommons-logging-java
+Suggests: libcommons-beanutils-java-doc
+Description: utility for manipulating JavaBeans
+ The BeanUtils Component contains a set of Java classes that provide
+ static utility methods useful in manipulating Java classes that conform
+ to the JavaBeans Specification naming patterns for bean properties in a 
+ dynamic fashion. 
+
+Package: libcommons-beanutils-java-doc
+Architecture: all
+Description: Documentation for libcommons-collections-java
+ Documentation for libcommons-collections-java which is utility for 
+ manipulating JavaBeans.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..80fad07
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,63 @@
+This package was debianized by Takashi Okamoto <tora at debian.org> on
+Mon,  5 Nov 2001 08:57:47 +0900.
+
+It was downloaded from http://jakarta.apache.org/commons/
+
+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 apache at 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..13c9f03
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1 @@
+usr/share/java
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..adaa031
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+STATUS.html
diff --git a/debian/libcommons-beanutils-java-doc.docs b/debian/libcommons-beanutils-java-doc.docs
new file mode 100644
index 0000000..81a398b
--- /dev/null
+++ b/debian/libcommons-beanutils-java-doc.docs
@@ -0,0 +1 @@
+dist/docs/api
diff --git a/debian/libcommons-beanutils-java.links b/debian/libcommons-beanutils-java.links
new file mode 100644
index 0000000..5aa2e65
--- /dev/null
+++ b/debian/libcommons-beanutils-java.links
@@ -0,0 +1 @@
+/usr/share/java/commons-beanutils-1.3.jar /usr/share/java/commons-beanutils.jar
diff --git a/debian/rules b/debian/rules
new file mode 100644
index 0000000..6360577
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+export LANG=C
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=3
+
+LIBRARY=commons-beanutils
+VERSION=1.3
+BUILDFILE=build.xml
+
+# Directories to look for JAVA_HOME (JDK 1.2+ rquired!)
+JAVA_HOME=/usr/local/j2sdk1.4.0_01
+
+export ANT=/usr/bin/ant
+export CLASSPATH=/usr/share/java/commons-collections.jar:/usr/share/java/commons-logging.jar:${JAVA_HOME}/lib/tools.jar:.
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	${ANT} -buildfile ${BUILDFILE} dist javadoc
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	# Add here commands to clean up after the build process.
+	${ANT} -buildfile ${BUILDFILE} clean
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	install -m 644 dist/${LIBRARY}.jar $(CURDIR)/debian/lib${LIBRARY}-java/usr/share/java/${LIBRARY}-${VERSION}.jar
+
+	dh_movefiles --sourcedir=debian/lib${LIBRARY}-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/commons-beanutils.git



More information about the pkg-java-commits mailing list