Skip to content

Commit 3e88caf

Browse files
committed
Miscellaneous windows installer fixes:
* Ruby's `foo = a||b` is not the same as groovy's `foo = a||b` * Use the correct source path while copying agent files * Setup a systemproperty that javasysmon requires. * Add empty tmp dir for windows agent and server * Align the text box properly
1 parent 45233f5 commit 3e88caf

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

buildSrc/src/main/groovy/com/thoughtworks/go/build/WindowsPackagingTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class WindowsPackagingTask extends DefaultTask {
9797
'REGVER' : "${version}${distVersion.padRight(5, '0')}".replaceAll(/\./, ''),
9898
'JAVA' : 'jre',
9999
'JAVASRC' : jreDir,
100-
'DISABLE_LOGGING' : (System.getenv('DISABLE_WIN_INSTALLER_LOGGING') || 'false'),
100+
'DISABLE_LOGGING' : System.getenv('DISABLE_WIN_INSTALLER_LOGGING') ?: false,
101101
'OUTDIR' : "${project.convention.plugins.get("base").distsDir}/win"
102102
]
103103

installers/go-agent/win/ServerURL.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Type=Label
66
Left=5
77
Right=-5
88
Top=10
9-
Bottom=20
10-
Text=" Enter the URL of your Go Server (must be https, and end with /go). Example https://127.0.0.1:8154/go: "
9+
Bottom=30
10+
Text="Enter the URL of your Go Server (must be https, and end with /go). Example https://127.0.0.1:8154/go: "
1111

1212
[Field 2]
1313
Type=Text
1414
Left=5
1515
Right=-5
16-
Top=30
17-
Bottom=40
16+
Top=40
17+
Bottom=50
1818
Text="127.0.0.1"

installers/go-server/win/config/wrapper-server.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ wrapper.java.additional.7="-Dcruise.config.dir=%CRUISE_SERVER_DIR%\config"
6262
wrapper.java.additional.8="-Dcruise.config.file=%CRUISE_SERVER_DIR%\config\cruise-config.xml"
6363
wrapper.java.additional.9=-DreservedForFuture.1
6464
wrapper.java.additional.10=-DreservedForFuture.2
65-
wrapper.java.additional.11=-DreservedForFuture.3
65+
wrapper.java.additional.11="-DJAVA_SYS_MON_TEMP_DIR=%CRUISE_SERVER_DIR%\tmp"
6666
wrapper.java.additional.12=%JVM_DEBUG%
6767
wrapper.java.additional.13=%GC_LOG%
6868
wrapper.java.additional.14=-DreservedForFuture.4

installers/windows.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,16 @@ task agentWindowsExe(type: WindowsPackagingTask, dependsOn: [':agent-bootstrappe
4444
project.copy {
4545
from(configurations.agentBootstrapperJar.singleFile.path) into(versionedDir()) rename ".*", "agent-bootstrapper.jar"
4646
}
47-
project.copy { from('agent/release/agent.cmd') into(versionedDir()) }
48-
project.copy { from('agent/release/start-agent.bat') into(versionedDir()) }
49-
project.copy { from('agent/release/stop-agent.bat') into(versionedDir()) }
50-
project.copy { from('agent/release/README.md') into(versionedDir()) }
51-
project.copy { from('agent/win/cruisewrapper.exe') into(versionedDir()) }
52-
53-
project.copy {
54-
from(project(':agent').file('properties/log4j.properties')) into("${versionedDir()}/config/log4j.properties")
55-
}
56-
47+
project.copy { from('go-agent/release/agent.cmd') into(versionedDir()) }
48+
project.copy { from('go-agent/release/start-agent.bat') into(versionedDir()) }
49+
project.copy { from('go-agent/release/stop-agent.bat') into(versionedDir()) }
50+
project.copy { from('go-agent/release/README.md') into(versionedDir()) }
51+
project.copy { from('go-agent/win/cruisewrapper.exe') into(versionedDir()) }
52+
project.copy { from(project(':agent').file('properties/log4j.properties')) into("${versionedDir()}/config") }
5753
project.copy { from('go-agent/win/config') into("${versionedDir()}/config") }
5854
project.copy { from('go-agent/win/lib') into("${versionedDir()}/lib") }
55+
56+
project.file("${versionedDir()}/tmp").mkdirs()
5957
}
6058
}
6159

@@ -92,6 +90,8 @@ task serverWindowsExe(type: WindowsPackagingTask, dependsOn: [':server-launcher:
9290

9391
project.copy { from('go-server/win/config') into("${versionedDir()}/config") }
9492
project.copy { from('go-server/win/lib') into("${versionedDir()}/lib") }
93+
94+
project.file("${versionedDir()}/tmp").mkdirs()
9595
}
9696
}
9797

0 commit comments

Comments
 (0)