First Commit from Source Code Reply

This commit is contained in:
vincenzofariello
2024-05-09 17:40:24 +02:00
parent 11e3b57c5b
commit 107a016cb9
35225 changed files with 1111346 additions and 1 deletions

View File

@@ -0,0 +1,72 @@
<project name="main" default="main" basedir=".">
<!-- parametri di input -->
<property name="xsd.classpath" value="${schema}"/>
<property name="jarName" value="${out.jar}"/>
<property name="packageName" value="${packageName}"/>
<!-- FINE parametri di input -->
<property name="lib.dir" value="lib"/>
<property name="generated.path" value="./generated-source"/>
<property name="building.path" value="./generated-class"/>
<property name="jar.path" value="./generated-jar"/>
<path id="castor.class.path">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<filelist id="classes.files.classpath" dir="${generated.path}">
<file name="**"/>
</filelist>
<path id="all.classpath">
<!-- Generated -->
<filelist refid="classes.files.classpath"/>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<!-- Java compiler tools.jar -->
<!--pathelement location="${sdk.home}/lib/tools.jar"/-->
</path>
<target name="init">
<tstamp prefix="start"/>
<delete dir="${generated.path}"/>
<mkdir dir="${generated.path}"/>
<delete dir="${building.path}"/>
<mkdir dir="${building.path}"/>
<!--delete dir="${jar.path}"/-->
<mkdir dir="${jar.path}_${start.DSTAMP}_${start.TSTAMP}"/>
</target>
<target name="castor:gen:src" depends="init" description="Generate Java source files from XSD.">
<taskdef name="castor-srcgen"
classname="org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask"
classpathref="castor.class.path" />
<castor-srcgen file="${xsd.classpath}"
todir="${generated.path}"
package="${packageName}"
types="j2"
warnings="false" />
</target>
<target name="compile" depends="castor:gen:src">
<echo>
Compiling Classes
-----------------
</echo>
<javac srcdir="${generated.path}" destdir="${building.path}" debug="on" deprecation="off" failonerror="true">
<classpath refid="all.classpath"/>
</javac>
</target>
<target name="main" depends="compile">
<echo>
Create jar
-----------------
</echo>
<jar destfile="${jar.path}_${start.DSTAMP}_${start.TSTAMP}/${jarName}">
<fileset dir="${building.path}" includes="**/*.class"/>
<fileset dir="${generated.path}" includes="**/*.castor.cdr"/>
</jar>
</target>
</project>