mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
Windows service installer wasn't handling the situation correctly if Hudson is started at the installation target.
(<a href="http://www.nabble.com/how-to-setup-hudson-%2B-cvsnt-%2B-ssh-as-a-service-on-windows--tp20902739p20902739.html">report</a>) git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13734 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
1283b8a2ab
commit
47d6856e31
1 file changed
+2
-1
@@ -96,7 +96,8 @@ public class WindowsInstallerLink extends ManagementLink {
|
||||
// copy files over there
|
||||
copy(req, rsp, dir, getClass().getResource("/windows-service/hudson.exe"), "hudson.exe");
|
||||
copy(req, rsp, dir, getClass().getResource("/windows-service/hudson.xml"), "hudson.xml");
|
||||
copy(req, rsp, dir, hudsonWar.toURL(), "hudson.war");
|
||||
if(!hudsonWar.getCanonicalFile().equals(new File(dir,"hudson.war").getCanonicalFile()))
|
||||
copy(req, rsp, dir, hudsonWar.toURL(), "hudson.war");
|
||||
|
||||
// install as a service
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
|
||||
Reference in new issue
Block a user