Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Self-replacing "tags"(?) on save or build.
Self-replacing "tags"(?) on save or build. [message #755065] Mon, 07 November 2011 09:21 Go to next message
Ruben Goethals is currently offline Ruben GoethalsFriend
Messages: 11
Registered: November 2009
Junior Member
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 #755268 is a reply to message #755065] Mon, 07 November 2011 20:45 Go to previous messageGo to next message
Raji Abraham is currently offline Raji AbrahamFriend
Messages: 13
Registered: October 2010
Junior Member
I don't know of any eclipse plugin that does this. But this is typically done by the source code version control system and it is referred to as 'Keyword Expansion/Substitution'. Some links to how Subversion does it:Quote:

http://durak.org/sean/pubs/software/version-control-with-subversion-1.6/svn.advanced.props.special.keywords.html

http://blog.gorges.us/2009/03/how-to-enable-keywords-in-eclipse-and-subversion-svn/

[Updated on: Mon, 07 November 2011 20:45]

Report message to a moderator

Re: Self-replacing "tags"(?) on save or build. [message #756002 is a reply to message #755268] Thu, 10 November 2011 13:01 Go to previous message
Ruben Goethals is currently offline Ruben GoethalsFriend
Messages: 11
Registered: November 2009
Junior Member
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!
Previous Topic:ATG development tool for eclipse
Next Topic:What Should I do?
Goto Forum:
  


Current Time: Fri Apr 26 20:32:28 GMT 2024

Powered by FUDForum. Page generated in 0.08364 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top