Skip to content

Commit

Permalink
Ensure that org.eclipse.birt.build.ant.PackTask filters out CODESIGN.*
Browse files Browse the repository at this point in the history
- Simplify the runtime build to avoid building a temporary jar that's
subsequently filtered.

#1819
  • Loading branch information
merks committed Jul 23, 2024
1 parent 5f379b5 commit b00bc5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 1 addition & 7 deletions build/birt-packages/birt-runtime/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</copy>
<!-- create org.eclipse.birt.runtime.jar -->
<buildJar basedir="${TARGET_DIR}/org.eclipse.birt.runtime"
output="${STAGE_DIR}/ReportEngine/lib/tmp.birt.runtime.jar">
output="${STAGE_DIR}/ReportEngine/lib/org.eclipse.birt.runtime_${BIRT_VERSION}.jar">
<manifest>
<attribute name="Bundle-Version" value="${BIRT_VERSION}"/>
<attribute name="Bundle-Name" value="BIRT Runtime SDK"/>
Expand All @@ -89,12 +89,6 @@
<attribute name="Manifest-Version" value="1.0"/>
</manifest>
</buildJar>
<!-- it's surprisingly hard to keep eclipse-jarsigner-plugin off jars -->
<zip destfile="${STAGE_DIR}/ReportEngine/lib/org.eclipse.birt.runtime_${BIRT_VERSION}.jar">
<zipfileset src="${STAGE_DIR}/ReportEngine/lib/tmp.birt.runtime.jar"
excludes="META-INF/ECLIPSE_.*"/>
</zip>
<delete file="${STAGE_DIR}/ReportEngine/lib/tmp.birt.runtime.jar"/>
</target>
<target name="build-webviewer">
<copy todir="${STAGE_DIR}/WebViewerExample/WEB-INF/lib">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ public boolean accept(File dir, String fileName) {

private static Filter DEFAULT_FILTER = new Filter(new String[] {},
new String[] { "plugin\\..*", "fragment\\..*", "(.*\\.jar/)?META-INF/MANIFEST\\.MF",
"(.*\\.jar/)?META-INF/ECLIPSEF\\..*", "(.*\\.jar/)?META-INF/eclipse\\.inf", "about\\..*",
"(.*\\.jar/)?META-INF/(ECLIPSEF|ECLIPSE_|CODESIGN)\\..*", "(.*\\.jar/)?META-INF/eclipse\\.inf",
"about\\..*",
"about_files/.*" });

public Filter createFilter(BundleItem bundleItem) {
Expand Down
2 changes: 1 addition & 1 deletion build/org.eclipse.birt.releng/BIRT.setup
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
project="org.eclipse.birt"/>
<operand
xsi:type="predicates:NamePredicate"
pattern=".*releng.*|org\.eclipse\.birt\.target|org\.eclipse\.birt\.api|birt-charts|birt-publish|birt-runtime|birt-charts"/>
pattern=".*releng.*|org\.eclipse\.birt\.target|org\.eclipse\.birt\.api|birt-charts|birt-publish|birt-runtime|birt-charts|org.eclipse.birt.build"/>
</predicate>
</workingSet>
<workingSet
Expand Down

0 comments on commit b00bc5f

Please sign in to comment.