|Self-replacing "tags"(?) on save or build. [message #755065]
||Mon, 07 November 2011 09:21
| Ruben Goethals
Registered: November 2009
I have been searching for hours, but probably with the wrong search terms. So I'll call it "tags" for now, but might be wrong.
What I'd like, is that, before building (or after saving), certain "tags" in my content are automatically replaced.
Example -> In my file I have the following:
Now I need that @versionqualifier@ changes into a certain sequential number before I build (or after saving).
var version = 1.1.@versionqualifier@
I would like to have this feature in any editor type (just as task tags work in any editor/perspective/file type).
Anyway, anyone knows if this is possible with eclipse (plugins)?
In the above example there might be a fault for save-replacing, because once @versionqualifier@ is replaced, the tag itself is gone, and the next time I save it won't be replaced anymore. But I want it to change every time! So maybe something as following is needed:
With building this wouldn't but could be necessary, depending how it's done.
var version = 1.1.1230 //@versionqualifier:1230@
I prefer it's done on building, but just in case.
Powered by FUDForum
. Page generated in 0.02932 seconds