Skip to content

Instantly share code, notes, and snippets.

@chaim1221
Created June 28, 2016 20:03
Show Gist options
  • Save chaim1221/939588f6ebb5fa976e03835c0153fd96 to your computer and use it in GitHub Desktop.
Save chaim1221/939588f6ebb5fa976e03835c0153fd96 to your computer and use it in GitHub Desktop.
> C:\tools\apache-maven-3.3.3\bin\mvn clean install
> choco install gradle
!!ATTENTION!!
The next version of Chocolatey (v0.9.9) will require -y to perform
  behaviors that change state without prompting for confirmation. Start
  using it now in your automated scripts.
  For details on the all new Chocolatey, visit http://bit.ly/new_choco
The default install location has been changed to 'C:\ProgramData\chocolatey'.
  This install will be updated to that location in the next version. It
  is strongly suggested you move this installation to the new location
  as soon as possible to limit write access from all users. Do not forget
  to update PATH & ChocolateyInstall environment variables.
Chocolatey (v0.9.8.33) is installing 'gradle' and dependencies. By installing you accept the license for 'gradle' and ea
ch dependency you are installing.
chocolatey v0.9.9
Chocolatey v0.9.9
Chocolatey is unpacking required files for use. Overwriting? True
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
  Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
  before you can use choco.
Adding Modify permission for current user to 'C:\ProgramData\chocolatey'
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
  (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
  and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
  upgrading from a version of Chocolatey less than 0.9.9.
  'Batch file could not be found' is also safe to ignore.
  'The system cannot find the file specified' - also safe.
Chocolatey v0.9.9
Chocolatey is unpacking required files for use. Overwriting? True
Ensuring 'C:\ProgramData\chocolatey\lib\chocolatey' exists.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
Attempting to upgrade 'C:\Chocolatey' to 'C:\ProgramData\chocolatey'.
WARNING: Copying the contents of 'C:\Chocolatey' to 'C:\ProgramData\chocolatey'.
This step may fail if you have anything in this folder running or locked.
If it fails, just manually copy the rest of the items out and then delete the folder.
!!!! ATTN: YOU WILL NEED TO CLOSE AND REOPEN YOUR SHELL !!!!
Updating 'Machine' PATH to reflect removal of 'C:\Chocolatey'.
Updating 'User' PATH to reflect removal of 'C:\Chocolatey'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
WARNING: This action will result in Log Errors, you can safely ignore those.
You may need to finish removing 'C:\Chocolatey' manually.
Attempting to remove 'C:\Chocolatey'. This may fail if something in the folder is being used or locked.
WARNING: Was not able to remove 'C:\Chocolatey'. You will need to manually remove it.
get-childitem : Cannot find path 'C:\chocolatey\lib\chocolatey.0.9.9' because it does not exist.
At C:\chocolatey\chocolateyinstall\functions\Get-ChocolateyBins.ps1:17 char:16
+       $files = get-childitem $packageFolder -include *.exe -recurse
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\chocolatey\lib\chocolatey.0.9.9:String) [Get-ChildItem], ItemNotFoun
   dException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
gradle v2.14
Finished installing 'gradle' and dependencies - if errors not shown in console, none detected. Check log for errors if u
nsure.
The batch file cannot be found.
> choco install gradle
Cannot find file at '../chocolateyInstall/chocolatey.cmd' (C:\chocolatey\chocolateyInstall\chocolatey.cmd). This usually
indicates a missing or moved file.
> choco version
Cannot find file at '../chocolateyInstall/chocolatey.cmd' (C:\chocolatey\chocolateyInstall\chocolatey.cmd). This usually
indicates a missing or moved file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment