I downloaded hudson generic .war hudson.war from http://www.eclipse.org/hudson/download.php
and placed in some path.
On passing command
java -jar hudson.war
It extracts / unpacks / unzips hudson.war in .hudson directory under my home directory.
I want to extract / unpack / unzip under a directory / folder which I can specify.
Can someone please help ?
I understand, such situation arises when you have limited space under your home directory.
Here are the steps and explanation for Windows and Linux
Windows:
By default
java -jar hudson.warwill extract .war on path%USERPROFILE%\.hudsonFor example in my case, in command terminal:This is the path where
hudson.waris extracted. For extracting in userdefined directory, you need to setHUDSON_HOMEenvironment variableTo set persistent environment variables: Right click
My Computer==>Properties==>Advanced system settings==>Environment Variables==> System variablesNew. Make sure thatHUDSON_HOMEis not already there. If yes, delete it. AddHUDSON_HOME:<your specified directory>Now open/restart command terminal. Check
echo %HUDSON_HOME%it must be updatedHUDSON_HOMENow invoke
java -jar hudson.warfrom the path wherehudson.waris there. You will notice that extraction is in specified directory.Linux:
By default extraction happens in
$HOMEYou need to set$HUDSON_HOMEBased on your SHELL:cshorbashcsh:
bash:
I hope this will help.