Skip to content

Commit 5d8486c

Browse files
committed
Add sharpen plugin
DEVSIX-8599
1 parent 4d5ab47 commit 5d8486c

File tree

3 files changed

+95
-3
lines changed

3 files changed

+95
-3
lines changed

pdfocr-api/pom.xml

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
<artifactId>pdfocr-api</artifactId>
1212

1313
<name>pdfOCR API</name>
14-
<description>pdfOCR is an iText add-on for Java to recognize and extract text in scanned documents and images. It can also convert them into fully ISO-compliant PDF or PDF/A-3u files that are accessible, searchable, and suitable for archiving</description>
14+
<description>pdfOCR is an iText add-on for Java to recognize and extract text in scanned documents and images. It can
15+
also convert them into fully ISO-compliant PDF or PDF/A-3u files that are accessible, searchable, and suitable for
16+
archiving
17+
</description>
1518

1619
<dependencies>
1720
<dependency>
@@ -47,4 +50,48 @@
4750
</resource>
4851
</resources>
4952
</build>
50-
</project>
53+
54+
<profiles>
55+
<profile>
56+
<id>with-sharpen</id>
57+
<build>
58+
<plugins>
59+
<plugin>
60+
<groupId>sharpen</groupId>
61+
<artifactId>sharpen-maven-plugin</artifactId>
62+
<version>1.0-SNAPSHOT</version>
63+
<executions>
64+
<execution>
65+
<phase>install</phase>
66+
<goals>
67+
<goal>sharpen</goal>
68+
</goals>
69+
</execution>
70+
</executions>
71+
<dependencies>
72+
<dependency>
73+
<groupId>sharpen</groupId>
74+
<artifactId>standard-framework-mapping</artifactId>
75+
<version>1.0-SNAPSHOT</version>
76+
</dependency>
77+
</dependencies>
78+
<configuration>
79+
<projectName>pdfocr</projectName>
80+
<cSharpTargetFolder>./../../../sharp/pdfocr</cSharpTargetFolder>
81+
<cSharpSourceCodeDestination>itext/itext.pdfocr.api</cSharpSourceCodeDestination>
82+
<cSharpTestCodeDestination>itext.tests/itext.pdfocr.api.tests</cSharpTestCodeDestination>
83+
<buildDotnet>${sharpen.builddotnet}</buildDotnet>
84+
<showDiff>${sharpen.showdiff}</showDiff>
85+
<sourceCodeFiles>
86+
<file>**/src/main/java/**/*.java</file>
87+
</sourceCodeFiles>
88+
<testCodeFiles>
89+
<file>**/src/test/java/**/*.java</file>
90+
</testCodeFiles>
91+
</configuration>
92+
</plugin>
93+
</plugins>
94+
</build>
95+
</profile>
96+
</profiles>
97+
</project>

pdfocr-tesseract4/pom.xml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,47 @@
7777
<scope>test</scope>
7878
</dependency>
7979
</dependencies>
80+
<profiles>
81+
<profile>
82+
<id>with-sharpen</id>
83+
<build>
84+
<plugins>
85+
<plugin>
86+
<groupId>sharpen</groupId>
87+
<artifactId>sharpen-maven-plugin</artifactId>
88+
<version>1.0-SNAPSHOT</version>
89+
<executions>
90+
<execution>
91+
<phase>install</phase>
92+
<goals>
93+
<goal>sharpen</goal>
94+
</goals>
95+
</execution>
96+
</executions>
97+
<dependencies>
98+
<dependency>
99+
<groupId>sharpen</groupId>
100+
<artifactId>standard-framework-mapping</artifactId>
101+
<version>1.0-SNAPSHOT</version>
102+
</dependency>
103+
</dependencies>
104+
<configuration>
105+
<projectName>pdfocr-tesseract4</projectName>
106+
<cSharpTargetFolder>./../../../sharp/pdfocr</cSharpTargetFolder>
107+
<cSharpSourceCodeDestination>itext/itext.pdfocr.tesseract4</cSharpSourceCodeDestination>
108+
<cSharpTestCodeDestination>itext.tests/itext.pdfocr.tesseract4.tests</cSharpTestCodeDestination>
109+
<buildDotnet>${sharpen.builddotnet}</buildDotnet>
110+
<showDiff>${sharpen.showdiff}</showDiff>
111+
<sourceCodeFiles>
112+
<file>**/src/main/java/**/*.java</file>
113+
</sourceCodeFiles>
114+
<testCodeFiles>
115+
<file>**/src/test/java/**/*.java</file>
116+
</testCodeFiles>
117+
</configuration>
118+
</plugin>
119+
</plugins>
120+
</build>
121+
</profile>
122+
</profiles>
80123
</project>

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
<maven.compiler.source>${java.version}</maven.compiler.source>
2929
<maven.compiler.target>${java.version}</maven.compiler.target>
3030
<skipTests>false</skipTests>
31+
<sharpen.builddotnet>false</sharpen.builddotnet>
32+
<sharpen.showdiff>false</sharpen.showdiff>
3133
</properties>
3234

3335
<repositories>
@@ -127,4 +129,4 @@
127129
</build>
128130
</profile>
129131
</profiles>
130-
</project>
132+
</project>

0 commit comments

Comments
 (0)