Self-replacing "tags"(?) on save or build. [message #755065] |
Mon, 07 November 2011 04:21  |
Eclipse User |
|
|
|
Hello everyone,
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:
var version = 1.1.@versionqualifier@ Now I need that @versionqualifier@ changes into a certain sequential number before I build (or after saving).
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)?
Note:
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:
var version = 1.1.1230 //@versionqualifier:1230@ With building this wouldn't but could be necessary, depending how it's done.
I prefer it's done on building, but just in case.
Thanks!!!!!!
|
|
|
|
Re: Self-replacing "tags"(?) on save or build. [message #756002 is a reply to message #755268] |
Thu, 10 November 2011 08:01  |
Eclipse User |
|
|
|
Thanks Raji!
I'll have to read up (better) on it for now, but already this: I don't use svn or cvs because I am the only one coding on this particular project, I only use a build system. I hope it can be done without these.
But at least I know the key terms and some more now!
Though feel free (anyone) to add any more interesting stuff.
P.S. I also found a (90%) solution in Nant*, but it's XML editing and very headchewing/timeconsuming!
* Nant = standalone builder for Emonic ( = C# .Net/Mono eclipse project)
Thanks again!
|
|
|
Powered by
FUDForum. Page generated in 0.07771 seconds