2ronwalf<?xml version="1.0"?>
2ronwalf<project name="OWL-S API" default="dist" basedir=".">
2ronwalf <description>
2ronwalf An API to read, write and execute Web Services described in OWL-S
2ronwalf </description>
2ronwalf
2ronwalf <!-- Read user properties -->
2ronwalf <property file="build.properties"/>
2ronwalf <property file="${user.home}/build.properties"/>
2ronwalf
2ronwalf <!-- Enviroment -->
2ronwalf <property environment="env"/>
2ronwalf
2ronwalf <!-- Global Properties -->
2ronwalf <property name="src" location="src" />
2ronwalf <property name="build" location="bin" />
2ronwalf <property name="dist" location="dist" />
2ronwalf <property name="project.name" value="owl-s" />
2ronwalf <property name="project.version" value="1.1.0-beta" />
2ronwalf <property name="catalina.home" value="${env.CATALINA_HOME}" />
2ronwalf
2ronwalf
2ronwalf <path id="project.class.path">
2ronwalf <fileset dir="lib">
2ronwalf <include name="**/*.jar"/>
2ronwalf <exclude name="**/${project.name}*.jar"/>
2ronwalf </fileset>
2ronwalf </path>
2ronwalf
2ronwalf <target name="init">
2ronwalf <pathconvert targetos="unix" property="classpath" refid="project.class.path" />
2ronwalf <echo>CLASSPATH=${classpath}</echo>
2ronwalf <!-- Create the time stamp -->
2ronwalf <tstamp/>
2ronwalf <!-- Create the build directory structure used by compile -->
2ronwalf <mkdir dir="${build}"/>
2ronwalf </target>
2ronwalf
2ronwalf <target name="compile" depends="init"
2ronwalf description="Compile source files." >
2ronwalf <javac source="1.4" target="1.4" srcdir="${src}" destdir="${build}" debug="yes">
2ronwalf <classpath refid="project.class.path"/>
2ronwalf </javac>
2ronwalf </target>
2ronwalf
2ronwalf <target name="build" depends="compile"
2ronwalf description="Compile sources and copy data files into build directory.">
2ronwalf <copy todir="${build}">
2ronwalf <fileset dir="${src}">
2ronwalf <exclude name="**/*.java" />
2ronwalf </fileset>
2ronwalf </copy>
2ronwalf </target>
2ronwalf
2ronwalf <target name="distfiles">
2ronwalf <!-- Copy in lib files -->
2ronwalf <mkdir dir="${dist}/lib" />
2ronwalf <copy todir="${dist}/lib">
2ronwalf <fileset dir="lib">
2ronwalf <include name="**/*.jar" />
2ronwalf <exclude name="**/${project.name}*.jar"/>
2ronwalf </fileset>
2ronwalf </copy>
2ronwalf </target>
2ronwalf
2ronwalf <target name="dist" depends="build,distfiles"
2ronwalf description="Generate a distribution" >
2ronwalf <!-- Generate relative classpath for jar file -->
2ronwalf <property name="lib" location="${basedir}/lib/"/>
2ronwalf <pathconvert dirsep="/" pathsep=" " property="Class-Path">
2ronwalf <map from="${lib}/" to=""/>
2ronwalf <map from="${lib}\" to=""/>
2ronwalf <path>
2ronwalf <fileset dir="lib">
2ronwalf <include name="**/*.jar" />
2ronwalf </fileset>
2ronwalf </path>
2ronwalf </pathconvert>
2ronwalf
2ronwalf <!-- Make Jar file. -->
2ronwalf <jar jarfile="${dist}/lib/${project.name}.jar"
2ronwalf basedir="${build}">
2ronwalf <manifest>
2ronwalf <attribute name="Class-Path" value="${Class-Path}" />
2ronwalf </manifest>
2ronwalf </jar>
2ronwalf </target>
2ronwalf
2ronwalf <target name="zipfile" depends="dist,javadoc"
2ronwalf description="Build a zipfile containing source and binaries.">
2ronwalf <condition property="project.dirname"
2ronwalf value="${project.name}-${DSTAMP}">
2ronwalf <not>
2ronwalf <isset property="project.dirname"/>
2ronwalf </not>
2ronwalf </condition>
2ronwalf <zip destfile="${dist}/${project.dirname}.zip">
2ronwalf <zipfileset dir="dist" prefix="${project.dirname}"
2ronwalf excludes="${project.name}*.zip"/>
2ronwalf <zipfileset dir="src" prefix="${project.dirname}/src"/>
2ronwalf <zipfileset dir="doc" prefix="${project.dirname}/doc"/>
2ronwalf <zipfileset dir="licensing" prefix="${project.dirname}/licensing"/>
2ronwalf <zipfileset dir="" prefix="${project.dirname}/"
2ronwalf includes="build.xml LICENSE.txt README.txt validate.* translate.* wsdl2owls.*" />
2ronwalf </zip>
2ronwalf </target>
2ronwalf
2ronwalf <target name="javadoc" depends="build">
2ronwalf <javadoc destdir="doc\javadoc" access="public" use="true" notree="false" nonavbar="false"
2ronwalf noindex="false" splitindex="true" author="true" version="true" nodeprecatedlist="false" source="1.4"
2ronwalf nodeprecated="false"
2ronwalf packagenames="examples,org.*"
2ronwalf sourcepath="${src}"
2ronwalf doctitle="${project.name}-${project.version}"
2ronwalf bottom="Copyright &#169; 2004 Evren Sirin. All Rights Reserved.">
2ronwalf <classpath refid="project.class.path"/>
2ronwalf </javadoc>
2ronwalf </target>
2ronwalf
2ronwalf <target name="release">
2ronwalf <property name="project.dirname"
2ronwalf value="${project.name}-${project.version}" />
2ronwalf <antcall target="zipfile"/>
2ronwalf </target>
2ronwalf
2ronwalf <target name="nightly-release">
2ronwalf <property name="project.dirname"
2ronwalf value="${project.name}-nightly" />
2ronwalf <antcall target="zipfile"/>
2ronwalf </target>
2ronwalf
2ronwalf <target name="clean" description="Clean up build files">
2ronwalf <delete dir="${build}" />
2ronwalf <delete dir="${dist}" />
2ronwalf <delete dir="${javadoc.dir}" />
2ronwalf </target>
2ronwalf</project>
2ronwalf