From: Cameron T. <cta...@us...> - 2004-05-29 17:49:20
|
Update of /cvsroot/jibx/xsd2jibx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9203 Modified Files: build.xml Log Message: 2004-05-29 Index: build.xml =================================================================== RCS file: /cvsroot/jibx/xsd2jibx/build.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** build.xml 5 Apr 2004 06:00:02 -0000 1.7 --- build.xml 29 May 2004 17:49:09 -0000 1.8 *************** *** 1,83 **** ! <?xml version="1.0" encoding="UTF-8" ?> ! ! <project name="xsd2jibx" default="jar" basedir="./"> ! ! <property name="version" value="1.0-b1"/> ! ! <property name="build.dir" value="build"/> ! <property name="classes.dir" value="${build.dir}/classes"/> ! <property name="src.dir" value="src"/> ! ! <property name="lib.dir" value="${basedir}/lib" /> ! <property name="lib.log4j.dir" value="${lib.dir}/log4j-1.2.8" /> ! <property name="lib.jaxme.dir" value="${lib.dir}/jaxme-0.2" /> ! <property name="lib.junit.dir" value="${lib.dir}/junit-3.8.1" /> ! <property name="lib.jibx.dir" value="${lib.dir}/jibx-1.0b3a" /> ! ! <path id="classpath"> ! <fileset dir="${lib.jibx.dir}" includes="*.jar" /> ! <fileset dir="${lib.log4j.dir}" includes="*.jar" /> ! <fileset dir="${lib.jaxme.dir}" includes="*.jar" /> ! <fileset dir="${lib.junit.dir}" includes="*.jar" /> ! </path> ! ! <path id="classpath.jibx"> ! <path refid="classpath"/> ! <pathelement location="${classes.dir}"/> ! </path> ! ! <target name="prepare"> ! <mkdir dir="${build.dir}"/> ! <mkdir dir="${classes.dir}"/> ! </target> ! ! <target name="clean" description="remove anything previously built/compiled"> ! <delete dir="${build.dir}"/> ! </target> ! ! <!-- http://ant.apache.org/manual/CoreTasks/javac.html --> ! <target name="compile" depends="prepare" description="compile the source code"> ! <javac classpathref="classpath" deprecation="true" ! srcdir="${src.dir}" destdir="${classes.dir}" ! debug="true" ! /> ! </target> ! ! <target name="jibx" depends="compile" description="compile the jibx bindings into the class files"> ! <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"> ! <classpath> ! <fileset dir="${lib.jibx.dir}" includes="*.jar" /> ! </classpath> ! </taskdef> ! <bind> ! <classpath refid="classpath.jibx"/> ! <bindingfileset dir="src/org/jibx/xsd2jibx"> ! <include name="xsd.jibx.xml"/> ! <include name="jibx.jibx.xml"/> ! </bindingfileset> ! </bind> ! </target> ! ! <target name="jar" depends="clean,compile,jibx" description="create the jar"> ! <copy todir="${classes.dir}"> ! <fileset dir="${src.dir}" includes="**/*.xsl, **/*.properties" /> ! </copy> ! <jar jarfile="${build.dir}/xsd2jibx.jar" ! basedir="${classes.dir}" ! excludes="test/**" ! /> ! </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> ! </target> ! ! </project> --- 1,83 ---- ! <?xml version="1.0" encoding="UTF-8" ?> ! ! <project name="xsd2jibx" default="jar" basedir="./"> ! ! <property name="version" value="1.0-b1"/> ! ! <property name="build.dir" value="build"/> ! <property name="classes.dir" value="${build.dir}/classes"/> ! <property name="src.dir" value="src"/> ! ! <property name="lib.dir" value="${basedir}/lib" /> ! <property name="lib.log4j.dir" value="${lib.dir}/log4j-1.2.8" /> ! <property name="lib.jaxme.dir" value="${lib.dir}/jaxme-0.2" /> ! <property name="lib.junit.dir" value="${lib.dir}/junit-3.8.1" /> ! <property name="lib.jibx.dir" value="${lib.dir}/jibx-1.0b3b" /> ! ! <path id="classpath"> ! <fileset dir="${lib.jibx.dir}" includes="*.jar" /> ! <fileset dir="${lib.log4j.dir}" includes="*.jar" /> ! <fileset dir="${lib.jaxme.dir}" includes="*.jar" /> ! <fileset dir="${lib.junit.dir}" includes="*.jar" /> ! </path> ! ! <path id="classpath.jibx"> ! <path refid="classpath"/> ! <pathelement location="${classes.dir}"/> ! </path> ! ! <target name="prepare"> ! <mkdir dir="${build.dir}"/> ! <mkdir dir="${classes.dir}"/> ! </target> ! ! <target name="clean" description="remove anything previously built/compiled"> ! <delete dir="${build.dir}"/> ! </target> ! ! <!-- http://ant.apache.org/manual/CoreTasks/javac.html --> ! <target name="compile" depends="prepare" description="compile the source code"> ! <javac classpathref="classpath" deprecation="true" ! srcdir="${src.dir}" destdir="${classes.dir}" ! debug="true" ! /> ! </target> ! ! <target name="jibx" depends="compile" description="compile the jibx bindings into the class files"> ! <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"> ! <classpath> ! <fileset dir="${lib.jibx.dir}" includes="*.jar" /> ! </classpath> ! </taskdef> ! <bind> ! <classpath refid="classpath.jibx"/> ! <bindingfileset dir="src/org/jibx/xsd2jibx"> ! <include name="xsd.jibx.xml"/> ! <include name="jibx.jibx.xml"/> ! </bindingfileset> ! </bind> ! </target> ! ! <target name="jar" depends="clean,compile,jibx" description="create the jar"> ! <copy todir="${classes.dir}"> ! <fileset dir="${src.dir}" includes="**/*.xsl, **/*.properties" /> ! </copy> ! <jar jarfile="${build.dir}/xsd2jibx.jar" ! basedir="${classes.dir}" ! excludes="test/**" ! /> ! </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> ! </target> ! ! </project> |