Skip to content

Commit 97c3ae4

Browse files
committed
Run all tests in native on CI and update docs
DEVSIX-8795
1 parent 2cd532d commit 97c3ae4

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

BUILDING.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ $ mvn clean install \
4242
> >(tee mvn.log) 2> >(tee mvn-error.log >&2)
4343
```
4444

45+
Starting from version 8.0.3 iText Core supports native image compilation using [GraalVM][4]. Follow the instructions at
46+
[Getting started](https://www.graalvm.org/latest/getting-started/) to build your first native application out of java sources.
47+
48+
To run tests in native mode [GraalVM][4] for JDK 22 or higher must be installed and native profile must be used as follows
49+
```bash
50+
$ mvn clean install -Pnative -DskipTests=false \
51+
-Dmaven.test.failure.ignore=false \
52+
-DITEXT_GS_EXEC="gs command" \
53+
-DITEXT_MAGICK_COMPARE_EXEC="magick compare command" \
54+
> >(tee mvn.log) 2> >(tee mvn-error.log >&2)
55+
```
56+
4557
iText is backwards compatible in minor releases. To ensure that code changes conform to this requirement we use japicmp.
4658
Todo verify this execute following commands:
4759

@@ -73,4 +85,6 @@ $ mvn javadoc:javadoc | grep -E "(: warning:)|(: error:)"
7385

7486
[2]: https://www.ghostscript.com/
7587

76-
[3]: https://www.imagemagick.org/
88+
[3]: https://www.imagemagick.org/
89+
90+
[4]: https://www.graalvm.org/

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ public class HelloPdfApp {
8686
}
8787
```
8888

89+
### GraalVM compatibility
90+
Starting from version 8.0.3 iText Core supports native image compilation using GraalVM. See [building] for details.
91+
8992
### Examples
9093

9194
This is a small subset of examples to get you started. For more advanced examples, refer to our [Knowledge Base](https://kb.itextpdf.com/home/it7kb/examples) or the following links:

layout/src/test/java/com/itextpdf/layout/PdfUA2AnnotationsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public void pdfUA2ScreenAnnotationsTest() throws IOException, XMPException {
230230
pdfPage.addAnnotation(screen);
231231
pdfPage.flush();
232232
}
233-
Assertions.assertNotNull(new VeraPdfValidator().validate(outFile));// Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf\a validation on Android)
233+
new VeraPdfValidator().validateFailure(outFile);// Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf\a validation on Android)
234234
}
235235

236236
@Test

0 commit comments

Comments
 (0)