Summary: | variables are replaced in source file templates | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Georg Baum <georg.baum> |
Component: | file create | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.0.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Georg Baum
2004-03-05 09:19:59 UTC
I just noticed: The generated helloworld.cpp file does contain the variables, not the substituted values. So it seems they are replaced in the wrong file ;-( Also I used a CVS $Id:$ tag in the template. Maybe this confused kdevelop? I must misunderstand something, from what I can tell, what you describe works fine. Any of $EMAIL$, $AUTHOR$, $VERSION$, $DATE$, $YEAR$, $MODULE$ and $FILENAME$ that you add to the template(s) presented in the project creation wizard will be replaced by the respective values _when you create a new file_ using File->New. That is, when a user wants a new file, which as you say could well be B. Gates in 2019. What does not work correctly, is that any variables you add in the wizard will not be substituted in the files created from the _project_ template. This is a bug. CVS commit by dagerbo: Bug galore! BUG: 90070 BUG: 76800 BUG: 83191 BUG: 88229 BUG: 89149 M +29 -5 appwizarddlg.cpp 1.112 M +3 -3 kdevlicense.cpp 1.3 |