#3 buildNumProperty Task attribute Patch

Next_Release
closed
1
2004-05-25
2004-05-14
No

Enclosed is a patch which adds a "buildNumProperty"
attribute to the ant task.

It can be used to specify the name of the property
which will hold the build number.

For example:

<jreleaseinfo
targetDir="src"
className="ReleaseInfo"
packageName="com.example.mypackage"
version="1.0.0"
buildumfile="buildnum.properties"
buildnumproperty="buildnum">
</jreleaseinfo>

<echo message="The current build number is
${buildnum}" />

which I think is a lot more efficient (and easier ) than
doing:

<property file="buildnum.properties" />
<echo message="The current build number is
${build.num.last}" />

Hope this helps,

E.

Discussion

  • Roland Gisler

    Roland Gisler - 2004-05-20
    • status: open --> pending
     
  • Roland Gisler

    Roland Gisler - 2004-05-20
    • assigned_to: nobody --> tcotting
     
  • Roland Gisler

    Roland Gisler - 2004-05-25
    • priority: 5 --> 1
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks