Changeset e68182a for build.xml


Ignore:
Timestamp:
Oct 10, 2018 12:30:34 PM (20 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
2de36ee, 4887707
Parents:
06914f9
Message:

Build: Provide option to prevent Class-Path in manifests (ticket #2317)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r06914f9 re68182a  
    444444    </target>
    445445
    446     <target name="buildProperties" depends="getMtnRev, getReleaseNumber, getBuildNumber, setBuildTimestamp" >
     446    <target name="buildProperties" depends="getMtnRev, getReleaseNumber, getBuildNumber, setBuildTimestamp, disableManifestClasspath" >
    447447        <!-- default if not set above -->
    448448        <property name="workspace.version" value="unknown" />
    449449        <!-- default if not set by setBuildTimestamp -->
    450450        <property name="build.timestamp" value="reproducible" />
     451        <!-- default if not set by disableManifestClasspath -->
     452        <property name="manifest.classpath.name" value="Class-Path" />
    451453        <property name="full.version" value="${release.number}-${i2p.build.number}${build.extra}" />
    452454        <echo message="Building version ${full.version} (mtn rev ${workspace.version})" />
     
    457459            <format property="build.timestamp" pattern="yyyy-MM-dd HH:mm:ss z" timezone="UTC" locale="en" />
    458460        </tstamp>
     461    </target>
     462
     463    <!-- Disable Class-Path in jar manifests by renaming it (Fedora) -->
     464    <target name="disableManifestClasspath" if="${without-manifest-classpath}" >
     465        <property name="manifest.classpath.name" value="Disabled-Class-Path" />
    459466    </target>
    460467
Note: See TracChangeset for help on using the changeset viewer.