aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-cli')
-rw-r--r--pdf-as-cli/pom.xml57
-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
6 files changed, 177 insertions, 0 deletions
diff --git a/pdf-as-cli/pom.xml b/pdf-as-cli/pom.xml
new file mode 100644
index 0000000..a2a89c4
--- /dev/null
+++ b/pdf-as-cli/pom.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<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/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>at.gv.egiz</groupId>
+ <artifactId>pdf-as</artifactId>
+ <version>3.3-SNAPSHOT</version>
+ </parent>
+
+ <packaging>pom</packaging>
+
+ <artifactId>pdf-as-cli</artifactId>
+ <name>PDF-AS CLI</name>
+ <description>Commandline Distribution zur Amtssignatur fuer elektronische Aktenfuehrung</description>
+
+ <build>
+
+ <finalName>${project.artifactId}-${project.version}</finalName>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/cli.xml</descriptor>
+ </descriptors>
+ <appendAssemblyId>false</appendAssemblyId>
+ </configuration>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>at.gv.egiz</groupId>
+ <artifactId>pdf-as-lib</artifactId>
+ </dependency>
+
+ </dependencies>
+
+</project>
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 $@