On Mon, 22 Sep 2003 14:16:58 -0700, Ian Clarke wrote:

> On Mon, Sep 22, 2003 at 10:05:20PM +0100, Toad wrote:
>> Did you compile fred from source?
>> You NEED to ant clean before you ant.
> 
> What would be the cost of just removing all final variables from Fred so 
> that this time-consuming recompile is no-longer necessary?

what are the costs of just adding a <depend> task to your compile target?
That one should delete all .class files referencing a final literal value
from a .java file that has to be recompiled.

This SHOULD fix the issue, if it does not, complain to the ant authors.

However, it will surely increase build time when you change a class which
is references everywhere, but it should be way less than a complete
rebuild. (as long as you do not have a final literal which is referenced in
*every* class...). In that case you could still think of making it
non-final or non-literal.

patch attatched,

mihi

--- build.xml.orig      2003-09-23 19:22:22.000000000 +0200
+++ build.xml   2003-09-23 19:34:36.000000000 +0200
@@ -92,6 +92,11 @@
   <target name="compile" depends="init"
     description="Build Freenet">
     <!-- Compile the java code from ${src} into ${build} -->
+    <depend destdir="${build}" srcdir="${src}" closure="yes">
+       <exclude name="**/*Test*.java"/>
+       <exclude name="**/SSL.java"/>
+       <classpath path="${lib}/freenet-ext.jar"/>
+    </depend>
     <javac destdir="${build}"  target="1.1" debug="on">
        <src path="${src}"/>
        <exclude name="**/*Test*.java"/>

_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to