ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Stulsky" <vitaly_stul...@yahoo.com>
Subject May be a routine question, may be not.
Date Tue, 11 Apr 2000 09:00:19 GMT
Hi All!

I've joined the mailing list and already have a couple of questions about
Ant.
At first I wish to thank everybody who took part in development and
designing
this extremely good tool.
Now to the questions:
My project (for large company) consist of 3 independent applications.
This applications use the same root packages (com.companyname.*). Also
there are a lot of reusable packages, which is used by different projects.
According to this I found three possibilities to make my project:
a) Run Javac once to make all tree projects and then add to apropriate
project jar file
only classes it needs.
b) Run Javac as many times as many packages in appropriate project.
c) Extend Javac {srcdir} tag to support multiple dir names.

I reject the first two cases cause it makes my Ant makefile unsupportable.
When I started to extend javac tag I noticed  that it is the problems in
defference
between directories for compilation (enumeration of java files to compile)
and
-sourcepath javac parameter. For example: I wish to run javac something like
this
javac -sourcepath "./src" -d "built" src/com/mycompany/package1/*.java
This is the simplest case cause an ideal implementation has to enumerate
files from
different (not all) packages under com/mycompany and compile them with one
javac call.

With this  assumptions I extend javac tag with <sourcepath="">. Also I
extend the srcdir tag
to support multiple directory names (separated by ";").
Now eveything works OK.

What do you think about this practice?
Can you suggest other ways of this problem solution?

Also I have proposition:
What about plugins for IDL compilers, and CORBA related tools  from other
vendors?
For example JavaORB idl compiler uses JavaORB.compiler.IdlCompiler class.
Now to extend Ant necessary edit taskdef/defaults.properties from jar file
and then
pack it back to the same location. May be plugin.properties will be better
for this
purposes? If someone interested in this extestions I can develop tags for
known ORBs,
or may be this tags already developed?

Best Regards,
Vitaly Stulsky.




__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Mime
View raw message