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 21:14:48 GMT
Yes they work perfectly.  My examples are real - I copied them out of my
build.xml file (and trimmed the extraneous).

That is why I asked why you wrote a new taskdef...Ant already provides
directory traversals for about everything.  :-)


>>> acroyear@io.com 03/12/02 01:52PM >>>
Jeffrey Jensen wrote:
> 
> Hmm, I'm not sure what you mean by "javadoc and packagenames don't
take
> wildcards and don't do recursion".

well, "javadoc" the command-line program doesn't -- com.* means nothing
to it.

I didn't know "javadoc" the Ant task did support that (or else i
wouldn't
have written that part of the article).

> 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>

so is this working or not?  if not, then the only thing i can think of
is that the sourcepath isn't correct, or you've forgotten that your
classes aren't in a package under "com.something..." (not saying
they are or aren't, but its something to double-check).

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