Re: Antlet dependencies

Nick Chalko <[email protected]>
Newsgroups gmane.comp.krysalis.devel
Message-ID <[email protected]>
Michael Homeijer wrote:

> Hi,
>  
> I was planning on splitting the java antlet in a java, javadoc and 
> dist antlet to keep the antlets simple and to keep the changes when 
> switching to another compiler (eg. aspectj) minimal.
>  
> I see two ways to handle the dependencies between the antlets.
> 1. In the main build.
>  
> ie. target name="main.package" depends="java.compile, dist.package"
>  
> or
>  
> 2. In the antlets itself
>  
> The dist antlet gets a property ${compile.antlet.impl} that specifies 
> the antlet that will perform the compile and a property 
> ${compile.antlet.task} that specifies the task that will perform the 
> compile.


Dist can just assume there is a compile target somewhere.  If you need 
overrides the main can do it.
However I don't see the point of moving out javadoc, and jar from the 
java antlet. 
javadoc, and jar are java specific and I think they can stay. 
A general dist target that is not java specific would be useful.


R,
Nick




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.