Bug 276744

Summary: Request: Storing .kdev4 file in a template subdirectory
Product: [Applications] kdevelop Reporter: Bastian <bastian.leyer>
Component: Application templatesAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: git master   
Target Milestone: 4.2.3   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: patch for the requested feature

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