Skip to content

Commit 4150742

Browse files
REL-1275252: use relsvr-rap.exe directly
1 parent e200744 commit 4150742

4 files changed

Lines changed: 11 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
### 09-Apr-2026
6+
-[REL-1275252](https://jira.kcura.com/browse/REL-1275252) - use relsvr-rap.exe directly
7+
58
### 03-Mar-2026
69
-[REL-1238691](https://jira.kcura.com/browse/REL-1238691) - initial commit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Before running the build, ensure the following tools are installed and available
99
- **[.NET SDK](https://dotnet.microsoft.com/download)** — required for `dotnet restore`
1010
- **[Visual Studio 2022 or later](https://visualstudio.microsoft.com/vs/)** (or [Build Tools for Visual Studio](https://visualstudio.microsoft.com/downloads/)) — required to compile the solution; includes MSBuild. [MSBuild must also be added to the PATH Environment Variable](https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild)
1111
- **[Node.js and npm](https://nodejs.org/)** — required to install front-end dependencies for the custom page
12-
- **[relsvr-rap CLI](relsvr-rap-Usage-Guide.md)** — Relativity's RAP build tool; install from the Relativity.Server.RAPTool NuGet package using `dotnet tool install --global Relativity.Server.RAPTool` or if the nupkg file is downloaded locally, it can be installed using `dotnet tool install --global Relativity.Server.RAPTool --add-source C:\path\to\local\folder`
12+
- **[relsvr-rap CLI](relsvr-rap-Usage-Guide.md)** — Relativity's RAP build tool; make sure it is copied to a location in the %PATH% environment variable
1313

1414
## Building
1515

build.ps1

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,9 @@ function Step([string]$Message) {
5656
Write-Host "==> $Message" -ForegroundColor Cyan
5757
}
5858

59-
# ---------------------------------------------------------------------------
60-
# 1. Verify Relativity.Server.RAPTool is installed
61-
# ---------------------------------------------------------------------------
62-
Step "Checking that Relativity.Server.RAPTool dotnet tool is installed"
63-
64-
$installedTool = dotnet tool list --global | Select-String "Relativity.Server.RAPTool"
65-
if ($LASTEXITCODE -ne 0 -or -not $installedTool) {
66-
throw "The 'Relativity.Server.RAPTool' dotnet tool is not installed. Install it with: dotnet tool install --global Relativity.Server.RAPTool"
67-
}
6859

6960
# ---------------------------------------------------------------------------
70-
# 2. Restore NuGet and npm packages
61+
# 1. Restore NuGet and npm packages
7162
# ---------------------------------------------------------------------------
7263
Step "Restoring NuGet packages for SampleRap.sln"
7364

@@ -81,7 +72,7 @@ if ($LASTEXITCODE -ne 0) { throw "npm install failed." }
8172
Set-Location $PSScriptRoot
8273

8374
# ---------------------------------------------------------------------------
84-
# 3. Build the solution
75+
# 2. Build the solution
8576
# ---------------------------------------------------------------------------
8677
Step "Building SampleRap.sln (configuration: $Configuration)"
8778
msbuild @("$PSScriptRoot\Source\SampleRap.sln",
@@ -97,11 +88,11 @@ msbuild @("$PSScriptRoot\Source\SampleRap.sln",
9788
if ($LASTEXITCODE -ne 0) { throw "msbuild failed." }
9889

9990
# ---------------------------------------------------------------------------
100-
# 4. Build the RAP
91+
# 3. Build the RAP
10192
# ---------------------------------------------------------------------------
10293
Step "Building RAP with relsvr-rap (version $RAPVersion, target $RelativityServerRelease)"
10394

104-
relsvr-rap build `
95+
relsvr-rap.exe build `
10596
--source "$PSScriptRoot" `
10697
--input "DevelopmentScripts\build.xml" `
10798
--version $RAPVersion `

relsvr-rap-Usage-Guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The `relsvr-rap` CLI builds Relativity Application Package (RAP) files from your
55
## Command Syntax
66

77
```text
8-
relsvr-rap build --source <path> --input <file> --version <version> --relativity-server-release <year> [--warnings-as-errors <true|false>] [--log-file <path>] [--log-level <level>]
8+
relsvr-rap.exe build --source <path> --input <file> --version <version> --relativity-server-release <year> [--warnings-as-errors <true|false>] [--log-file <path>] [--log-level <level>]
99
```
1010

1111
## Parameters
@@ -25,7 +25,7 @@ relsvr-rap build --source <path> --input <file> --version <version> --relativity
2525
From the repo root (`server-sample-rap`):
2626

2727
```powershell
28-
relsvr-rap build `
28+
relsvr-rap.exe build `
2929
--source "C:\Projects\MyRelativityApp" `
3030
--input "DevelopmentScripts\build.xml" `
3131
--version "1.0.0.0" `
@@ -52,7 +52,7 @@ relsvr-rap build --source C:\MyApp --input DevelopmentScripts\build.xml --versio
5252
### Full Example
5353

5454
```powershell
55-
relsvr-rap build `
55+
relsvr-rap.exe build `
5656
--source "C:\Projects\MyRelativityApp" `
5757
--input "DevelopmentScripts\build.xml" `
5858
--version "1.5.0.0" `

0 commit comments

Comments
 (0)