Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refresh should have an option to refresh in the project directory #2

Closed
thomasdziedzic opened this issue Jul 5, 2014 · 2 comments
Closed

Comments

@thomasdziedzic
Copy link

Currently it downloads to a temp folder under unpackaged.
This works, but why not just refresh to the folder the package.xml is in?

@neowit
Copy link
Owner

neowit commented Jul 5, 2014

The temp folder is used mainly for safety reasons.
if we download directly into Project directory then it will overwrite all changed files unconditionally and, if used with text editor plugin like vim-force.com, the plugin will have no chances to track changes, backup files or warn user about the changes they are about to lose.

Also, SFDC returns default package name 'unpackaged' as opposed to 'src', so direct copy would not be possible anyway. I can not remember in details but think with salesforce Ant plugin you get different top folder names depending on the config. I could theoretically do the same in tooling-force.com, but this may cause problems for managed packages which I do not want to debug.

For unattended cases - taking into account that --tempFolderPath is user defined - it shall be trivial to add a line or two to copy files to the relevant destination in the script which calls tooling-force.com.

@thomasdziedzic
Copy link
Author

Thanks. That was enlightening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants