<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="npsoap"> <property file="build.properties" /> <path id="project.classpath"> <pathelement location="${build.dir}" /> <fileset dir="${lib.dir}"> <include name="**/*.jar" /> </fileset> <pathelement location="${tomcat.dir}/common/lib/servlet-api.jar" /> <pathelement location="${tomcat.dir}/common/lib/jsp-api.jar" /> </path> <path id="project.source"> <pathelement location="${basedir}/src" /> </path>
<target name="init"> <mkdir dir="${build.dir}" /> <mkdir dir="${build.dir}/classes" /> <mkdir dir="${build.dir}/web" /> <mkdir dir="${dist.dir}" /> </target> <target name="clean"> <delete dir="${build.dir}" /> </target>
<target name="build" depends="init" > <javac destdir="${build.dir}/classes" debug="true" debuglevel="lines,vars,source"> <src refid="project.source" /> <classpath refid="project.classpath" /> </javac> <!-- copy hibernate mapping files and properties --> <copy todir="${build.dir}/classes"> <fileset dir="${basedir}/src"> <include name="**/*.properties" /> <include name="**/*.xml" /> <include name="**/*.xsd" /> <exclude name="**/*Test.xml" /> <exclude name="**/*.java" /> </fileset> </copy> <copy todir="${build.dir}/classes"> <fileset dir="${basedir}/conf"> <include name="**/*.properties" /> <include name="**/*.xml" /> <include name="**/*.xsd" /> <exclude name="**/*Test.xml" /> <exclude name="**/*.java" /> </fileset> </copy> <!-- copy web files --> <copy todir="${build.dir}/web"> <fileset dir="${basedir}/web"> <include name="**/*" /> </fileset> </copy> </target> <target name="jar" depends="build"> <!-- create the npsoap.war file for distribution --> <delete> <fileset dir="${lib.dir}"> <include name="npsoap_*.jar"/> </fileset> </delete> <tstamp></tstamp> <jar destfile="${lib.dir}/npsoap_${DSTAMP}.jar" > <fileset dir="${build.dir}/classes"> <exclude name="**/*.xml" /> <exclude name="**/*.xsd" /> <exclude name="*.properties" /> </fileset> </jar> </target>
<target name="war" depends="jar"> <!-- create the npsoap.war file for distribution --> <delete file="${dist.dir}/npsoap.war" /> <buildnumber file="build.version" /> <tstamp /> <war destfile="${dist.dir}/npsoap.war" webxml="${basedir}/web/WEB-INF/web.xml"> <manifest> <attribute name="Vendor" value="${product.vendor}" /> <attribute name="Product" value="${product.name}" /> <attribute name="Build-ID" value="${DSTAMP}${TSTAMP} - ${build.number}" /> <attribute name="Build-Date" value="${TODAY}" /> <attribute name="Specification-Version" value="0.0.1" /> <attribute name="Implementation-Title" value="${product.name}" /> <attribute name="Implementation-Version" value="${DSTAMP}${TSTAMP} - ${build.number}" /> <attribute name="Implementation-Vendor" value="${product.vendor}" /> </manifest> <classes dir="${build.dir}/classes"> <include name="**/*.xml" /> <include name="**/*.xsd" /> <include name="**/*.properties" /> <include name="**/*.ks" /> </classes> <lib dir="${lib.dir}"> <include name="**/*.jar" /> <exclude name="ojdbc14.jar" /> </lib> <fileset dir="${build.dir}/web"> <exclude name="WEB-INF/web.xml" /> <exclude name="WEB-INF/lib/**/*.jar" /> </fileset> </war> </target>
</project>
## Vendor
product.vendor=European Computer Telecoms AG
product.name=RbtBilling
lib.dir=${basedir}/web/WEB-INF/lib
tomcat.dir=C:/Programme/Apache Software Foundation/Tomcat 5.5
## Location of documentation
docs.dir=${basedir}/docs
## Location of javadoc
javadoc.dir=${basedir}/docs/api
## Build directory
build.dir=${basedir}/build
## Directory for distributable files
dist.dir=${basedir}/dist
## Version
version=0.1
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment