Changeset 7343e0f


Ignore:
Timestamp:
Aug 10, 2011 11:44:47 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
a29fd1e
Parents:
915755b
Message:

fix getBuildNumber target (sometimes the buildNumber would have a leading
space, such as " 19" instead of "19"), using "tr" to strip it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r915755b r7343e0f  
    413413        <exec executable="grep" outputproperty="buildLine" >
    414414            <arg value="public final static long BUILD" />
    415             <arg value="router/java/src/net/i2p/router/RouterVersion.java" />
     415            <arg value="router/java/src/net/i2p/router/RouterVersion.java" />
    416416        </exec>
    417417        <exec executable="cut" inputstring="${buildLine}" outputproperty="build.temp" failonerror="true" >
    418418            <arg value="-f2" />
    419             <arg value="-d=" />
    420         </exec>
    421         <exec executable="cut" inputstring="${build.temp}" outputproperty="build.number" failonerror="true" >
     419            <arg value="-d=" />
     420        </exec>
     421        <exec executable="tr" inputstring="${build.temp}" outputproperty="build.temp.tr" failonerror="true">
     422            <arg value="-d" />
     423            <arg value="[:space:]"/>
     424        </exec>
     425        <exec executable="cut" inputstring="${build.temp.tr}" outputproperty="build.number" failonerror="true" >
    422426            <arg value="-f1" />
    423             <arg value="-d;" />
     427            <arg value="-d;" />
    424428        </exec>
    425429        <echo message="Build number is ${build.number}" />
Note: See TracChangeset for help on using the changeset viewer.