comparison jasper-ant.xml @ 57:f7f21e9d2296

CM-127: add jasper-ant script for compiling Jasper report definitions
author smith@nwoca.org
date Thu, 14 Jul 2011 15:39:58 -0400
parents
children 23c4f06b3880
comparison
equal deleted inserted replaced
56:885cf9e76820 57:f7f21e9d2296
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="jasper-ant" basedir="." xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
3
4 <target name="-jasper-init" depends="init">
5 <property name="reports.src.dir" value="${basedir}/reports" />
6 <property name="reports.dest.dir" value="${build.web.dir}/WEB-INF/reports" />
7
8 <ivy:settings id="jasper.ivy.id"/>
9 <ivy:resolve id="jasper.ivy.id" conf="jasper-ant" log="quiet"/>
10 <ivy:cachepath
11 resolveId="jasper.ivy.id"
12 pathid="jasper.classpath"
13 conf="jasper-ant"
14 type="jar"
15 log="quiet"/>
16
17 <taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask" classpathref="jasper.classpath"/>
18 <property name="jasper.initialized" value="true"/>
19
20 </target>
21
22 <target name="jasper-compile-reports" depends="-jasper-init"
23 description="Compiles Jasper report designs.">
24 <mkdir dir="${reports.dest.dir}"/>
25 <jrc
26 destdir="${reports.dest.dir}"
27 tempdir="${reports.dest.dir}"
28 keepjava="false"
29 xmlvalidation="true">
30 <src>
31 <fileset dir="${reports.src.dir}">
32 <include name="**/*.jrxml"/>
33 </fileset>
34 </src>
35 <classpath refid="jasper.classpath"/>
36 </jrc>
37 </target>
38 </project>