Automated building of NSAPI for Web Server 7 Tech preview 3

Hello, I have a nsapi plug-in and a perl script that can automatically build the plugin on all Web Server 6.1 supported platforms. This script depends on setup/installed.pkg to get the version of the server and plugins/nsapi/examples/Makefile to get the build flags for a given platform.

In Sun Java System Web Server 7 Tech Preview 3 setup/installed.pkg is missing and the Makefile is in totally different directory. Also to get the Makefile, the server must be installed with "Examples" and for the include and lib directories you must have "Dev support".

My question is: will setup/installed.pkg reappear in the final version of the server?

And second question/feature: Could the life of the developers become easier if there is some unified tool that can be used the get the important information about the server like version, build flags, bin;lib;include directories, what packages/features are installed/enabled and so on. Maybe something like Apache's apxs?

[991 byte] By [N.Ananiev] at [2007-11-26 10:58:05]
# 1

Sorry, no, setup/installed.pkg won't be making a reappearance. (It was never a documented or supported interface.)

Unlike Apache's mod interface, Web Server's NSAPI interface is binary compatible between versions. You don't need to build your plugins against any particular version of Web Server. Instead, you can build the plugin once and distribute the resulting binary. For example, plugins built against Netscape Enterprise Server 3.0 will run just fine in Sun Java System Web Server 7.0. As a result, there probably won't be anything like apxs bundled with the server anytime soon.

elving at 2007-7-7 3:11:27 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Yes but it's an open source project and anyone should be able to build the nsapi from source. I guess I can live without installed.pkg, but is there an easy and portable way to get the server's version? For example parse some file or something like that? Or I have to guess that from the directory structure (I don't like this very much)?

Message was edited by:

N.Ananiev

NAnaniev at 2007-7-7 3:11:27 > top of Java-index,Web & Directory Servers,Web Servers...
# 3
You can get the version of the server using the CLI or the GUI present in the technology preview 3. the following command will show the version on CLI wadm --versionIn the Admin GUI, click on the Version button to get this information.
irfan252 at 2007-7-7 3:11:27 > top of Java-index,Web & Directory Servers,Web Servers...
# 4
Thanks, that would be sufficient for now.I guess for future service packs the line from wadm --version would read something like "Sun Java System Web Server 7.0-SP2 ..." ?
NAnaniev at 2007-7-7 3:11:27 > top of Java-index,Web & Directory Servers,Web Servers...