Does Flex SDK's mxmlc create a cache file or hash to determine if source code has changed?
My ant buildfiles tell mxmlc.jar to recompile target mxml source. However, if the target mxml source file has not changed, either ant or mxmlc is ignoring the file and will not create a new swf. This is an annoyance because I'm editing files imported by the target mxml. I need it to rebuild when those files change. I'm guessing that the mxmlc is creating a cache file somewhere and comparing the target mxml (or maybe just a hash开发者_如何学运维). Is this what is happening? What's the standard work-around? At the moment, I'm editing the target mxml just to cause a file change.
Does Flex SDK’s mxmlc create a cache file or hash to determine if source code has changed?
All that is required to know if a file has changed or not is to look at the last modification time.
I need it to rebuild when those files change. I'm guessing that the mxmlc is creating a cache file somewhere and comparing the target mxml (or maybe just a hash).
A clean build should work fine if it's not too expensive.
Yes the flex SDKs create a cache file for the compiled byte code for each component.
Here is a link to the livedocs reference regarding the cache file
http://livedocs.adobe.com/flex/3/html/compilers_20.html#153980
As it notes: "One way to force a complete recompile is to delete the cache file from the directory."
So yes you can delete the cache to force a recompile of all files.
You could also just do a "clean" compile
You can also just set the compiler option -incremental=false
精彩评论