Buildtool -- new "refreshCache" flag
After thinking about telling Rygle about deleting build.dep to force a recomp, it occurred to me how kludgey that is. So I added yet another flag to the <cc> task, refreshCache="true/false". Setting this to true will force a regeneration of the cache.
But you say "Hey, I don't want to edit build.xml every time I want to clean the cache!" Fair enough. So I added another property to build.xml, "refresh=false". This value is used in the <cc> task as
refreshCache="${refresh}"
To change this, and force a refresh, merely redefine "refresh" on the command line:
btool -Drefresh=true
You should see this near the top of the output:
overloading property 'refresh' = 'true'
This is a workaround to the problem: how to specify a task-specific parameter on the command line. I need to figure this one out eventually.
By the way, did you know that you can do this? Calling btool this way:
btool -Ddist=c:/inkscape
...sends the completed Inkscape distro directly to c:\inkscape :)
Since btool uses URIs, "" or "/" doesn't matter.
Let me know if you have any problems.
But this is a good example of how btool can be modified, and new Tasks added, to perform whatever build functionality we need.
bob
Nice,
Can you alias that, so that -Drefresh=true is just refresh, so you can simply go 'btool refresh'?
participants (2)
-
Bob Jamison
-
rygle