|
|
@@ -0,0 +1,115 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+
|
|
|
+
|
|
|
+<project name="epayment" default="jar" basedir=".">
|
|
|
+
|
|
|
+ <property name="src" location="src"/>
|
|
|
+ <property name="lib" location="lib"/>
|
|
|
+ <property name="bin" location="bin"/>
|
|
|
+
|
|
|
+ <path id="compile.class.path">
|
|
|
+ <fileset dir="${lib}">
|
|
|
+ <include name="*.*"/>
|
|
|
+ </fileset>
|
|
|
+ </path >
|
|
|
+
|
|
|
+ <target name="jar">
|
|
|
+ <javac debug="true" srcdir="${src}" destdir="${bin}" includeantruntime="true">
|
|
|
+ <classpath>
|
|
|
+ <path refid="compile.class.path"/>
|
|
|
+ </classpath>
|
|
|
+ </javac>
|
|
|
+
|
|
|
+ <jar jarfile="${lib}\${ant.project.name}.jar" basedir="${bin}"/>
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\lib" file="${lib}\${ant.project.name}.jar"/>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <target name="hibernate-java" >
|
|
|
+ <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask">
|
|
|
+ <classpath>
|
|
|
+ <fileset dir="${lib}">
|
|
|
+ <include name="*.jar"/>
|
|
|
+ <exclude name="${ant.project.name}.jar"/>
|
|
|
+ </fileset>
|
|
|
+ </classpath>
|
|
|
+ </taskdef>
|
|
|
+
|
|
|
+ <hibernatetool destdir="${src}">
|
|
|
+ <classpath>
|
|
|
+ <path location="${src}"/>
|
|
|
+ </classpath>
|
|
|
+ <configuration configurationfile="${src}/hibernate-mwapp.cfg.xml" />
|
|
|
+ <!--hbmtemplate
|
|
|
+ templateprefix="pojo/"
|
|
|
+ template="pojo Pojo.ftl"
|
|
|
+ filepattern="{package-name}/{class-name}.java">
|
|
|
+ <property key="jdk5" value="true" />
|
|
|
+ <property key="ejb3" value="true" />
|
|
|
+ </hbmtemplate-->
|
|
|
+
|
|
|
+ <hbm2java/>
|
|
|
+ <hbm2dao/>
|
|
|
+
|
|
|
+ </hibernatetool>
|
|
|
+ <hibernatetool destdir="${src}">
|
|
|
+ <classpath>
|
|
|
+ <path location="${src}"/>
|
|
|
+ </classpath>
|
|
|
+ <configuration configurationfile="${src}/hibernate-mwconfig.cfg.xml" />
|
|
|
+ <hbm2java/>
|
|
|
+ </hibernatetool>
|
|
|
+ <hibernatetool destdir="${src}">
|
|
|
+ <classpath>
|
|
|
+ <path location="${src}"/>
|
|
|
+ </classpath>
|
|
|
+ <configuration configurationfile="${src}/hibernate-mwlog.cfg.xml" />
|
|
|
+ <hbm2java/>
|
|
|
+ </hibernatetool>
|
|
|
+ <hibernatetool destdir="${src}">
|
|
|
+ <classpath>
|
|
|
+ <path location="${src}"/>
|
|
|
+ </classpath>
|
|
|
+ <configuration configurationfile="${src}/hibernate-mwtemp.cfg.xml" />
|
|
|
+ <hbm2java/>
|
|
|
+ </hibernatetool>
|
|
|
+
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
+ <target name="war" description="Generate Web Application">
|
|
|
+ <delete file="epayment.war"/>
|
|
|
+
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwapp.cfg.xml"/>
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwapp-config.cfg.xml"/>
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwconfig.cfg.xml"/>
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwlog.cfg.xml"/>
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwtemp.cfg.xml"/>
|
|
|
+
|
|
|
+
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\hbm_ds\hibernate-mwapp.cfg.xml"/>
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\hbm_ds\hibernate-mwapp-config.cfg.xml"/>
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\hbm_ds\hibernate-mwlog.cfg.xml"/>
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\hbm_ds\hibernate-mwtemp.cfg.xml"/>
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\hbm_ds\hibernate-mwconfig.cfg.xml"/>
|
|
|
+
|
|
|
+ <war destfile="epayment.war" webxml="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\web.xml">
|
|
|
+ <fileset dir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT"/>
|
|
|
+ </war>
|
|
|
+
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwapp.cfg.xml"/>
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwapp-config.cfg.xml"/>
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwconfig.cfg.xml"/>
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwlog.cfg.xml"/>
|
|
|
+ <delete file="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes\hibernate-mwtemp.cfg.xml"/>
|
|
|
+
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\src\hibernate-mwapp.cfg.xml"/>
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\src\hibernate-mwapp-config.cfg.xml"/>
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\src\hibernate-mwlog.cfg.xml"/>
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\src\hibernate-mwtemp.cfg.xml"/>
|
|
|
+ <copy todir="C:\AppServer\apache-tomcat-9.0.56\webapps\EPAYMENT\WEB-INF\classes" file="C:\Projects\MWDAO\src\hibernate-mwconfig.cfg.xml"/>
|
|
|
+
|
|
|
+ <copy todir="C:\Projects\MWDAO\release" file="epayment.war"/>
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
+</project>
|