ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mads Andersen" <mads...@pop.k-net.dk>
Subject Ant can't find custom task
Date Mon, 18 Sep 2000 20:33:39 GMT
First of all, thanks for Ant! It's a great tool!

I'm having trouble getting Ant to find my own task. My build.xml begins
with:

---8<---
<project name="Madsie" default="dist" basedir=".">

  <taskdef name="transform"
classname="com.madsie.util.xsl.XSLTransformTask"/>

  <!-- set global properties for this build -->
  <property name="src" value="src" />
  <property name="build" value="build" />
  <property name="dist"  value="dist" />
---8<---

I then have defined a target later in build.xml:

---8<---
  <target name="collections">
    <transform/>
  </target>
---8<---

When I run Ant I get:

---8<---
C:\madsie\java>ant collections

Buildfile: build.xml

BUILD FAILED

build.xml:3: taskdef class com.madsie.util.xsl.XSLTransformTask cannot be
found

Total time: 1 seconds
---8<---

But the task is in the classpath as the following witness:

---8<---
C:\madsie\java>java com.madsie.util.xsl.XSLTransformTask
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
        at
com.madsie.util.xsl.XSLTransformTask.main(XSLTransformTask.java:148)
---8<---

XSLTransformTask extends MatchingTask so it should be of the right type etc.

Any ideas?

BTW: I'm aware of XSLTProcess, but it doesn't solve my particular XSLT
needs.

Best regards, Madsie


Mime
View raw message