Skip to content

Commit 11f646f

Browse files
mgaffigansbraconnier
authored andcommitted
Skip JAR permissions for unsigned builds
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net> Issue: #138 Signed-off-by: sbraconnier <simonbraconnier@gmail.com>
1 parent 96d31d5 commit 11f646f

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

server/build.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,22 +1051,6 @@
10511051

10521052
<taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="classpath" />
10531053

1054-
<!-- modify jar manifests -->
1055-
<!-- don't modify bcprov, since it already has the manifest changes and is signed by BC -->
1056-
<echo message="[Thread Count: ${manifest_thread_count}] Modifying jar manifests to add Permissions: all-permissions; Codebase: *; Application-Name: Mirth Connect" />
1057-
<for param="jarFile" parallel="true" threadCount="${manifest_thread_count}">
1058-
<fileset dir="${setup.client.lib}" includes="**/*.jar" excludes="bcp*.jar,bcutil*.jar"/>
1059-
<fileset dir="${setup.extensions}" includes="**/*.jar" />
1060-
<sequential>
1061-
<apply executable="jar">
1062-
<arg value="umf" />
1063-
<arg line="custom_manifest.mf" />
1064-
<srcfile />
1065-
<fileset file="@{jarFile}"/>
1066-
</apply>
1067-
</sequential>
1068-
</for>
1069-
10701054

10711055
<if>
10721056
<equals arg1="${disableSigning}" arg2="true" />
@@ -1076,6 +1060,22 @@
10761060
</then>
10771061

10781062
<else>
1063+
<!-- modify jar manifests -->
1064+
<!-- don't modify bcprov, since it already has the manifest changes and is signed by BC -->
1065+
<echo message="[Thread Count: ${manifest_thread_count}] Modifying jar manifests to add Permissions: all-permissions; Codebase: *; Application-Name: Mirth Connect" />
1066+
<for param="jarFile" parallel="true" threadCount="${manifest_thread_count}">
1067+
<fileset dir="${setup.client.lib}" includes="**/*.jar" excludes="bcp*.jar,bcutil*.jar"/>
1068+
<fileset dir="${setup.extensions}" includes="**/*.jar" />
1069+
<sequential>
1070+
<apply executable="jar">
1071+
<arg value="umf" />
1072+
<arg line="custom_manifest.mf" />
1073+
<srcfile />
1074+
<fileset file="@{jarFile}"/>
1075+
</apply>
1076+
</sequential>
1077+
</for>
1078+
10791079
<property file="${keystore_property_file}" />
10801080
<property name="signingTsa" value="http://timestamp.digicert.com" />
10811081

0 commit comments

Comments
 (0)