templates

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?

0
8 comments
Avatar
Permanently deleted user

gc wrote:

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

0
Avatar
Permanently deleted user

sadly, it doesn't.

0
Avatar
Permanently deleted user

I have this in a "JavaDocHeader" include for my file template:

  • @version $Id: $.java,v 0.0.0.0 $ $ $ Exp $


This works for me.


0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

gc wrote:

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.

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

0
Avatar
Permanently deleted user

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...

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?


0
Avatar
Permanently deleted user

\$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.

0
Avatar
Permanently deleted user

gc wrote:

\$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.


That sounds like a bug.

R

0

Please sign in to leave a comment.