Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ For local development, you need:
- Node.js 20.x or later
- Java Runtime Environment (JRE) 11 or later
- Docker (for containerized deployment)
- Visual Studio 2022 or JetBrains Rider (recommended IDEs)
- Visual Studio 2026 or JetBrains Rider (recommended IDEs)
- Git

### Building from Source
Expand Down
Binary file not shown.
10 changes: 8 additions & 2 deletions src/Server/Services/JavaService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,17 @@ public async Task<JavaInfoResult> GetJavaInfoAsync(CancellationToken cancellatio
return new JavaInfoResult(IsAvailable: false, properties);
}

string stdout = await process.StandardOutput.ReadToEndAsync(cancellationToken);
string stderr = await process.StandardError.ReadToEndAsync(cancellationToken);
// Read both streams concurrently to avoid deadlock
Task<string> stdoutTask = process.StandardOutput.ReadToEndAsync(cancellationToken);
Task<string> stderrTask = process.StandardError.ReadToEndAsync(cancellationToken);

try
{
// Wait for both reads to complete
await Task.WhenAll(stdoutTask, stderrTask);
string stdout = await stdoutTask;
string stderr = await stderrTask;

await process.WaitForExitAsync(cancellationToken);

string allOutput = stdout + Environment.NewLine + stderr;
Expand Down
16 changes: 11 additions & 5 deletions src/Server/Services/MustangCliService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed class MustangCliService(ILogger<MustangCliService> logger)
/// <summary>
/// The version of Mustang CLI being used.
/// </summary>
public const string MustangCliVersion = "2.21.0";
public const string MustangCliVersion = "2.22.0";
private const string MustangJarFile = $"Mustang-CLI-{MustangCliVersion}.jar";
private const string JavaMaxMemory = "-Xmx1G";
private const string FileEncoding = "-Dfile.encoding=UTF-8";
Expand Down Expand Up @@ -107,11 +107,17 @@ private async Task<MustangCliResult> ExecuteAsync(string action, string[] additi
return MustangCliResult.Failed($"Failed to start Java process with Mustang CLI (action: {action}).");
}

string stdout = await process.StandardOutput.ReadToEndAsync(cancellationToken);
string stderr = await process.StandardError.ReadToEndAsync(cancellationToken);
// Read both streams concurrently to avoid deadlock
Task<string> stdoutTask = process.StandardOutput.ReadToEndAsync(cancellationToken);
Task<string> stderrTask = process.StandardError.ReadToEndAsync(cancellationToken);

try
{
// Wait for both reads to complete
await Task.WhenAll(stdoutTask, stderrTask);
string stdout = await stdoutTask;
string stderr = await stderrTask;

await process.WaitForExitAsync(cancellationToken);

return new MustangCliResult
Expand All @@ -130,8 +136,8 @@ private async Task<MustangCliResult> ExecuteAsync(string action, string[] additi
return new MustangCliResult
{
ExitCode = (int)ErrorCode.ProcessingTimeout,
StandardOutput = stdout,
StandardError = stderr
StandardOutput = string.Empty,
StandardError = string.Empty
};
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/WebUI/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# ZUGFeRD Mustang UI build automation
Download mustang-cli from Maven Central:
https://mvnrepository.com/artifact/org.mustangproject/Mustang-CLI
or directly from their site:
https://www.mustangproject.org/commandline/ ==> https://www.mustangproject.org/deploy/Mustang-CLI-2.20.0.jar

Download mustang-cli from Maven Central:
https://mvnrepository.com/artifact/org.mustangproject/Mustang-CLI
or directly from their site:
https://www.mustangproject.org/commandline/ ==> https://www.mustangproject.org/deploy/Mustang-CLI-2.22.0.jar

## What this solution does
This repository contains the front-end for the ZUGFeRD Mustang UI, a Vite + React + TypeScript application styled with Tailwind CSS and shadcn/ui components. The new automation scripts streamline getting from source code to the generated production HTML that ships in `dist/`. Each script installs the required Node.js dependencies (if needed) and triggers the framework's production build so you always end up with the final static assets.
Expand Down
Loading
Loading