taskdef

How can I provide a custom log4j.xml for different ant tasks?

I have a build file that as part of the build process relies on several taskdefs. These taskdef items (for example, webdoclet and jasper2) use log4j as a logger. Ideally, I'd like to be able to provide a different log4j configuration file for each, but minimally, I'd like to be able to specify which log4j configuration file is used. W...

Why cannot Ant taskdef cannot load a resource outside ./net

When declaring external ant tasks using taskdef, for instance ant-contrib, the proposed setup is to use the followin taskdef: <taskdef resource="net/sf/antcontrib/antcontrib.properties"> <classpath> <pathelement location="lib/ant-contrib/ant-contrib-1.0b3.jar"/> </classpath> </taskdef> This works when antcontrib.properties is ...

Groovy + Antbuilder: How to use Grape to with taskdef?

This is related to . I'm trying to dynamically add the maven-ant-tasks jars with Grape, simulating this: <taskdef uri="antlib:org.apache.maven.artifact.ant" resource="org/apache/maven/artifact/ant/antlib.xml" classpathref="ant.classpath" /> I've tried to use Grape.grab() to make maven-ant-tasks available to An...

I have the wsdl and the uri, need to access a specific operation of a wsdl, i'hv wirtten a samll build.xml but getting build failed

The following is the build.xml file: The error encountered upon execvuting is:" taskdef A class needed by class org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask cannot be found: org/apache/axis/utils/DefaultAuthenticator". Please help me in this regar...

Grails ant tasks don't work - Unable to start Grails: java.lang.reflect.InvocationTargetException

Hi, I'm having issues getting something which seems very basic running with Grails. I want to call grails commands from an Ant script - Grails provides a Grails task to achieve this. I have defined the Grails taskdef and classpaths as per the docs however, no matter what command I call I get the same error... grails-compile: [grails...