Acronym Project – Ant and Eclipse

Java — squarism @ 12:21 pm

Having some problems getting Ant running the way I want to. It’s another question of whether the IDE (Eclipse) is being too inflexible or if I’m not doing something right. Eclipse doesn’t ship with functionality that allows ant build options. Here’s a log of what I’ve been trying.

Trying to get Cactus / JUnit automated. Added this to my build.xml:

But it seems that the Eclipse Ant pluging doesn’t ship with the junit jar/functionality. So I went to Preferences and tried to set my ANT_HOME to be my external install of ant (1.5.2). When I looked at the build.xml file again in Eclipse, I got this horrible error:

After some research, I’m thinking that the cause of the problem is conflicting Xerces classes. Eclipse must include Xerces somewhere as a part of it’s core libraries (like under [Eclipse_Install_Dir]/plugins/org.apache.ant_1.5.2). So I was at a dead end. I signed up for an Eclipse newsgroup account and hit the archives. I found this.

So then I attemped to use Ant 1.6 (alpha). I got the same error. I tried to remove xercesImpl.jar from the filesystem but then got:

So I tried a series of adding jars, removing jars, editing plugins, adding a junit task under the Ant Perferences. Nothing seemd to work. I finally found this suggestion:

The ant task is there, it just doesn’t seem to do anything. The build is displayed as successful but I know that most of my tests fail. Now I’m questioning what I’m actually trying to accomplish. Although I have junit as an Ant task, Eclipse doesn’t have the tight integration I wanted. I’m going to play with Ant outside of Eclipse and/or use Eclipse’s integrated JUnit plugin for TestSuites.

0 Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2013 SQUARISM | powered by WordPress with Barecity