Bug 276744 - Request: Storing .kdev4 file in a template subdirectory
Summary: Request: Storing .kdev4 file in a template subdirectory
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Application templates (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: 4.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-29 12:46 UTC by Bastian
Modified: 2012-03-16 15:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch for the requested feature (265 bytes, patch)
2011-06-29 12:48 UTC, Bastian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bastian 2011-06-29 12:46:54 UTC
Version:           git master (using KDE 4.6.4) 
OS:                Linux

Hi,
we are using project layouts like this:

project/
 - branches/
   - 0.0.1/
     - bla.kdev4
     - src/
     - ...
 - trunk/
   - bla.kdev4
   - src/
   - ...

As I created an application template for this layout, I recognized that kdevelop expect the .kdev4 file in the root project directory. for new projects, with this layout, the root folder is project/trunk/. So I need the possibility to store the template .kdev4 file in the trunk directory

I apply this feature to kdevplatform/plugins/appwizard/appwizardplugin.cpp. the attached patch adds 6 lines to appwizardplugin.cpp. I hope you can add this patch to the master branch.

Thanks and bye

Reproducible: Always



Expected Results:  
Storing the .kdev4 file in ONE template subdirectory.
Comment 1 Bastian 2011-06-29 12:48:07 UTC
Created attachment 61445 [details]
patch for the requested feature
Comment 2 Milian Wolff 2011-07-04 15:42:36 UTC
please repost this patch on git.reviewboard.kde.org and/or use git diff for the patch creation, so we see some context instead of only the raw changes.
Comment 3 Bastian 2011-07-05 20:32:20 UTC
Hi,

the patch is posted on git.reviewboard.kde.org. Here the link: https://git.reviewboard.kde.org/r/101853/
Comment 4 Milian Wolff 2012-03-16 15:55:35 UTC
Git commit d2ac0610857aa4f859d71c74fe3605eac5732a91 by Milian Wolff.
Committed on 16/03/2012 at 16:54.
Pushed by mwolff into branch 'master'.

Loop through the new project directory and try to detect the first .kdev4 file.

If one is found this file will be used. So .kdev4 file can be stored in any
subdirectory and the project templates can be more complex.
REVIEW: 101853

Many thanks to Bastian Schmidt for this patch!

M  +11   -1    plugins/appwizard/appwizardplugin.cpp

http://commits.kde.org/kdevplatform/d2ac0610857aa4f859d71c74fe3605eac5732a91