From: Dirk B. <bro...@tz...> - 2004-09-14 13:37:11
|
Thanks. I've used the Mantis API. We've now a Version called "next Release" in each project. When you resolve a bug you select the "next Release" and when you deploy the jar with ant, our build script calles a php script with the "release name" witch renames the "next Release" to "release name" and sets set released property to true. Then the php script inserts a new "next Release" version with the released property=false.... and it works great :-) now the mantis change log has automated version numbers (and the developer how fixes the bug must not know the next release number...) I think Mantis comes over us :-) step by step.... Dirk Victor Boctor schrieb: >Hi Dirk, > > > >>we are using the Version Field for the change log and our versions are >> >> > > > >>generated at our build process by "ant" >>-> java_1_0_1.jar ..... >> >> > > > >>now we think about a way to insert the next version by a ant call. >> >> > > > >>i think there are two ways: >> >> > > > >>1. make an direct sql call and insert the new value >>2. write an php side to insert a by url given value >> >> > > > >>what do you think is the best way to do something like this?? >> >> > >I didn't use Ant, however, I use NAnt which is an Ant clone. If I were >you I would implement a console PHP script that reads the project name / >version name from the command line and adds the version, this should use >APIs rather than direct SQL. Then use the "Exec" task to execute this >script using the console version of PHP. > >The script should use auth_attempt_script_login() that is available in >0.19.0 to login, then do the required action. > >Regards, >Victor > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 >Project Admins to receive an Apple iPod Mini FREE for your judgement on >who ports your project to Linux PPC the best. Sponsored by IBM. >Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php >_______________________________________________ >Mantisbt-dev mailing list >Man...@li... >https://lists.sourceforge.net/lists/listinfo/mantisbt-dev > > |