• Post Reply Bookmark Topic Watch Topic
  • New Topic

compiling multiple packages  RSS feed

 
Peter Straw
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to compile all classes in a web application using just one command line javac ...
even if the classes are in different packages, or do you have to compile each package separately?
Thanks.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot do that easily, unless you're under Unix where you can pipe the output of a find command to the java compiler.
Try to use Ant to build you web application. It's very easy to setup and you can write a build script that compile files, generate javadoc, create jar/war/ear files, ftp, deploy, etc...
Good luck
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!