r2022 - in trunk: . libxsd2jibx-java libxsd2jibx-java/debian libxsd2jibx-java/debian/patches

Eric Lavarde ewl-guest at costa.debian.org
Thu Mar 23 20:29:39 UTC 2006


Author: ewl-guest
Date: 2006-03-23 20:29:38 +0000 (Thu, 23 Mar 2006)
New Revision: 2022

Added:
   trunk/libxsd2jibx-java/
   trunk/libxsd2jibx-java/debian/
   trunk/libxsd2jibx-java/debian/changelog
   trunk/libxsd2jibx-java/debian/compat
   trunk/libxsd2jibx-java/debian/control
   trunk/libxsd2jibx-java/debian/copyright
   trunk/libxsd2jibx-java/debian/dirs
   trunk/libxsd2jibx-java/debian/docs
   trunk/libxsd2jibx-java/debian/install
   trunk/libxsd2jibx-java/debian/links
   trunk/libxsd2jibx-java/debian/patches/
   trunk/libxsd2jibx-java/debian/patches/01_build_xml_to_new.patch
   trunk/libxsd2jibx-java/debian/patches/02_build_xml.patch
   trunk/libxsd2jibx-java/debian/rules
Log:
Original upload, fonctional but doesn't use jibx/jaxme packages.


Added: trunk/libxsd2jibx-java/debian/changelog
===================================================================
--- trunk/libxsd2jibx-java/debian/changelog	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/changelog	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1,5 @@
+libxsd2jibx-java (0.0.0beta2a-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Eric Lavarde <deb at zorglub.s.bawue.de>  Sun, 12 Mar 2006 15:20:17 +0200

Added: trunk/libxsd2jibx-java/debian/compat
===================================================================
--- trunk/libxsd2jibx-java/debian/compat	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/compat	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1 @@
+4

Added: trunk/libxsd2jibx-java/debian/control
===================================================================
--- trunk/libxsd2jibx-java/debian/control	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/control	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1,24 @@
+Source: libxsd2jibx-java
+Section: contrib/libs
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Eric Lavarde <deb at zorglub.s.bawue.de>
+Build-Depends: debhelper (>= 4.1.0), cdbs (>= 0.4.8), sun-j2sdk1.4, ant, antlr, libjibx-java
+Standards-Version: 3.6.2.0
+
+Package: libxsd2jibx-java
+Architecture: all
+Depends: sun-j2re1.4 | sun-j2re1.5, libjibx-java
+Description: Tool for JiBX binding generation out of XML Schema
+ Xsd2Jibx gives you a way to generate an initial set of Java classes, and the
+ corresponding JiBX binding definition, from a W3C XML Schema input document.
+ The generated classes and binding give you a starting point for working with
+ XML documents matching the schema, which you can then refactor as appropriate
+ to suit your needs.
+ .
+ The big difference from other data binding frameworks that generate code from
+ schemas is that in the Xsd2Jibx case the generated code is under your control.
+ You can modify the code, changing the binding definition if necessary, while
+ continuing to work with documents matching the original schema. You can also
+ keep working with the original generated classes even as the schema evolves,
+ so long as you can compensate for the schema changes in the binding definition.

Added: trunk/libxsd2jibx-java/debian/copyright
===================================================================
--- trunk/libxsd2jibx-java/debian/copyright	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/copyright	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1,26 @@
+This package was debianized by Eric Lavarde <deb at zorglub.s.bawue.de> on
+Mon,  1 Aug 2005 21:00:17 +0200.
+
+It was downloaded from http://jibx.sf.net/
+
+Copyright Holder: Dennis Sosnoski <dsosnoski at users.sourceforge.net>
+
+License:
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted under the terms of the BSD License.
+
+    THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
+
+On Debian systems, the complete text of the BSD License can be 
+found in `/usr/share/common-licenses/BSD'.
+

Added: trunk/libxsd2jibx-java/debian/dirs
===================================================================
--- trunk/libxsd2jibx-java/debian/dirs	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/dirs	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1 @@
+usr/share/java

Added: trunk/libxsd2jibx-java/debian/docs
===================================================================
--- trunk/libxsd2jibx-java/debian/docs	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/docs	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1,2 @@
+readme.txt
+changes.txt

Added: trunk/libxsd2jibx-java/debian/install
===================================================================
--- trunk/libxsd2jibx-java/debian/install	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/install	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1 @@
+lib/xsd2jibx-0.0.0beta2a.jar usr/share/java

Added: trunk/libxsd2jibx-java/debian/links
===================================================================
--- trunk/libxsd2jibx-java/debian/links	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/links	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1 @@
+usr/share/java/xsd2jibx-0.0.0beta2a.jar usr/share/java/xsd2jibx.jar

Added: trunk/libxsd2jibx-java/debian/patches/01_build_xml_to_new.patch
===================================================================
--- trunk/libxsd2jibx-java/debian/patches/01_build_xml_to_new.patch	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/patches/01_build_xml_to_new.patch	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1,131 @@
+--- build.xml	2005-01-12 06:40:03.000000000 +0100
++++ build.xml	2005-04-13 00:36:35.000000000 +0200
+@@ -1,74 +1,65 @@
+ <?xml version="1.0"?>
+-<project name="xsd2jibx" default="build"
+-    xmlns:magic="antlib:net.dpml.magic"
+-    xmlns:x="plugin:dpml/magic/dpml-magic-core">
+-  
+-  <magic:import uri="artifact:template:dpml/magic/standard"/>
+-  <magic:import uri="artifact:template:dpml/magic/eclipse"/>
+-
+-  <target name="init" depends="standard.init">
+-    <x:filter feature="plugin" token="PLUGIN-URI"/>
+-  </target>
+ 
+-  <target name="build" depends="standard.build">
+-    <x:export class="org.jibx.binding.ant.CompileTask"/>
+-    <x:export class="org.jibx.xsd2jibx.GeneratorAntTask"/>
+-  </target>
++<project basedir="." default="jar">
+   
+-  <target name="jibx" depends="build">
+-    <x:path key="jibx-bind" id="jibx.path" mode="RUNTIME"/>
+-    
+-    <taskdef name="jibx" classname="org.jibx.binding.ant.CompileTask" onerror="report">
+-      <classpath><path refid="jibx.path"/></classpath>
+-    </taskdef>
+-    
+-    <jibx verbose="false">
++  <!-- JiBX binding compiler task definition -->
++  <property environment="env"/>
++  <property name="jibxhome" value="${env.JIBX_HOME}"/>
++  <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask">
++    <classpath>
++      <pathelement location="${jibxhome}/lib/bcel.jar"/>
++      <pathelement location="${jibxhome}/lib/jibx-bind.jar"/>
++      <pathelement location="${jibxhome}/lib/jibx-run.jar"/>
++      <pathelement location="${jibxhome}/lib/jibx-extras.jar"/>
++      <pathelement location="${jibxhome}/lib/xpp3.jar"/>  
++    </classpath>
++  </taskdef>
++  
++  <!-- compile the class files -->
++  <target name="compile">
++    <delete quiet="true" dir="${basedir}/classes"/>
++    <mkdir dir="${basedir}/classes"/>
++    <javac srcdir="${basedir}/src/main"
++      destdir="${basedir}/classes"
++      excludes="org/jibx/xsd2jibx/GeneratorAntTask.java"
++      debug="true"
++      deprecation="on">
+       <classpath>
+-        <path refid="jibx.path"/>
+-        <pathelement location="target/classes"/>
++        <fileset dir="${basedir}/lib">
++          <include name="*.jar"/>
++        </fileset>
++        <fileset dir="${jibxhome}/lib">
++          <include name="jibx-run.jar"/>
++          <include name="xpp3.jar"/>
++        </fileset>
+       </classpath>
+-      <bindingfileset dir="target/classes" includes="**/*.jibx.xml"/>
+-    </jibx>
+-  </target>
+-  
+-  <target name="install" depends="standard.install">
+-    <copy toDir="${dpml.templates}">
+-      <fileset dir="target/templates"/>
++    </javac>
++    <copy todir="${basedir}/classes/org/jibx/xsd2jibx">
++      <fileset dir="${basedir}/src/main/org/jibx/xsd2jibx" includes="**/*.xsl"/>
+     </copy>
+   </target>
+   
+-  <!-- make sure the jibx compiler runs before the jar is created -->
+-  <target name="package" depends="jibx,standard.package"/>
+-  
+-  <target name="test" depends="package"/>
+-  
+-  <target name="dist" depends="clean, package">
+-    <x:property name="version"  feature="version"/>
+-    <x:property name="xpp3.path" key="xpp3" feature="path"/>
+-    <x:property name="jaxme-js.path" key="jaxme-js" feature="path"/>
+-    
+-    <echo message="version: ${version}"/>
+-    <echo message="dpml.cache: ${dpml.cache}"/>
+-    
+-    <zip destfile="target/${ant.project.name}-${version}.zip">
+-      <zipfileset prefix="${ant.project.name}-${version}/lib"
+-        dir="${dpml.cache}"
+-        includes="${xpp3.path}, ${jaxme-js.path}"/>
+-    </zip>
+-  </target>
+-  
+-  <!--
+-  <target name="release" depends="clean, jar"  description="creates a versioned release">
+-    <zip destfile="${build.dir}/${ant.project.name}-${version}.zip">
+-      <zipfileset prefix="${ant.project.name}-${version}" dir="." includes="
+-        bin/*,
+-        build/xsd2jibx.jar,
+-        demo/**/*,
+-        lib/**/*,
+-        src/**/*,
+-        build.xml, readme.txt"/>
+-    </zip>
++  <!-- bind the class files -->
++  <target name="bind" depends="compile">
++    <echo message="Running binding compiler..."/>
++    <bind verbose="true" load="true">
++      <bindingfileset dir="${basedir}/src/main/org/jibx/xsd2jibx">
++        <include name="xsd.jibx.xml"/>
++        <include name="jibx.jibx.xml"/>
++      </bindingfileset>
++      <classpathset dir="${basedir}/classes"/>
++    </bind> 
++  </target>
++  
++  <!-- Build the jar files for the distribution -->
++  <target name="jar" depends="bind">
++    <delete file="${basedir}/lib/xsd2jibx.jar" quiet="true"/>
++    <jar jarfile="${basedir}/lib/xsd2jibx.jar" basedir="${basedir}/classes">
++      <manifest>
++        <attribute name="Main-Class" value="org/jibx/xsd2jibx/Generate"/>
++        <attribute name="Class-Path" value="commons-lang-2.0.jar commons-logging-1.0.4.jar jaxme-js-0.3.jar log4j-1.2.8.jar jibx-run.jar xpp3.jar"/>
++      </manifest>
++    </jar>
+   </target>
+-  -->
+ 
+ </project>

Added: trunk/libxsd2jibx-java/debian/patches/02_build_xml.patch
===================================================================
--- trunk/libxsd2jibx-java/debian/patches/02_build_xml.patch	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/patches/02_build_xml.patch	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1,60 @@
+--- build.xml	2005-04-12 22:36:35.000000000 +0000
++++ build.xml	2006-03-12 14:48:14.000000000 +0000
+@@ -4,14 +4,15 @@
+   
+   <!-- JiBX binding compiler task definition -->
+   <property environment="env"/>
+-  <property name="jibxhome" value="${env.JIBX_HOME}"/>
++  <property name="javadir" value="/usr/share/java"/>
++  <property name="rev" value="0.0.0beta2a"/>
+   <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask">
+     <classpath>
+-      <pathelement location="${jibxhome}/lib/bcel.jar"/>
+-      <pathelement location="${jibxhome}/lib/jibx-bind.jar"/>
+-      <pathelement location="${jibxhome}/lib/jibx-run.jar"/>
+-      <pathelement location="${jibxhome}/lib/jibx-extras.jar"/>
+-      <pathelement location="${jibxhome}/lib/xpp3.jar"/>  
++      <pathelement location="${javadir}/bcel.jar"/>
++      <pathelement location="${javadir}/jibx-bind.jar"/>
++      <pathelement location="${javadir}/jibx-run.jar"/>
++      <pathelement location="${javadir}/jibx-extras.jar"/>
++      <pathelement location="${javadir}/xpp3.jar"/>  
+     </classpath>
+   </taskdef>
+   
+@@ -28,9 +29,12 @@
+         <fileset dir="${basedir}/lib">
+           <include name="*.jar"/>
+         </fileset>
+-        <fileset dir="${jibxhome}/lib">
++        <fileset dir="${javadir}">
+           <include name="jibx-run.jar"/>
+           <include name="xpp3.jar"/>
++          <!-- <include name="log4j-1.2.jar"/> -->
++          <include name="commons-logging.jar"/>
++          <include name="commons-lang.jar"/>
+         </fileset>
+       </classpath>
+     </javac>
+@@ -53,13 +57,18 @@
+   
+   <!-- Build the jar files for the distribution -->
+   <target name="jar" depends="bind">
+-    <delete file="${basedir}/lib/xsd2jibx.jar" quiet="true"/>
+-    <jar jarfile="${basedir}/lib/xsd2jibx.jar" basedir="${basedir}/classes">
++    <delete file="${basedir}/lib/xsd2jibx-${rev}.jar" quiet="true"/>
++    <jar jarfile="${basedir}/lib/xsd2jibx-${rev}.jar" basedir="${basedir}/classes">
+       <manifest>
+         <attribute name="Main-Class" value="org/jibx/xsd2jibx/Generate"/>
+-        <attribute name="Class-Path" value="commons-lang-2.0.jar commons-logging-1.0.4.jar jaxme-js-0.3.jar log4j-1.2.8.jar jibx-run.jar xpp3.jar"/>
++        <attribute name="Class-Path" value="commons-lang-2.0.jar commons-logging-1.0.4.jar jaxme-js-0.3.jar log4j-1.2.jar jibx-run.jar xpp3.jar"/>
+       </manifest>
+     </jar>
+   </target>
+ 
++  <target name="clean">
++    <delete quiet="true" dir="${basedir}/classes"/>
++    <delete file="${basedir}/lib/xsd2jibx-${rev}.jar" quiet="true"/>
++  </target>
++
+ </project>

Added: trunk/libxsd2jibx-java/debian/rules
===================================================================
--- trunk/libxsd2jibx-java/debian/rules	2006-03-23 19:57:02 UTC (rev 2021)
+++ trunk/libxsd2jibx-java/debian/rules	2006-03-23 20:29:38 UTC (rev 2022)
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+# debian/rules for Commons Fileupload (uses CDBS)
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+# DEB_COMPRESS_EXCLUDE := .class
+JAVA_HOME_DIRS       := /usr/lib/j2sdk1.4-sun
+ANT_HOME             := /usr/share/ant
+DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar
+#DEB_ANT_BUILD_TARGET := setrelease current devdoc
+#DEB_BUILDDIR         := build
+
+LIBRARY=xsd2jibx
+VERSION=0.0.0beta2a
+
+#clean:: 
+#	-rm -fr lib 


Property changes on: trunk/libxsd2jibx-java/debian/rules
___________________________________________________________________
Name: svn:executable
   + 




More information about the pkg-java-commits mailing list