ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@goodconsultants.com
Subject how can i undeclare taskdef?
Date Sat, 03 Apr 2004 21:04:01 GMT
All,

I have problems with taskdef being ran twice or more. How can i avoid the 
situation? Where should I place my taskdef? 

Can i actually "undeclare" what has been defined? I am interested in 
undeclaring the "jasper2" task.

Thanks

Barry

Here is the related code:

    <taskdef classname="org.apache.jasper.JspC" name="jasper2" 
onerror="ignore">
        <classpath id="jspc.classpath">
        <pathelement location="${java.home}/lib/tools.jar"/>
        <fileset dir="${catalina.home}/bin">
        <include name="*.jar"/>
        </fileset>
        <fileset dir="${catalina.home}/server/lib">
        <include name="*.jar"/>
        </fileset>
        <fileset dir="${catalina.home}/common/lib">
        <include name="*.jar"/>
        </fileset>
        </classpath>
    </taskdef>
    
    <jasper2 validateXml="false" uriroot="${basedir}/${precom-webapp.path}"
            webXmlFragment="${basedir}/${precom-webapp.path}/WEB-
INF/generated_web.xml"
            outputDir="${basedir}/${precom-webapp.path}/WEB-INF/src" />






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message