debian/0000755000000000000000000000000012231755507007175 5ustar debian/orig-tar.exclude0000644000000000000000000000003012231232453012253 0ustar */doc/api/* *.jar *.pdf debian/maven.ignoreRules0000644000000000000000000000215112231232453012510 0ustar # Maven ignore rules - ignore some Maven dependencies and plugins # Format of this file is: # [group] [artifact] [type] [version] # where each element can be either # - the exact string, for example org.apache for the group, or 3.1 # for the version. In this case, the element is simply matched # and left as it is # - * (the star character, alone). In this case, anything will # match and be left as it is. For example, using * on the # position of the artifact field will match any artifact id # All elements much match before a rule can be applied # Example rule: match jar with groupid= junit, artifactid= junit # and version starting with 3., this dependency is then removed # from the POM # junit junit jar s/3\..*/3.x/ org.apache.maven.wagon wagon-webdav jar * org.jboss.maven.plugins maven-jdocbook-plugin maven-plugin * org.jboss.maven.plugins maven-jdocbook-style-plugin maven-plugin * org.codehaus.mojo jaxb2-maven-plugin maven-plugin * org.apache.maven.plugins maven-source-plugin maven-plugin * org.twdata.maven maven-cli-plugin maven-plugin * org.apache.maven.plugins maven-assembly-plugin maven-plugin * debian/compat0000644000000000000000000000000212231232453010361 0ustar 5 debian/orig-tar.sh0000755000000000000000000000105512231232453011247 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' SOURCE=$(dpkg-parsechangelog | sed -ne 's,Source: \(.*\),\1,p') TAR=../${SOURCE}_$2.orig.tar.gz DIR=$SOURCE-$2 TAG=$(echo v$2 | sed -e 's,\.,_,g') SVN=http://anonsvn.jboss.org/repos/hibernate/validator/tags svn export $SVN/$TAG $DIR # clean up the upstream tarball GZIP=--best tar -c -z -f $TAR -X debian/orig-tar.exclude $DIR rm -rf $3 $DIR # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi debian/source/0000755000000000000000000000000012231232453010463 5ustar debian/source/format0000644000000000000000000000001412231232453011671 0ustar 3.0 (quilt) debian/maven.properties0000644000000000000000000000011012231232453012377 0ustar # test code does not build due to missing jaxb-xjc maven.test.skip=true debian/libhibernate-validator-java.poms0000644000000000000000000000027212231232453015416 0ustar pom.xml hibernate-validator/pom.xml --java-lib hibernate-validator-archetype/pom.xml --ignore hibernate-validator-legacy/pom.xml --ignore hibernate-validator-tck-runner/pom.xml --ignore debian/maven.rules0000644000000000000000000000207312231232453011347 0ustar # Maven rules - transform Maven dependencies and plugins # Format of this file is: # [group] [artifact] [type] [version] # where each element can be either # - the exact string, for example org.apache for the group, or 3.1 # for the version. In this case, the element is simply matched # and left as it is # - * (the star character, alone). In this case, anything will # match and be left as it is. For example, using * on the # position of the artifact field will match any artifact id # - a regular expression of the form s/match/replace/ # in this case, elements that match are transformed using # the regex rule. # All elements much match before a rule can be applied # Example rule: match jar with groupid= junit, artifactid= junit # and version starting with 3., replacing the version with 3.x # junit junit jar s/3\..*/3.x/ s/org.hibernate.java-persistence/javax.persistence/ s/jpa-api/persistence-api/ jar s/.*/debian/ s/javax.validation/org.apache.geronimo.specs/ s/validation-api/geronimo-validation_1.0_spec/ jar s/.*/debian/ org.testng testng jar s/.*/6.x/ debian/changelog0000644000000000000000000000716512231233143011043 0ustar libhibernate-validator-java (4.0.2.GA-8) unstable; urgency=low * Team upload. * add patch to remove jdk15 classifier from testng dependency from pom.xml * fix testng version handling in d/maven.rules [ Sylvestre Ledru ] * Standards-Version updated to 3.9.4 -- Eugene Zhukov Fri, 04 Oct 2013 05:58:30 +0000 libhibernate-validator-java (4.0.2.GA-7) unstable; urgency=low * Team upload. * JAXB is now included in OpenJDK, so enabled previously disabled sources * Calling xjc in rules rather than using maven jaxb plugin as it is not packaged * Modified JPATraversableResolver.java to always return null as the method it uses to check its state does not exist in the version of the api provided in Debian. (It was previously disabled completely) -- Brian Thomason Fri, 25 May 2012 17:37:00 +0000 libhibernate-validator-java (4.0.2.GA-6ubuntu1) precise; urgency=low * Fix missing jar file from /usr/share/java. -- Onkar Shinde Wed, 18 Apr 2012 22:56:21 +0530 libhibernate-validator-java (4.0.2.GA-6) unstable; urgency=low * Team upload. * Add missing Build-Depends on testng. (Closes: #655774). -- Miguel Landaeta Sat, 14 Jan 2012 17:26:03 -0430 libhibernate-validator-java (4.0.2.GA-5) unstable; urgency=low * Team upload. * Add Build-Depends on libmaven-reporting-impl-java. (Closes: #644341). * Disable maven-surefire-report-plugin usage during build time. * Fix clean target to allow two builds in a row. -- Miguel Landaeta Wed, 12 Oct 2011 13:49:57 -0430 libhibernate-validator-java (4.0.2.GA-4) unstable; urgency=low * Team upload. * d/patches/pom_modules.diff: Disable some modules from pom.xml since --ignore doesn't seems to work (Closes: #615155). * Bump Standards-Version to 3.9.2 (no changes needed). -- Damien Raude-Morvan Mon, 02 May 2011 00:18:52 +0200 libhibernate-validator-java (4.0.2.GA-3) unstable; urgency=low * Upload to unstable. * Add maven-assembly-plugin to maven.ignoreRules. -- Torsten Werner Tue, 03 Aug 2010 21:50:25 +0200 libhibernate-validator-java (4.0.2.GA-2) experimental; urgency=low * Use --ignore to ignore modules that cannot be built yet. -- Torsten Werner Tue, 22 Jun 2010 20:32:31 +0200 libhibernate-validator-java (4.0.2.GA-1) experimental; urgency=low * New upstream release * Create orig tarball from SVN tag. * Switch to git for maintaining the package. * Build package with Maven instead of Ant. * Change Section: java. * Add missing Depends: ${misc:Depends}. * Update Standards-Version: 3.8.4. * Update (Build-)Depends. * Update licenses in debian/copyright (now Apache-2.0). -- Torsten Werner Mon, 14 Jun 2010 22:37:27 +0200 libhibernate-validator-java (3.1.0.GA+dak1-1) unstable; urgency=low * Move package to main. -- Torsten Werner Tue, 18 Nov 2008 20:05:17 +0100 libhibernate-validator-java (3.1.0.GA-1) unstable; urgency=low * New upstream release * Bump up Standards-Version: 3.8.0 (no changes). -- Torsten Werner Sat, 08 Nov 2008 21:58:40 +0100 libhibernate-validator-java (3.1.0.CR1-1) unstable; urgency=low * New upstream release * Add libslf4j-java to Build-Depends-Indep * Bump Standards-Version to 3.7.3 -- Varun Hiremath Mon, 02 Jun 2008 01:24:04 +0530 libhibernate-validator-java (3.0.0.GA-1) unstable; urgency=low * Initial Release (closes: #451489). -- Torsten Werner Sun, 11 Nov 2007 21:12:33 +0100 debian/README.Debian-source0000644000000000000000000000072512231232453012526 0ustar The upstream supplied source package contains binary jar files and pre-built documentation. Currently no clean source distribution exists. Therefore, the upstream sources were modified to comply with the Debian Free Software Guidelines. Use the rules/get-orig-source target to create the orig.tar.gz. For more details on repackaging of upstream sources please see the debian/orig-tar.sh file. -- Torsten Werner Sun, 11 Nov 2007 21:12:33 +0100 debian/control0000644000000000000000000000335512231233112010565 0ustar Source: libhibernate-validator-java Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Torsten Werner , Varun Hiremath Build-Depends: debhelper (>= 5), cdbs, maven-debian-helper Build-Depends-Indep: default-jdk, libhibernate3-java, libmaven-shade-plugin-java, glassfish-javaee, libjtype-java, libgeronimo-validation-1.0-spec-java, liblog4j1.2-java, libmaven-reporting-impl-java, testng (>= 6.8.7) Standards-Version: 3.9.4 Homepage: http://validator.hibernate.org Vcs-Git: git://git.debian.org/git/pkg-java/libhibernate-validator-java.git Vcs-Browser: http://git.debian.org/?p=pkg-java/libhibernate-validator-java.git Package: libhibernate-validator-java Architecture: all Depends: ${misc:Depends}, libhibernate3-java, glassfish-javaee, libjtype-java, libgeronimo-validation-1.0-spec-java Description: Hibernate Validator Hibernate Validator aims at defining and checking a domain model level constraints. It supports custom constraints definitions as well as full internationalization. Annotations are used to define constraints on object level. The validation mechanism can be executed in different layers in your application without having to duplicate any of these rules (presentation layer, data access layer, Database schema). . Hibernate Validator integrates with Hibernate by applying the constraints on the database schema (DDL generation) and by checking entity validity before Hibernate inserts or updates instances. You can use Hibernate Validator with any Java Persistence provider, not only Hibernate, although you will not be able to use automatic DDL alteration for constraint generation outside of Hibernate EntityManager. debian/patches/0000755000000000000000000000000012231232453010612 5ustar debian/patches/pom_testng_classifier.patch0000644000000000000000000000222712231232453016221 0ustar Description: removes jdk15 classifier from testng dependency * remove jdk15 classifier from testng dependency in pom.xml Author: Eugene Zhukov Last-Update: 2013-10-04 --- a/hibernate-validator-tck-runner/pom.xml +++ b/hibernate-validator-tck-runner/pom.xml @@ -27,7 +27,6 @@ org.testng testng - jdk15 org.hibernate.jsr303.tck --- a/hibernate-validator/pom.xml +++ b/hibernate-validator/pom.xml @@ -60,7 +60,6 @@ org.testng testng test - jdk15 --- a/pom.xml +++ b/pom.xml @@ -63,7 +63,6 @@ org.testng testng 5.8 - jdk15 debian/patches/0002-disable-maven-surefire-report-plugin.patch0000644000000000000000000000166012231232453021353 0ustar Description: Disable maven-surefire-report-plugin reports tests Author: Miguel Landaeta Forwarded: no Last-Update: 2011-10-12 --- libhibernate-validator-java-4.0.2.GA.orig/hibernate-validator/pom.xml +++ libhibernate-validator-java-4.0.2.GA/hibernate-validator/pom.xml @@ -128,6 +128,8 @@ + org.apache.maven.plugins debian/patches/series0000644000000000000000000000032212231232453012024 0ustar #pom_modules.diff #0001-don-t-build-sources-the-depend-on-jaxb-xjc.patch 0002-disable-maven-surefire-report-plugin.patch disable-jpa-persistence-check.patch jaxb-binding-fixes.patch pom_testng_classifier.patch debian/patches/0001-don-t-build-sources-the-depend-on-jaxb-xjc.patch0000644000000000000000000000306012231232453022140 0ustar From: Torsten Werner Date: Sun, 6 Jun 2010 21:25:54 +0200 Subject: [PATCH] don't build sources the depend on jaxb-xjc --- hibernate-validator/pom.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/hibernate-validator/pom.xml b/hibernate-validator/pom.xml index 7b00b6e..2f6b97e 100644 --- a/hibernate-validator/pom.xml +++ b/hibernate-validator/pom.xml @@ -77,6 +77,20 @@ + org.apache.maven.plugins + maven-compiler-plugin + + + **/org/hibernate/validator/HibernateValidator.java + **/org/hibernate/validator/engine/ConfigurationImpl.java + **/org/hibernate/validator/engine/ValidatorFactoryImpl.java + **/org/hibernate/validator/engine/resolver/JPATraversableResolver.java + **/org/hibernate/validator/xml/ValidationXmlParser.java + **/org/hibernate/validator/xml/XmlMappingParser.java + + + + true org.apache.maven.plugins maven-source-plugin -- debian/patches/pom_modules.diff0000644000000000000000000000073312231232453013772 0ustar Description: Disable some modules from pom.xml Author: Damien Raude-Morvan Last-Update: 2011-05-02 Forwarded: not-needed --- a/pom.xml +++ b/pom.xml @@ -37,9 +37,11 @@ hibernate-validator + debian/patches/jaxb-binding-fixes.patch0000644000000000000000000001274212231232453015311 0ustar Description: JAXB binding fixes Now compiles .java files depending on JAXB bindings. These were intentionally disabled before as JAXB was not a part of OpenJDK. Author: Brian Thomason --- libhibernate-validator-java-4.0.2.GA.orig/hibernate-validator/src/main/java/org/hibernate/validator/xml/ValidationXmlParser.java +++ libhibernate-validator-java-4.0.2.GA/hibernate-validator/src/main/java/org/hibernate/validator/xml/ValidationXmlParser.java @@ -41,6 +41,9 @@ import org.hibernate.validator.util.Load import org.hibernate.validator.util.LoggerFactory; import org.hibernate.validator.util.NewInstance; +import org.jboss.xml.ns.javax.validation.configuration.ValidationConfigType; +import org.jboss.xml.ns.javax.validation.configuration.PropertyType; + /** * Parser for validation.xml using JAXB. * @@ -124,15 +127,15 @@ public class ValidationXmlParser { } private void setMappingStreamsFromXml(ValidationConfigType config, ValidationBootstrapParameters xmlParameters) { - for ( JAXBElement mappingFileName : config.getConstraintMapping() ) { + for ( String mappingFileName : config.getConstraintMapping() ) { if ( log.isDebugEnabled() ) { log.debug( - "Trying to open input stream for {}.", mappingFileName.getValue() + "Trying to open input stream for {}.", mappingFileName ); } - InputStream in = getInputStreamForPath( mappingFileName.getValue() ); + InputStream in = getInputStreamForPath( mappingFileName ); if ( in == null ) { - throw new ValidationException( "Unable to open input stream for mapping file " + mappingFileName.getValue() + "." ); + throw new ValidationException( "Unable to open input stream for mapping file " + mappingFileName + "." ); } xmlParameters.mappings.add( in ); } --- libhibernate-validator-java-4.0.2.GA.orig/hibernate-validator/src/main/java/org/hibernate/validator/xml/XmlMappingParser.java +++ libhibernate-validator-java-4.0.2.GA/hibernate-validator/src/main/java/org/hibernate/validator/xml/XmlMappingParser.java @@ -65,6 +65,22 @@ import org.hibernate.validator.util.Logg import org.hibernate.validator.util.annotationfactory.AnnotationDescriptor; import org.hibernate.validator.util.annotationfactory.AnnotationFactory; +import org.jboss.xml.ns.javax.validation.mapping.ConstraintDefinitionType; +import org.jboss.xml.ns.javax.validation.mapping.ClassType; +import org.jboss.xml.ns.javax.validation.mapping.GroupSequenceType; +import org.jboss.xml.ns.javax.validation.mapping.ConstraintType; +import org.jboss.xml.ns.javax.validation.mapping.ElementType; +import org.jboss.xml.ns.javax.validation.mapping.AnnotationType; +import org.jboss.xml.ns.javax.validation.mapping.GroupsType; +import org.jboss.xml.ns.javax.validation.mapping.PayloadType; +import org.jboss.xml.ns.javax.validation.mapping.ConstraintMappingsType; +import org.jboss.xml.ns.javax.validation.configuration.PropertyType; +import org.jboss.xml.ns.javax.validation.mapping.FieldType; +import org.jboss.xml.ns.javax.validation.mapping.ConstraintType; +import org.jboss.xml.ns.javax.validation.mapping.GetterType; +import org.jboss.xml.ns.javax.validation.mapping.BeanType; +import org.jboss.xml.ns.javax.validation.mapping.ValidatedByType; + /** * @author Hardy Ferentschik */ @@ -168,10 +184,10 @@ public class XmlMappingParser { if ( validatedByType.isIncludeExistingValidators() != null && validatedByType.isIncludeExistingValidators() ) { constraintValidatorClasses.addAll( findConstraintValidatorClasses( annotationClass ) ); } - for ( JAXBElement validatorClassName : validatedByType.getValue() ) { + for ( String validatorClassName : validatedByType.getValue() ) { Class> validatorClass; validatorClass = ( Class> ) loadClass( - validatorClassName.getValue(), + validatorClassName, this.getClass() ); @@ -368,8 +384,8 @@ public class XmlMappingParser { private List> createGroupSequence(GroupSequenceType groupSequenceType, String defaultPackage) { List> groupSequence = new ArrayList>(); if ( groupSequenceType != null ) { - for ( JAXBElement groupName : groupSequenceType.getValue() ) { - Class group = getClass( groupName.getValue(), defaultPackage ); + for ( String groupName : groupSequenceType.getValue() ) { + Class group = getClass( groupName, defaultPackage ); groupSequence.add( group ); } } @@ -601,8 +617,8 @@ public class XmlMappingParser { } List> groupList = new ArrayList>(); - for ( JAXBElement groupClass : groupsType.getValue() ) { - groupList.add( getClass( groupClass.getValue(), defaultPackage ) ); + for ( String groupClass : groupsType.getValue() ) { + groupList.add( getClass( groupClass, defaultPackage ) ); } return groupList.toArray( new Class[groupList.size()] ); } @@ -614,8 +630,8 @@ public class XmlMappingParser { } List> payloadList = new ArrayList>(); - for ( JAXBElement groupClass : payloadType.getValue() ) { - Class payload = getClass( groupClass.getValue(), defaultPackage ); + for ( String groupClass : payloadType.getValue() ) { + Class payload = getClass( groupClass, defaultPackage ); if ( !Payload.class.isAssignableFrom( payload ) ) { throw new ValidationException( "Specified payload class " + payload.getName() + " does not implement javax.validation.Payload" ); } debian/patches/disable-jpa-persistence-check.patch0000644000000000000000000000232012231232453017400 0ustar Description: Always return null as method used for persitence check does not exist in Debian version of API Author: Brian Thomason --- libhibernate-validator-java-4.0.2.GA.orig/hibernate-validator/src/main/java/org/hibernate/validator/engine/resolver/JPATraversableResolver.java +++ libhibernate-validator-java-4.0.2.GA/hibernate-validator/src/main/java/org/hibernate/validator/engine/resolver/JPATraversableResolver.java @@ -30,8 +30,9 @@ public class JPATraversableResolver impl // TODO Check the call to PersistenceUtil. traversableProperty.getName() is this correct? public boolean isReachable(Object traversableObject, Path.Node traversableProperty, Class rootBeanType, Path pathToTraversableObject, ElementType elementType) { - return traversableObject == null || - Persistence.getPersistenceUtil().isLoaded( traversableObject, traversableProperty.getName() ); + return traversableObject == null; +//|| +// Persistence.getPersistenceUtil().isLoaded( traversableObject, traversableProperty.getName() ); } public boolean isCascadable(Object traversableObject, Path.Node traversableProperty, Class rootBeanType, Path pathToTraversableObject, ElementType elementType) { debian/watch0000644000000000000000000000030312231232453010210 0ustar # watch control file for uscan version=3 opts=uversionmangle=s/.((?i)alpha|beta)/~\L$1/;s/_/./g \ http://anonsvn.jboss.org/repos/hibernate/validator/tags/ v(.*)/ \ debian debian/orig-tar.sh debian/maven.publishedRules0000644000000000000000000000156112231232453013210 0ustar # Maven published rules - additional rules to publish, to help # the packaging work of Debian maintainers using mh_make # Format of this file is: # [group] [artifact] [type] [version] # where each element can be either # - the exact string, for example org.apache for the group, or 3.1 # for the version. In this case, the element is simply matched # and left as it is # - * (the star character, alone). In this case, anything will # match and be left as it is. For example, using * on the # position of the artifact field will match any artifact id # - a regular expression of the form s/match/replace/ # in this case, elements that match are transformed using # the regex rule. # All elements much match before a rule can be applied # Example rule: match any dependency whose group is ant, # replacing it with org.apache.ant # s/ant/org.apache.ant/ * * s/.*/debian/ debian/rules0000755000000000000000000000145312231232453010246 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/maven.mk JAVA_HOME := /usr/lib/jvm/default-java clean:: mh_clean rm -f mvn-build rm -rf $(CURDIR)/hibernate-validator/src/main/java/org/jboss find ./ -name *.class |xargs rm -rf configure/libhibernate-validator-java:: cd $(CURDIR)/hibernate-validator/src/main/java && $(JAVA_HOME)/bin/xjc -extension -b ../xjb/binding-customization.xjb ../xsd/validation-mapping-1.0.xsd cd $(CURDIR)/hibernate-validator/src/main/java && $(JAVA_HOME)/bin/xjc ../xsd/validation-configuration-1.0.xsd binary/libhibernate-validator-java:: cp pom.xml.save pom.xml cp hibernate-validator/pom.xml.save hibernate-validator/pom.xml get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download debian/copyright0000644000000000000000000000111312231232453011112 0ustar This package was debianized by Torsten Werner on 2007-11-11. The source code was downloaded from http://sourceforge.net/projects/hibernate Upstream Authors: Emmanuel Bernard Gavin King Norman Richards Copyright: (C) 2006-2009 Red Hat Middleware, LLC. License: Apache-2.0 On Debian systems, full text of the license can be found at `/usr/share/common-licenses/Apache-2.0'. The Debian packaging is (C) 2007 - 2010, Torsten Werner and is licensed under the Apache-2.0 license, see `/usr/share/common-licenses/Apache-2.0'. debian/maven.cleanIgnoreRules0000644000000000000000000000137412231232453013461 0ustar # Maven clean ignore rules - ignore some Maven dependencies and plugins during the clean phase # Format of this file is: # [group] [artifact] [type] [version] # where each element can be either # - the exact string, for example org.apache for the group, or 3.1 # for the version. In this case, the element is simply matched # and left as it is # - * (the star character, alone). In this case, anything will # match and be left as it is. For example, using * on the # position of the artifact field will match any artifact id # All elements much match before a rule can be applied # Example rule: match jar with groupid= junit, artifactid= junit # and version starting with 3., this dependency is then removed # from the POM # junit junit jar s/3\..*/3.x/