Changeset 15502 for trunk/abcl/build.xml


Ignore:
Timestamp:
05/10/21 13:10:29 (23 months ago)
Author:
Mark Evenson
Message:

build: deprecate use of abcl.implementation.version

Use abcl.version instead, fixing manifests for jar packaging.

The usage of abcl.implementation.version is now deprecated as not
working for a long time. The intention was that if a
given source tree could be unidentified as being under source control
by the presence of given revision control system artifacts, the
abcl.implementation.version would contain a version derived from the
revision control system.

To hack around the non-prescriptive nature of Ant, chains of
conditional targets had to be created that while might have once
worked for Subversion, were going to get increasingly hairy for
Mercurial and Git.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/build.xml

    r15495 r15502  
    431431    </target>
    432432
     433    <!--
     434The usage of abcl.implementation.version is deprecated as not working.
     435The intention of this value was that if a given source tree could be
     436unidentified as being under source control by the presence of given
     437revision control system artifacts, the abcl.implementation.version
     438would contain a version derived from the revision control system.
     439
     440To hack around the non-prescriptive nature of Ant, chains of
     441conditional targets had to be created that while might have once
     442worked for Subversion, were going to get increasingly hairy for
     443Mercurial and Git.
     444    -->
     445
    433446    <target name="abcl.stamp.version"
    434447            depends="abcl.version.src,abcl.stamp.version.1,abcl.stamp.version.2"
     
    511524                       value="ABCL"/>
    512525            <attribute name="Implementation-Version" 
    513                        value="${abcl.implementation.version}"/>
     526                       value="${abcl.version}"/>
    514527            <attribute name="Implementation-Build"
    515528                       value="${build}"/>
     
    521534    </target>
    522535
    523     <target name="abcl-aio.jar" depends="abcl.compile,abcl.stamp">
     536    <target name="abcl-aio.jar"
     537            depends="abcl.jar.uptodate">
    524538      <mkdir dir="${dist.dir}"/>
    525539      <jar destfile="${abcl-aio.jar.path}"
     
    544558                       value="ABCL"/>
    545559            <attribute name="Implementation-Version" 
    546                        value="${abcl.implementation.version}"/>
     560                       value="${abcl.version}"/>
    547561            <attribute name="Implementation-Build"
    548562                       value="${build}"/>
     
    553567            <!-- FIXME: declare separate abcl-contrib version? -->
    554568            <attribute name="Implementation-Version" 
    555                        value="${abcl.implementation.version}"/>
     569                       value="${abcl.version}"/>
    556570          </section>
    557571          <section name="tools">
     
    563577                       value="org.abcl-source"/>
    564578            <attribute name="Implementation-Version" 
    565                        value="${abcl.implementation.version}"/>
     579                       value="${abcl.version}"/>
    566580          </section>
    567581        </manifest>
Note: See TracChangeset for help on using the changeset viewer.