-
Notifications
You must be signed in to change notification settings - Fork 18
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
Allow the temp directory to be overridden #31
Comments
Resolved by commit c0e4107. UsageTo override the temp directory in the same PowerShell window that you will execute If you are using FilesUntil the fix is released the .nupkg file is at https://dl.dropbox.com/u/40134810/PackageWeb/PackageWeb.1.1.7.nupkg The new version of publish-interactive.ps1 is available at https://raw.github.com/sayedihashimi/package-web/c0e4107479de2885aabf4ed8ccceb4cc31ebaea9/Powershell/Publish-Interactive.ps1 |
I can't seem to get this to work as expected. I added the following to the PublishConfiguration.ps1 (along with the other $settingsFromUser parameters): $pkgWebOptions =@() When the code executes, I get the following output: PS C:\dev\Learning.com\Platform_Trunk\src\EasyTech\Platform Web\obj\Dev\Package> .\Publish-Interactive.ps1 As you can see, it still uses the value from $env:Temp (line 671 in Publish-Interactive.ps1). For some reason, $pkgWebOptions is null when the following code on line 673 is evaluated: if($pkgWebOptions -and $pkgWebOptions["tempFolder"]){ |
I've got a bug here, thanks for letting me know. The fix is straight forward but I don't have the time at this minute to make it. In the mean time in the publishconfiguration.ps1 you can declare the temp folder in the following manner.
|
I have fixed this. You can now override the temp folder used by adding the following
You can find a drop for testing at https://dl.dropbox.com/u/40134810/PackageWeb/issue-31/PackageWeb.zip. Please re-open if you still have issues. |
Nice! Thanks! |
U have a preference as to which bug I work on next? |
Definitely #48. We can't get PackageWeb to work at all in our automated CI environment. Works fine though when executing it manually. |
OK cool, I'll look into that one next. I'm already about half way through #42 so will finish that one first, then move on to your issue. That one may take some time, I get the feeling it won't be an easy fix :( |
In some cases it would be useful to allow the temp directory to be overridden. Currently it just used the %temp% directory.
The text was updated successfully, but these errors were encountered: