1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <project name="Siman-War" default="build-war">
4 <property environment="env" />
6 <property file="build.properties" description="set the build parameters" />
7 <property file="../${siman-common.project.name}/build.properties" description="set the build parameters" />
8 <property file="../${splat.project.name}/build.properties" description="set the build parameters" />
10 <property name="time.simple.pattern" value="dd/MM/yyyy" />
12 <format property="timesimple" pattern="${time.simple.pattern}" />
15 <!-- ================================================= -->
16 <!-- siman-common: Build Siman-Common project -->
17 <!-- ================================================= -->
18 <target name="siman-common" description="Builds Siman-Common project">
19 <ant dir="../${siman-common.project.name}" />
21 <target name="tmp" description="Builds Siman-Common project">
23 <attribute name="target" />
25 <echo message="trtr=${siman.@{target}.dir}" />
28 <ttt target="${siman.dist.dir}"/>
31 <!-- ================================================= -->
32 <!-- gen-config: Generate parametrized config files -->
33 <!-- ================================================= -->
34 <target name="gen-config" description="Generate parametrized config files">
35 <echo message="Generating configuration in ${config.mode} mode..." />
37 <equals arg1="${config.mode}" arg2="debug" casesensitive="false" />
39 <copy todir="${basedir}/${config.${config.mode}.dir}" overwrite="true">
40 <fileset dir="${config.src.dir}/templates">
43 <filtersfile file="${config.src.dir}/${config.mode}.properties" />
52 <!-- ===================================================================== -->
53 <!-- build-dist : Create the war file -->
54 <!-- ===================================================================== -->
55 <target name="build-war" depends="clean, siman-common" description="Builds the WAR distribution">
56 <echo message="build ${webapp.name}.war" />
58 <mkdir dir="${siman.dist.dir}" />
59 <war destfile="${siman.dist.dir}/${webapp.name}.war" webxml="${basedir}/${siman.content.dir}/WEB-INF/web.xml">
60 <fileset dir="${siman.content.dir}" />
61 <webinf dir="${siman.bin.dir}" />
63 <attribute name="Built-By" value="${app.author}" />
64 <attribute name="Version" value="${app.version}" />
65 <attribute name="Built-Date" value="${timesimple}" />
67 <lib dir="${basedir}/../${siman-common.project.name}/${siman-common.dist.dir}" includes="**/*.jar" />
68 <lib dir="${basedir}/../${siman-common.project.name}/${siman-common.lib.dir}" includes="**/*.jar" />
69 <lib dir="${basedir}/../${splat.project.name}/${splat.dist.dir}" includes="**/*.jar" />
70 <lib dir="${basedir}/../${splat.project.name}/${splat.lib.dir}" includes="**/*.jar" />
74 <!-- ================================================= -->
75 <!-- clean: Clean the dist directory -->
76 <!-- ================================================= -->
77 <target name="clean" description="clean the build directory">
78 <echo message="deleting files in ${siman.dist.dir}" />
79 <delete includeemptydirs="true" failonerror="false">
80 <fileset dir="${siman.dist.dir}" includes="**/*" />