freelanceprogrammers.org Forum Index » Java
Compile all packages
Joined: 31 Jan 2002
Posts: 5
Compile all packages
Hi guys! I need help...<br><br>I`d like to be
able to be in a root directory and execute a `javac
*.java` type statement that will compile everything in
this directory as well as packaged files located in
all subdirectories beneath this one without
necessarily knowing all the package names.<br>Can anyone tell
me how to do this? You think a compiler would
include a -s flag or something. Even a batch file script
that recursively finds all subdirectories which I
could then call javac on individually within the script
or anything. I don`t really care how it`s done, just
so I can do it from a DOS command line prompt
without knowing the subdirectory names in advance.<br>If
anyone could help me out, I would be so eternally
grateful! ;)<br><br>Thanks a million!<br>Jennifer
Joined: 31 Jan 2002
Posts: 39
Compile all packages
There are severals ways to approach
this.<br><br>First, several of the IDE`s use a project approach and
allow you to rebuild an entire project from within the
IDE.<br><br>Second, I`d consider Ant, a java based build tool
available at <a href=http://jakarta.apache.org/ant/
target=new>http://jakarta.apache.org/ant/</a><br>This tool
can be run from the command line and requires some
setup but is very flexible. If you are setting up build
environments and you need to be able to move it from the test
to production areas and don`t want to have to recode
everything, this is your choice. It has a learning curve on
it but is well worth the
effort.<br><br>hth,<br>epenak
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







