-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migration from BitBucket to GitHub
- Loading branch information
Showing
237 changed files
with
22,000 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# tells Lombok that this is the root directory and that it shouldn’t search parent directories for more configuration files | ||
config.stopBubbling = true | ||
# tells Lombok to add @lombok.Generated annotation to all generated methods | ||
lombok.addLombokGeneratedAnnotation = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExportException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ch.sbb.polarion.extension.pdf.exporter; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@AllArgsConstructor | ||
@Getter | ||
public class PdfExportException extends RuntimeException { | ||
|
||
private final String command; | ||
private final int exitStatus; | ||
private final byte[] out; | ||
private final byte[] err; | ||
|
||
@Override | ||
public String getMessage() { | ||
return "Process (" + this.command + ") exited with status code " + this.exitStatus + ":" + System.lineSeparator() + new String(err); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExporterAdminUiServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package ch.sbb.polarion.extension.pdf.exporter; | ||
|
||
import ch.sbb.polarion.extension.generic.GenericUiServlet; | ||
import ch.sbb.polarion.extension.generic.properties.CurrentExtensionConfiguration; | ||
import ch.sbb.polarion.extension.pdf.exporter.properties.PdfExporterExtensionConfiguration; | ||
|
||
import java.io.Serial; | ||
|
||
public class PdfExporterAdminUiServlet extends GenericUiServlet { | ||
|
||
@Serial | ||
private static final long serialVersionUID = -6337912330074718317L; | ||
|
||
public PdfExporterAdminUiServlet() { | ||
super("pdf-exporter-admin"); | ||
CurrentExtensionConfiguration.getInstance().setExtensionConfiguration(PdfExporterExtensionConfiguration.getInstance()); | ||
} | ||
} |
Oops, something went wrong.