view jasper-ant.xml @ 361:7b6d30651db7 tip

Cygwin has an ENV that container 'CI'. Causing build issues. Just check for 'github' to determine if it is a local build
author davis@ssdt-ohio.org
date Thu, 16 Nov 2023 15:52:40 -0500
parents 23c4f06b3880
children
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<project name="jasper-ant" basedir="." xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
       
    <target name="-jasper-init" depends="init">
        <property name="reports.src.dir" value="${basedir}/reports" />
        <property name="reports.dest.dir" value="${build.web.dir}/WEB-INF/reports" />
                
        <ivy:settings id="jasper.ivy.id"/>
        <ivy:resolve id="jasper.ivy.id" conf="compile" log="quiet"/>
        <ivy:cachepath
            resolveId="jasper.ivy.id"
            pathid="jasper.classpath"
            conf="compile" 
            type="jar"
            log="quiet"/>
                 
        <taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask" classpathref="jasper.classpath"/> 
        <property name="jasper.initialized" value="true"/>
        
    </target>

    <target name="jasper-compile-reports" depends="-jasper-init" 
            description="Compiles Jasper report designs."> 
        <mkdir dir="${reports.dest.dir}"/> 
        <jrc 
            destdir="${reports.dest.dir}"
            tempdir="${reports.dest.dir}"
            keepjava="false"
            xmlvalidation="true">
            <src>
                <fileset dir="${reports.src.dir}">
                    <include name="**/*.jrxml"/>
                </fileset>
            </src>
            <classpath refid="jasper.classpath"/>
        </jrc> 
    </target> 
</project>