On Wed, 22 Dec 2004, Peter W. Draper wrote:
> On Wed, 22 Dec 2004, Mark Taylor wrote:
>
> > On Wed, 22 Dec 2004, Peter W. Draper wrote:
> >
> > > Mark,
> > >
> > > tried to build this and it froze while trying to access the WSDL
> > > downloads, so I've added some changes to support web proxies in the build
> > > file. Those of us with proxy servers will need to add suitable
> > > http.proxyHost and http.proxyPort properties to ~/.stardev.properties.
> > >
> > > Peter.
> >
> > OK. Another possibility I was considering is to take a copy of the WSDL
> > and store it in the source tree, so it doesn't need a network
> > connection at build time. In this case it would maybe make sense
> > to have a test target that checked the WSDL hadn't changed.
>
> When things settle down that might be a better idea (awful thought but
> perhaps this should be dealt with like the JNIAST/HDS shareable libraries,
> which also means we'll change our minds a few times yet).
Peter,
I've rejigged the way that the VO package is built a bit. It now
keeps a local copy of the WSDL file (vo/src/wsdl/registry.wsdl)
which it uses to autogenerate the java sources before compiling them.
I've also put in an explicit <uptodate> check so that it doesn't
rebuild if the autogenerated source looks like it's newer than
the wsdl (this was just because I was getting bored waiting for the
build). One of the unit tests now takes a look at the remote
WSDL and fails if it no longer matches the local copy.
Thus there is no HTTP connection required at build time, so I've
taken your proxy directives out of the <axis-wsdl2java> task.
An HTTP connection is required at test time - I'm not sure if the
<junit> task sets proxies up as currently configured, so can you test
this to see if it works and if not fiddle with the proxy setup
in the test target?
cheers
(and happy new year)
Mark
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|