aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-cli/src')
-rw-r--r--pdf-as-cli/src/main/assembly/cli.xml100
-rw-r--r--pdf-as-cli/src/main/resources/pdf-as.bat8
-rw-r--r--pdf-as-cli/src/main/resources/pdf-as.sh8
-rw-r--r--pdf-as-cli/src/main/resources/sign.bat1
-rw-r--r--pdf-as-cli/src/main/resources/sign.sh3
5 files changed, 120 insertions, 0 deletions
diff --git a/pdf-as-cli/src/main/assembly/cli.xml b/pdf-as-cli/src/main/assembly/cli.xml
new file mode 100644
index 0000000..31abd3d
--- /dev/null
+++ b/pdf-as-cli/src/main/assembly/cli.xml
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html -->
+<assembly
+ xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+
+ <id>cli</id>
+
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <baseDirectory>pdf-as-cli</baseDirectory>
+ <includeBaseDirectory>true</includeBaseDirectory>
+
+ <moduleSets>
+
+ <!-- Add pdf-as library. -->
+ <moduleSet>
+ <useAllReactorProjects>true</useAllReactorProjects>
+ <includes>
+ <include>at.gv.egiz:pdf-as-lib:jar</include>
+ </includes>
+ <binaries>
+ <outputDirectory/>
+ <unpack>false</unpack>
+ <outputFileNameMapping>${module.build.finalName}.${module.extension}</outputFileNameMapping>
+ </binaries>
+ </moduleSet>
+
+ </moduleSets>
+
+ <dependencySets>
+
+ <!-- Add project dependencies. -->
+ <dependencySet>
+ <unpack>false</unpack>
+ <scope>runtime</scope>
+ <outputDirectory>lib</outputDirectory>
+ <excludes>
+ <exclude>at.gv.egiz:pdf-as-lib:jar</exclude>
+ </excludes>
+ </dependencySet>
+
+ </dependencySets>
+
+ <fileSets>
+
+ <!-- Add scripts. -->
+ <fileSet>
+ <directory>src/main/resources</directory>
+ <filtered>true</filtered>
+ <outputDirectory />
+ <includes>
+ <include>*.bat</include>
+ <include>*.sh</include>
+ </includes>
+ </fileSet>
+
+ <!-- Add user manual. -->
+ <fileSet>
+ <directory>../dok/Anwendungsbeschreibung</directory>
+ <outputDirectory>doc</outputDirectory>
+ <includes>
+ <include>PDF-AS-${project.version}-Anwendungsbeschreibung.pdf</include>
+ <!-- Fallback, if latest version not yet available. -->
+ <include>PDF-AS-3.2-Anwendungsbeschreibung.pdf</include>
+ </includes>
+ </fileSet>
+
+ <!-- Add exampled. -->
+ <fileSet>
+ <directory>../dok/Anwendungsbeschreibung/Platzhalter-Beispiele</directory>
+ <outputDirectory>doc/Platzhalter-Beispiele</outputDirectory>
+ <includes>
+ <include>*.jpg</include>
+ </includes>
+ </fileSet>
+
+ <!-- Add configuration documentation. -->
+ <fileSet>
+ <directory>../dok/Konfiguration</directory>
+ <outputDirectory>doc</outputDirectory>
+ <includes>
+ <include>*.pdf</include>
+ </includes>
+ </fileSet>
+
+ <!-- Add specification. -->
+ <fileSet>
+ <directory>../dok/Spezifikation/Spezifikation-Layout-Amtssignatur-las-v1.4.0</directory>
+ <outputDirectory>doc</outputDirectory>
+ <includes>
+ <include>Spezifikation-Layout-Amtssignatur-las-v1.4.0.pdf</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+</assembly>
diff --git a/pdf-as-cli/src/main/resources/pdf-as.bat b/pdf-as-cli/src/main/resources/pdf-as.bat
new file mode 100644
index 0000000..0cadb9a
--- /dev/null
+++ b/pdf-as-cli/src/main/resources/pdf-as.bat
@@ -0,0 +1,8 @@
+@echo off
+
+rem Deploys embedded default configuration to USER_HOME/PDF-AS.
+rem Note: Configuration is not deployed if it already exists.
+java -jar ${project.build.finalName}.jar -ddc
+
+rem Start commandline
+java -Xms128m -Xmx786m -XX:MaxPermSize=256m -jar ${project.build.finalName}.jar %*
diff --git a/pdf-as-cli/src/main/resources/pdf-as.sh b/pdf-as-cli/src/main/resources/pdf-as.sh
new file mode 100644
index 0000000..f47bc5f
--- /dev/null
+++ b/pdf-as-cli/src/main/resources/pdf-as.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# Deploys embedded default configuration to USER_HOME/PDF-AS.
+# Note: Configuration is not deployed if it already exists.
+java -jar ${project.build.finalName}.jar -ddc
+
+# Start commandline
+java -Xms128m -Xmx786m -XX:MaxPermSize=256m -jar ${project.build.finalName}.jar $@
diff --git a/pdf-as-cli/src/main/resources/sign.bat b/pdf-as-cli/src/main/resources/sign.bat
new file mode 100644
index 0000000..e25213b
--- /dev/null
+++ b/pdf-as-cli/src/main/resources/sign.bat
@@ -0,0 +1 @@
+call pdf-as.bat -mode sign -sigmode textual -connector bku %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/pdf-as-cli/src/main/resources/sign.sh b/pdf-as-cli/src/main/resources/sign.sh
new file mode 100644
index 0000000..410b3fe
--- /dev/null
+++ b/pdf-as-cli/src/main/resources/sign.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+./pdf-as.sh -mode sign -sigmode textual -connector bku $@