Skip to content

Commit 371f041

Browse files
mgaffigantonygermano
authored andcommitted
Skip JAR permissions for unsigned builds
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net> Issue: #138
1 parent df42f26 commit 371f041

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

‎server/build.xml‎

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

10521052
<taskdefresource="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-
<echomessage="[Thread Count: ${manifest_thread_count}] Modifying jar manifests to add Permissions: all-permissions; Codebase: *; Application-Name: Mirth Connect" />
1057-
<forparam="jarFile"parallel="true"threadCount="${manifest_thread_count}">
1058-
<filesetdir="${setup.client.lib}"includes="**/*.jar"excludes="bcp*.jar,bcutil*.jar"/>
1059-
<filesetdir="${setup.extensions}"includes="**/*.jar" />
1060-
<sequential>
1061-
<applyexecutable="jar">
1062-
<argvalue="umf" />
1063-
<argline="custom_manifest.mf" />
1064-
<srcfile />
1065-
<filesetfile="@{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+
<echomessage="[Thread Count: ${manifest_thread_count}] Modifying jar manifests to add Permissions: all-permissions; Codebase: *; Application-Name: Mirth Connect" />
1066+
<forparam="jarFile"parallel="true"threadCount="${manifest_thread_count}">
1067+
<filesetdir="${setup.client.lib}"includes="**/*.jar"excludes="bcp*.jar,bcutil*.jar"/>
1068+
<filesetdir="${setup.extensions}"includes="**/*.jar" />
1069+
<sequential>
1070+
<applyexecutable="jar">
1071+
<argvalue="umf" />
1072+
<argline="custom_manifest.mf" />
1073+
<srcfile />
1074+
<filesetfile="@{jarFile}"/>
1075+
</apply>
1076+
</sequential>
1077+
</for>
1078+
10791079
<propertyfile="${keystore_property_file}" />
10801080
<propertyname="signingTsa"value="http://timestamp.digicert.com" />
10811081

0 commit comments

Comments
 (0)