ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16934] - BuildNumber task does not set property correctly
Date Tue, 11 Feb 2003 14:15:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16934>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16934

BuildNumber task does not set property correctly





------- Additional Comments From rich.naylor@active-endpoints.com  2003-02-11 14:15 -------
      <!-- Increment the build number using the built in ant tag. -->
      <buildnumber file="ae.version"/>
      
      <!-- Now we need to use some javascript manipulation to get the new build 
number. Ant -->
      <!-- sets the build.number property to the previous version instead of 
current one!!  -->
      <script language="javascript"> <![CDATA[
      var lBuildNumber = parseInt(project.getProperty("build.number")) + 1;
      project.setProperty("build.number", lBuildNumber);]]> 
      </script>

Mime
View raw message