Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant Task to precompile JSP for Weblogic

 
Gareth Western
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gareth Western
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic