Skip to content

Commit

Permalink
PDFsam to run with openjdk 11. Still missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed Oct 28, 2018
1 parent fbe3a9f commit f191132
Show file tree
Hide file tree
Showing 15 changed files with 150 additions and 79 deletions.
10 changes: 8 additions & 2 deletions pdfsam-alternate-mix/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>PDFsam alternate mix module</description>
<parent>
Expand Down Expand Up @@ -43,7 +45,11 @@
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.pdfsam</groupId>
Expand Down
8 changes: 4 additions & 4 deletions pdfsam-community/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>PDFsam App</description>
<url>http://www.pdfsam.org</url>
<url>https://pdfsam.org</url>
<parent>
<groupId>org.pdfsam</groupId>
<artifactId>pdfsam-parent</artifactId>
Expand Down Expand Up @@ -341,7 +341,7 @@
<argument>-outdir</argument>
<argument>${project.build.directory}</argument>
<argument>-outfile</argument>
<argument>pdfsam-${version}</argument>
<argument>pdfsam-${project.version}</argument>
<argument>-srcdir</argument>
<argument>${project.build.directory}/assembled</argument>
<argument>-srcfiles</argument>
Expand Down Expand Up @@ -380,7 +380,7 @@
</goals>
<configuration>
<sourceFile>${project.build.directory}/bundles/PDFsam Basic-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.dmg</sourceFile>
<destinationFile>${project.build.directory}/pdfsam-${version}.dmg</destinationFile>
<destinationFile>${project.build.directory}/pdfsam-${project.version}.dmg</destinationFile>
</configuration>
</execution>
</executions>
Expand All @@ -399,7 +399,7 @@
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/pdfsam-${version}.dmg</file>
<file>${project.build.directory}/pdfsam-${project.version}.dmg</file>
<type>dmg</type>
</artifact>
</artifacts>
Expand Down
16 changes: 15 additions & 1 deletion pdfsam-core/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>Core pdfsam library</description>
<parent>
Expand Down Expand Up @@ -54,9 +56,21 @@
<groupId>org.sejda</groupId>
<artifactId>eventstudio</artifactId>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<dependency>
<groupId>jdepend</groupId>
<artifactId>jdepend</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-swing -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>${javafx.version}</version>
<scope>test</scope>
</dependency>

</dependencies>
</project>
12 changes: 9 additions & 3 deletions pdfsam-extract/pom.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>PDFsam extract module</description>
<url>http://www.pdfsam.org/rotate-pdf/</url>
<url>https://pdfsam.org/rotate-pdf/</url>
<parent>
<groupId>org.pdfsam</groupId>
<artifactId>pdfsam-parent</artifactId>
Expand Down Expand Up @@ -44,7 +46,11 @@
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.pdfsam</groupId>
Expand Down
10 changes: 8 additions & 2 deletions pdfsam-fx/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>Reusable JavaFX components to be used in PDFsam modules</description>
<parent>
Expand Down Expand Up @@ -72,7 +74,11 @@
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>jdepend</groupId>
Expand Down
14 changes: 12 additions & 2 deletions pdfsam-gui/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>PDFsam App</description>
<parent>
Expand Down Expand Up @@ -123,7 +125,15 @@
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>

<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-media</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>jdepend</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public AboutDashboardPane(Pdfsam pdfsam) {
addSectionTitle(DefaultI18nContext.getInstance().i18n("Environment"), left);
Label runtime = new Label(String.format("%s %s", System.getProperty("java.runtime.name"),
System.getProperty("java.runtime.version")));
Label fx = new Label(String.format(DefaultI18nContext.getInstance().i18n("FX runtime version %s"),
System.getProperty("javafx.runtime.version")));
Label memory = new Label(DefaultI18nContext.getInstance().i18n("Max memory {0}",
FileUtils.byteCountToDisplaySize(Runtime.getRuntime().maxMemory())));
Button copyButton = new Button(DefaultI18nContext.getInstance().i18n("Copy to clipboard"));
Expand All @@ -92,7 +94,7 @@ public AboutDashboardPane(Pdfsam pdfsam) {
.to(content);
Clipboard.getSystemClipboard().setContent(content);
});
left.getChildren().addAll(runtime, memory, copyButton);
left.getChildren().addAll(runtime, fx, memory, copyButton);

VBox right = new VBox(5);
addSectionTitle(DefaultI18nContext.getInstance().i18n("Support"), right);
Expand Down
37 changes: 0 additions & 37 deletions pdfsam-i18n/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,43 +36,6 @@
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
com.googlecode.gettext-commons
</groupId>
<artifactId>
gettext-maven-plugin
</artifactId>
<versionRange>
[1.2.4,)
</versionRange>
<goals>
<goal>merge</goal>
<goal>dist</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<dependencies>
Expand Down
10 changes: 8 additions & 2 deletions pdfsam-merge/pom.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>PDFsam merge module</description>
<url>http://www.pdfsam.org/mergepdf/</url>
<url>https://pdfsam.org/mergepdf/</url>
<parent>
<groupId>org.pdfsam</groupId>
<artifactId>pdfsam-parent</artifactId>
Expand Down Expand Up @@ -45,6 +47,10 @@
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.pdfsam</groupId>
Expand Down
12 changes: 9 additions & 3 deletions pdfsam-rotate/pom.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>PDFsam rotate module</description>
<url>http://www.pdfsam.org/rotate-pdf/</url>
<url>https://pdfsam.org/rotate-pdf/</url>
<parent>
<groupId>org.pdfsam</groupId>
<artifactId>pdfsam-parent</artifactId>
Expand Down Expand Up @@ -44,7 +46,11 @@
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.pdfsam</groupId>
Expand Down
4 changes: 3 additions & 1 deletion pdfsam-service/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>Service layer for PDFsam</description>
<parent>
Expand Down
10 changes: 8 additions & 2 deletions pdfsam-simple-split/pom.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>PDFsam simple split module</description>
<url>http://www.pdfsam.org/splitpdf/</url>
<url>https://pdfsam.org/splitpdf/</url>
<parent>
<groupId>org.pdfsam</groupId>
<artifactId>pdfsam-parent</artifactId>
Expand Down Expand Up @@ -45,6 +47,10 @@
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.pdfsam</groupId>
Expand Down
6 changes: 5 additions & 1 deletion pdfsam-split-by-bookmarks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>PDFsam split by bookmarks module</description>
<url>http://www.pdfsam.org/splitpdf/</url>
<url>https://pdfsam.org/splitpdf/</url>
<parent>
<groupId>org.pdfsam</groupId>
<artifactId>pdfsam-parent</artifactId>
Expand Down Expand Up @@ -44,6 +44,10 @@
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<!-- test dependencies -->
<dependency>
Expand Down
10 changes: 8 additions & 2 deletions pdfsam-split-by-size/pom.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>PDFsam split by size module</description>
<url>http://www.pdfsam.org/splitpdf/</url>
<url>https://pdfsam.org/splitpdf/</url>
<parent>
<groupId>org.pdfsam</groupId>
<artifactId>pdfsam-parent</artifactId>
Expand Down Expand Up @@ -45,6 +47,10 @@
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.pdfsam</groupId>
Expand Down
Loading

0 comments on commit f191132

Please sign in to comment.