Is it possible to generate/update MATLAB toolbox project file (*.prj) programmatically?
17 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have created a custom toolbox. Now I'm trying to have a continuous development process that would automatically package the toolbox every midnight (if any of the files have changed). I'm trying to understand if it would be possible to update the toolbox project file programmatically - to change toolbox version, project file list, excluded file list, etc. I can then use the updated prj file to package the new toolbox.
Cheers,
sunny
0 件のコメント
回答 (3 件)
Sean de Wolski
2018 年 2 月 23 日
https://www.mathworks.com/help/releases/R2017b/matlab/ref/matlab.addons.toolbox.packagetoolbox.html and friends.
I don't know of a documented way to generate the prj file the first time.
7 件のコメント
Harley Day
2018 年 9 月 10 日
編集済み: Harley Day
2018 年 9 月 10 日
Yes I've been thinking the same thing. There doesn't seem to be a way to programatically update a matlab project file. This would be useful for the purposes of code maintenance from github. My continuous integration server could then be configured to build and distribute new releases of the toolbox when I commit to the master branch.
Sunny Talekar
2019 年 3 月 1 日
4 件のコメント
Eric Hoffmann
2019 年 10 月 3 日
Hi Sunny,
I too would be interested in looking at your code.
Thanks,
Eric
Sly Knight
2022 年 7 月 14 日
Use readstruct and writestruct.
project = readstruct(fullfile(path,project_name.prj),'FileType','xml');
project.configuration.param_version = project_file.configuration.param_version + 1;
writestruct(project,fullfile(path,project_name.prj),'FileType','xml')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!