You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Oliver Farrnbacher <fa...@arison.de> on 2002/03/06 10:26:18 UTC

JSPC

Hi,

i'm using tomcat 3.2.3 and 3.2.4 on Linux 2.4.

I'm trying to precompile my JSPs using jspc.sh, but I only get .java 
files, it does not compile the classes.

I'd  like to have the classes compiled to be informed about compiler errors.

Any help ?

Oliver



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: JSPC

Posted by Attila Szegedi <sz...@freemail.hu>.
See below...

----- Original Message -----
From: "Oliver Farrnbacher" <fa...@arison.de>
To: <to...@jakarta.apache.org>
Sent: 2002. március 6. 10:26
Subject: JSPC


> Hi,
>
> i'm using tomcat 3.2.3 and 3.2.4 on Linux 2.4.
>
> I'm trying to precompile my JSPs using jspc.sh, but I only get .java
> files, it does not compile the classes.
>

And it never will... You'll have to feed them to javac yourself.


> I'd  like to have the classes compiled to be informed about compiler
errors.
>
> Any help ?
>

It's best to set up an Ant script to do the jspc-javac process for you. I've
written an article in JavaReport that among other things discusses how to
integrate JSPC compilation into your build process; see

http://www.javareport.com/html/from_pages/article.asp?id=5772&mon=12&yr=2001

It's in the "Compile your JSPs" section of the article; especially take a
look into Listing 3, it has an example fragment of an Ant build file with
changes you have to make color-highlighted.

> Oliver
>

Cheers,
  Attila.

--
Attila Szegedi
home: http://www.szegedi.org



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>