You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by tc...@cs.com on 2000/08/04 00:34:04 UTC

javadoc linkoffline???

In my javadoc task I have the attribute:
linkoffline="http://java.sun.com/products/jdk/1.2/docs/api /jdk/1.2/docs/api/"

Doesn't work.  Instead I get:
[Javadoc] javadoc: Error reading file: weird/package-list
where wierd is some packgage name in my project that doesn't even contain a package-list file.

I thought I read a while back that this was fixed.

-- Josef


Re: javadoc linkoffline???

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "J" == tcmits1  <tc...@cs.com> writes:

 J> version?  I just downloaded and installed a nightly build dated
 J> 8-4-2000, by running first bootstrap.sh then build.sh

 J> when I type ant -version I get Ant version 1.0-rc1 compiled on
 J> July 12 2000 Which points to some error in Ant or my build of Ant.

Or you are invoking another Ant than you've built.

The date reported by Ant is set from the clock of your machine - so
you may know whether this is right or not. But 1.0-rc1 is the version
that was in build.xml before the 1.1 release.

If you get errors re JUnit, you must have a post 1.1 version on the
other hand. Go and search for an old ant.jar in CLASSPATH.

The bug may very well still be present in the latest nightly build,
Javadoc has been modified again today and is expected to work now.

Stefan

Re: javadoc linkoffline???

Posted by tc...@cs.com.
version?

I just downloaded and installed a nightly build dated 8-4-2000, by running first bootstrap.sh then build.sh

when I type ant -version I get
Ant version 1.0-rc1 compiled on July 12 2000
Which points to some error in Ant or my build of Ant.  I didn't see any errors except for the missing classes, like junit.   I also don't find a log of the install process.

Anyway, the linkoffline is still not working.

--- Josef


ant-dev@jakarta.apache.org wrote:
>
> >>>>> "J" == tcmits1  <tc...@cs.com> writes:
> 
>  J> Doesn't work.  Instead I get: [Javadoc] javadoc: Error reading
>  J> file: weird/package-list where wierd is some packgage name in my
>  J> project that doesn't even contain a package-list file.
> 
> Which version of Ant are you using? I've modified the Javadoc task
> some days ago and maybe I've broken it.
> 
> Stefan
> 

Re: javadoc linkoffline???

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "CM" == Conor MacNeill <co...@m64.com> writes:
 CM> The problem is that javadoc1 is set in the init() method of the
 CM> Javadoc task but the attributes are configured before init is
 CM> called.

But it only uses static methods and attributes in Project. I made
javadoc1 a class attribute now and set it at the declaration -
removing init altogether.

Stefan

Re: javadoc linkoffline???

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "CM" == Conor MacNeill <co...@m64.com> writes:

 CM> The problem is that javadoc1 is set in the init() method of the
 CM> Javadoc task but the attributes are configured before init is
 CM> called.

Ouch.

I'm going to move those checks out of the setters, thanks for the
hint.

Stefan

RE: javadoc linkoffline???

Posted by Conor MacNeill <co...@m64.com>.
Stefan,

The problem is that javadoc1 is set in the init() method of the Javadoc task
but the attributes are configured before init is called. Changing that order
would break other things, so we can either move the jaavdoc1 checks out of
the set methods or try to setup javadoc1 earlier (override setProject?)

Thoughts?

Conor


> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@bost.de]
> Sent: Friday, 4 August 2000 16:57
> To: ant-dev@jakarta.apache.org
> Subject: Re: javadoc linkoffline???
>
>
> >>>>> "J" == tcmits1  <tc...@cs.com> writes:
>
>  J> Doesn't work.  Instead I get: [Javadoc] javadoc: Error reading
>  J> file: weird/package-list where wierd is some packgage name in my
>  J> project that doesn't even contain a package-list file.
>
> Which version of Ant are you using? I've modified the Javadoc task
> some days ago and maybe I've broken it.
>
> Stefan
>


Re: javadoc linkoffline???

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "J" == tcmits1  <tc...@cs.com> writes:

 J> Doesn't work.  Instead I get: [Javadoc] javadoc: Error reading
 J> file: weird/package-list where wierd is some packgage name in my
 J> project that doesn't even contain a package-list file.

Which version of Ant are you using? I've modified the Javadoc task
some days ago and maybe I've broken it.

Stefan