The Artima Developer Community
Sponsored Link

Java Buzz Forum
We Have an Ant Task, ...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
We Have an Ant Task, ... Posted: Oct 1, 2004 9:54 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: We Have an Ant Task, ...
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

... all you have to do is to copy these lines into your build.xml file:

<taskdef
  name="ejbdoclet"
  classname="xdoclet.modules.ejb.EjbDocletTask"
  classpathref="project.class.path"
/>

I have been dutifully doing this in every one of my build.xml files that needs the task. (Well, not only this one, but other tasks from other tools.) At first, it is novel and exciting, "Look, I just added a snippet of XML to build.xml, and it can do this!" But it's getting old now, especially on the one thousandth time: "What's the class name of that task? And which jar file is it in?" I've tried external entity references which only obscures the issue.

What I want is a way to tell my installation of Ant about any new Ant tasks that's avaiable in third party packages. Do it once. And have that task available to all Ant runs that use the installation, like any other task that come bundled with Ant.

There must be a way to do this that I missed.

Read: We Have an Ant Task, ...

Topic: ClientJava.com Links(6) - Separrating the UI, Pendulum Swing Framework, Marathon 0.84 Released Previous Topic   Next Topic Topic: [Sep 22, 2004 03:48 PDT] 9 Links

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use