Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
templates
gc
Created
I just created a new file template XXXClass and have difficulty in specifying $Id$ in the template. I don't want idea to prompt a value for $Id. What should I do?
I just created a new file template XXXClass and have difficulty in specifying $Id$ in the template. I don't want idea to prompt a value for $Id. What should I do?
I think $$Id$$ will do it.
Ciao, Gordon
-- Gordon Tyler (Software Developer) Quest Software <http://java.quest.com/> 260 King Street East, Toronto, Ontario M5A 4L5, Canada Voice: 416-643-4846 | Fax: 416-594-1919
Yes, as Robert has already noticed, just escape the leading $ with backslash and the resulting text won't be interpreted as a variable reference. Eugene
gc wrote:
I think $$Id$$ will do it.
Ciao,
Gordon
--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919
sadly, it doesn't.
I have this in a "JavaDocHeader" include for my file template:
@version $Id: $.java,v 0.0.0.0 $ $ $ Exp $
This works for me.
It works in the built-in templates: Class, Interface.
I have $Id$, $Log$ in them and don't have to enter values for Id, Log.
But in the XXXClass template I created, $Id$ is treated as an input field.
gc wrote:
taking a guess and not sure this is what you're trying to do, perhaps
escaping the characters?
\$Id\$
maybe that will put it in as is?
I'm assuming you're trying to do this for CVS?
R
Yes, as Robert has already noticed, just escape the leading $ with backslash
and the resulting text won't be interpreted as
a variable reference.
Eugene
"gc" <no_mail@jetbrains.com> wrote in message
news:20578913.1062619619507.JavaMail.itn@is.intellij.net...
specifying $Id$ in the template. I don't want idea to prompt a value for
$Id. What should I do?
\$Id\$ works partially. "Id" is not treated as an input but in the generated source code, "\" is not removed.
FYI, I'm using build 915.
gc wrote:
That sounds like a bug.
R