This repository has been archived by the owner on Dec 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
126 lines (121 loc) · 6.33 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.10'
}
if (!file('libs/PDFC.jar').exists() || !file('libs/inetcore.jar').exists() ||
!file('plugins/parser.pdf.zip').exists()) {
ant.fail('Please first download the i-net PDFC SDK at https://download.inetsoftware.de/pdfc-sdk-latest.zip and place:\n'+
' - i-net PDFC/plugins/parser.pdf.zip into the plugins subfolder\n'+
' - i-net PDFC/java/PDFC.jar and i-net PDFC/java/inetcore.jar into the libs subfolder')
}
task runOutputSpecifyModifyTypesSample(type:JavaExec) {
description 'Runs sample OutputSpecifyModifyTypes'
dependsOn 'build'
main 'configuration.OutputSpecifyModifyTypes'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runUseRegex(type:JavaExec) {
description 'Runs sample UseRegex'
dependsOn 'build'
main = 'configuration.UseRegex'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runUseXMLConfiguration(type:JavaExec) {
description 'Runs sample UseXMLConfiguration'
dependsOn 'build'
main = 'configuration.UseXMLConfiguration'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runSimpleConsole(type:JavaExec) {
description 'Runs sample SimpleConsole'
dependsOn 'build'
main = 'console.SimpleConsole'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runNumOfDifferencePageNumber(type:JavaExec) {
description 'Runs sample NumOfDifferencePageNumber'
dependsOn 'build'
main = 'differences.NumOfDifferencePageNumber'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runNumOfDifferencePerPage(type:JavaExec) {
description 'Runs sample NumOfDifferencePerPage'
dependsOn 'build'
main = 'differences.NumOfDifferencePerPage'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runNumOfDifferences(type:JavaExec) {
description 'Runs sample NumOfDifferences'
dependsOn 'build'
main = 'differences.NumOfDifferences'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runCompareAndExportToSpecificFilename(type:JavaExec) {
description 'Runs sample CompareAndExportToSpecificFilename'
dependsOn 'build'
main = 'export.CompareAndExportToSpecificFilename'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf"), file('output.pdf')
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runSimpleCompareAndExport(type:JavaExec) {
description 'Runs sample SimpleCompareAndExport'
dependsOn 'build'
main = 'export.SimpleCompareAndExport'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runHotFolder(type:JavaExec) {
description 'Runs sample HotFolder'
dependsOn 'build'
main = 'hotfolder.HotFolder'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runPDFAnalysis(type:JavaExec) {
description 'Runs sample PDFAnalysis'
dependsOn 'build'
main = 'parser.PDFAnalysis'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runCompareAndPrintWithPrintsetting(type:JavaExec) {
description 'Runs sample CompareAndPrintWithPrintsetting'
dependsOn 'build'
main = 'print.CompareAndPrintWithPrintsetting'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runSimpleCompareAndPrint(type:JavaExec) {
description 'Runs sample SimpleCompareAndPrint'
dependsOn 'build'
main = 'print.SimpleCompareAndPrint'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runRender(type:JavaExec) {
description 'Runs sample Render'
dependsOn 'build'
main = 'render.Render'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf")
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
task runReportingToSpecificFilename(type:JavaExec) {
description 'Runs sample ReportingToSpecificFilename'
dependsOn 'build'
main = 'report.ReportingToSpecificFilename'
args file("${sourceSets.main.output.resourcesDir}/Example1.pdf"), file("${sourceSets.main.output.resourcesDir}/Example2.pdf"), file('output.pdf')
classpath = files(sourceSets.main.runtimeClasspath, sourceSets.main.output.resourcesDir)
}
defaultTasks 'clean','build'