How do I edit the built path of deploytool?
Show older comments
I use the deploytool programmatically (i.e. without opening the GUI) by using the command
deploytool -package project_name.prj
I modified all the hardcoded paths in the .prj file by replacing the "C:\username\..." with ${PROJECT_ROOT} to enable this command to run on other computers as well.
What I want to do now is to modify the built path. I do not want the path where the .exe files are generated to be in the ${PROJECT_ROOT}, nor do I want a hardcoded path solution so I can execute the command on other computers as well.
More specifically my question is, Is there an equivalent path variable similar to ${PROJECT_ROOT} that controls the built path, e.g. ${BUILT_PATH}? If not, how can I create such a path variable?
Thank you in advance,
A.
Answers (1)
Prem Ankur
on 19 Oct 2018
0 votes
There are two ways you can go about doing this:
- Use a path that is consistent on all machines. This could be a UNC (Windows) or Full network path (Linux)
- Use a relative path to {PROJECT_ROOT}. If you are using "deploytool -package projectFile.prj" then in the project file you can use {PROJECT_ROOT}\..\..\path\to\desired\directory
Please note that System environment variables are not available to be used in the paths.
1 Comment
Andreas Prokopiou
on 22 Oct 2018
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!