dev@glassfish.java.net

Re: stealing jsp and servlet api jars for my source build

From: Jane Young <Jane.Young_at_Sun.COM>
Date: Tue, 01 Dec 2009 13:05:56 -0800

Hi Bobby,

response inline.

Bobby Bissett wrote:
> Hi all,
>
> My module has a dependency on jsp-api.jar and servlet-api.jar (it
> needs actual jars with these names). Can I use the jars that have
> already been built by other modules? For instance, grabbing the output
> of the jsp.xml build and copying that where my ant script wants it as
> jsp-api.jar?
Yes. If you don't use Maven, you will need to copy the jar file from
the local repository.
>
> I see that it works technically, but wanted to check if there were any
> objections to making my build order-dependent in the process.
>
> Since the jsp build depends on servlet-api, I should be able to grab
> that as well after jsp.xml has run. But I don't see where the servlet
> code is being built at all. Can I just depend that it will be in the
> local maven repo after jsp runs and grab it from there?
javax.servlet:3.0 is built in v3 workspace. Is it possible to depend
on javax.servlet instead of servlet-api:2.5?
If no, then we'll need to build servlet-api:2.5 from source.

To build javax.servlet:30, we'll need to add this module in
v3-build.xml. This build script is for building individual v3 modules
since some external modules have dependencies on them.

There is a bootstrap build.xml that invokes the module xml files. So
your source build script should come after jsp.xml etc.

Thanks,
Jane
>
> Thanks,
> Bobby
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>