aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant Task to precompile JSP for Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant Task to precompile JSP for Weblogic" Watch "Ant Task to precompile JSP for Weblogic" New topic
Author

Ant Task to precompile JSP for Weblogic

Gareth Western
Ranch Hand

Joined: Apr 07, 2004
Posts: 45
Hi, I'm trying to create an Ant task to execute the following command:



Now, the command works fine when run on its own from a command prompt, but I just can't get Ant to do it! I've tried using both the Java and Exec tasks, as follows:



AND



When I execute the "precompile" task weblogic.jspc complains like so:


When I execute "precompile2" it just says:


This is driving me crazy as I can't find anyone else who's had the same problem

Am I missing something blatently obvious here??

Note: I added a few extra linebreaks in the code above, in an attempt to make everything a bit more readable on small-res screens.
[ November 16, 2004: Message edited by: Gareth Western ]
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
I use the wlappc command as I also sometimes have EJBs. My ant file has:


This compiles anything in the build directory that needs it. See the docs for more options.


<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
Gareth Western
Ranch Hand

Joined: Apr 07, 2004
Posts: 45
Thanks! I'll give that task a shot.

Just to answer my own question, I also found that the Ant task in this thread worked a treat.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Ant Task to precompile JSP for Weblogic