Dev - Component Build.xml: "prepare" Target Dependency

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dev - Component Build.xml: "prepare" Target Dependency

Vinay Agarwal

Hello,

 

Is there a reason why, in the component build.xml, the “prepare” target depends upon “clean-lib” as follows?

<target name="prepare" depends="clean-lib">

This forces recompilation of every java source whether it was changed or not. Can I suggest changing it to the following?

            <target name="prepare" depends="init">

This will not recompile unnecessarily but still will ensure the directory structure.

 

Regards,

Vinay Agarwal


 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Component Build.xml: "prepare" Target Dependency

David E. Jones

The clean-lib target does not cause a recompile. It does cause a re-
build of the jar files only. This is necessary because certain things  
can change that go into jars that ant doesn't pick up on as  
dependencies causing it to rebuild the jar files as needed. These are  
mainly non-compiled resources.

So, no, this can't change.

-David


On Feb 6, 2006, at 12:08 PM, Vinay Agarwal wrote:

> Hello,
>
>
> Is there a reason why, in the component build.xml, the “prepare”  
> target depends upon “clean-lib” as follows?
>
> <target name="prepare" depends="clean-lib">
>
> This forces recompilation of every java source whether it was  
> changed or not. Can I suggest changing it to the following?
>
>             <target name="prepare" depends="init">
>
> This will not recompile unnecessarily but still will ensure the  
> directory structure.
>
>
> Regards,
>
> Vinay Agarwal
>
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

smime.p7s (3K) Download Attachment