Skip to content

Commit

Permalink
Attempt to run UMLDoclet in headless mode.
Browse files Browse the repository at this point in the history
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
  • Loading branch information
sjoerdtalsma committed Feb 16, 2024
1 parent e2363ed commit 8ba6a64
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@
<include>net.sourceforge.plantuml:plantuml-asl</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
</excludes>
</filter>
</filters>
<minimizeJar>true</minimizeJar>
<!-- TODO exclude unused packages and resources to save space. -->
</configuration>
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/nl/talsmasoftware/umldoclet/UMLDoclet.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2022 Talsma ICT
* Copyright 2016-2024 Talsma ICT
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -53,6 +53,9 @@
* @author Sjoerd Talsma
*/
public class UMLDoclet extends StandardDoclet {
static {
System.setProperty("java.awt.headless", "true");
}

private final DocletConfig config;

Expand Down

0 comments on commit 8ba6a64

Please sign in to comment.