ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Jensen" <JJEN...@agribank.com>
Subject Re: javac complaining about missing packages/classes
Date Tue, 12 Mar 2002 19:42:52 GMT
Hmm, I'm not sure what you mean by "javadoc and packagenames don't take
wildcards and don't do recursion".

A simple javac works like this:

    <javac destdir="${build.dev.class.dir}" includes="**/*.java">
      <src path="${src.code.src.dir}" />
      <src path="${src.code.test.dir}" />
    </javac>

and a simple javadoc works like this:

    <javadoc destdir="${build.dev.javadoc.dir}" packagenames="com.*">
      <sourcepath>
          <pathelement path="${src.code.src.dir}" />
          <pathelement path="${src.code.test.dir}" />
      </sourcepath>
    </javadoc>

both using wildcards and recursion into directories.  This is one of my
fav things about Ant.

What am I missing that causes the need for a new task definition?


>>> acroyear@io.com 03/12/02 12:19PM >>>

javadoc and packagenames don't take wildcards and don't do recursion.
you have to specify all packages individually, either in the
packagenames
attribute or in an external file.

my next article on ant for onjava.com that should be out within the
month will have an ant task that will generate your packagelist file
for you by recursing down your src tree and adding a line for each
directory that has a .java file in it.  hopefully that should be
published
by them by the end of march, but it may have to wait until the middle
of
april.  out of respect for them, i can't release the task definition
source
until its published, but once it is, i'll see what i can do to follow
up
on it and see if i can make it available to the ant community as a
whole
as an optional built-in task.

Joe
-- 
----------------------------------------------------------------------
Joseph Shelby                                   mailto:acroyear@io.com

5809 Chase Commons Ct. #201                http://www.io.com/~acroyear

Burke, VA  22015                             (703) 323-7121 | 247-7868
          Software Engineer, ISX Corporation, Arlington, VA
"The people of England will permit anything...except cruelty to horses
and a rise in the price of beer."  -- Return of the Musketteers (1989)
----------------------------------------------------------------------

--
To unsubscribe, e-mail:  
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message