ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne <apa...@materne.de>
Subject Building AntUnit
Date Tue, 23 Nov 2010 13:26:36 GMT
I tried to build AntUnit.
But the first problem is that you must have JUnit on the compile classpath.
This is not part of Ant and there is no target for downloading that.

So I thought about enhancing the common/ivy.xml for running ivy
- downloading the ivy.jar (I think "go-ivy" is the target name from the
tutorial :)
- retrieving the defined dependencies

WDYT?



Having manually added Junit 4.8.2 (-lib ...) I'll get

BUILD FAILED
C:\ant\svn-repository\antlibs\antunit\trunk\common\build.xml:351: The
following error occurred while executing this line:
C:\ant\svn-repository\antlibs\antunit\trunk\common\ivy.xml:59:
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or
change an object in a way which is incorrect with regard to namespaces.
        at
com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.checkNamespaceWF(Unk
nown Source)

The part is:

  <target name="make-ivy.xml" depends="ivy-init"
unless="project.has-ivy.xml?">
    <echo message="Creating ivy.xml ${target.ivy.xml}" level="verbose"/>
    <echoxml file="${target.ivy.xml}">
      <ivy-module version="2.0">
        <info organisation="${ivy.organization}"
              module="ant"
              revision="${artifact.version}"
              publication="${publication.datetime}">
          <license name="Apache Software License 2.0"
                   url="http://www.apache.org/licenses/LICENSE-2.0"/>
          <ivyauthor name="Apache Ant Development Team"
                     url="http://ant.apache.org/"/>
        </info>
>>>        <publications xmlns:e="urn:ant.apache.org:ivy-extras">

Happens with JDK 1.5 and 1.6.

Any ideas?


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


Mime
View raw message