瞿绍森
2007-May-29 09:10 UTC
[Cruisecontrolrb-users] How can I use CC.rb to build a java project?
* I want to use CC.rb to buile a java project,but i don`t know how to do it .I use suck a commnd "cruise add sampleproject -u svn://localhost/sampleproject/" to put the subversion to the cc.rb, but when i do "cruise start -p 3333" ,it faild, the following are the errors .so can you tell me how to resove it or give me complete example to buile java project with ccrb? [error] wrong number of arguments (1 for 0) [error] ./script/../config/../app/models/project.rb:245:in `build_loop_failed'' [error] ./script/../config/../app/models/project.rb:245:in `send'' [error] ./script/../config/../app/models/project.rb:245:in `notify'' [error] ./script/../config/../app/models/project.rb:243:in `collect'' [error] ./script/../config/../app/models/project.rb:243:in `notify'' [error] ./script/../config/../app/models/project.rb:161:in `build_if_necessary'' [error] ./script/../config/../app/models/polling_scheduler.rb:13:in `run'' [error] ./script/builder:78 [error] ./script/builder:77:in `catch'' [error] ./script/builder:77 [error] cruise:13:in `load'' [error] cruise:13:in `builder'' [error] cruise:65:in `send'' [error] cruise:65 [error] "\265?? ?\263\243" does not match ''name: value'' pattern [error] ./script/../config/../app/models/subversion.rb:37:in `info'' [error] ./script/../config/../app/models/subversion.rb:33:in `each_line'' [error] ./script/../config/../app/models/subversion.rb:33:in `info'' [error] ./script/../config/../lib/command_line.rb:89:in `call'' [error] ./script/../config/../lib/command_line.rb:89:in `e'' [error] ./script/../config/../lib/command_line.rb:87:in `popen'' [error] ./script/../config/../lib/command_line.rb:87:in `e'' [error] ./script/../config/../lib/command_line.rb:74:in `execute'' [error] ./script/../config/../lib/command_line.rb:73:in `chdir'' [error] ./script/../config/../lib/command_line.rb:73:in `execute'' [error] ./script/../config/../app/models/subversion.rb:32:in `info'' [error] ./script/../config/../app/models/subversion.rb:31:in `chdir'' [error] ./script/../config/../app/models/subversion.rb:31:in `info'' [error] ./script/../config/../app/models/subversion.rb:47:in `latest_revision'' [error] ./script/../config/../app/models/project.rb:169:in `new_revisions'' [error] ./script/../config/../app/models/project.rb:151:in `build_if_necessary'' [error] ./script/../config/../app/models/polling_scheduler.rb:13:in `run'' [error] ./script/builder:78 [error] ./script/builder:77:in `catch'' [error] ./script/builder:77 [error] cruise:13:in `load'' [error] cruise:13:in `builder'' [error] cruise:65:in `send'' [error] cruise:65 * -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070529/3a5aee96/attachment.html
Jeff Xiong
2007-May-29 09:15 UTC
[Cruisecontrolrb-users] How can I use CC.rb to build a java project?
It''s a Java project, huh? Please try to create a cruise_config.rb file in your project root, and put following in it: Project.configure do |project| project.build_command = ''ant'' # you may need change this end Have a look at http://cruisecontrolrb.thoughtworks.com/documentation/manual for detail. On 5/29/07, ??? <huasen21 at gmail.com> wrote:> > > I want to use CC.rb to buile a java project,but i don`t know how to > do it .I use suck a commnd "cruise add sampleproject -u > svn://localhost/sampleproject/" to put the subversion to the cc.rb, but > when i do "cruise start -p 3333" ,it faild, the following are the errors > .so can you tell me how to resove it or give me complete example to buile > java project with ccrb? > > > [error] wrong number of arguments (1 for 0) > [error] > ./script/../config/../app/models/project.rb:245:in > `build_loop_failed'' > [error] > ./script/../config/../app/models/project.rb:245:in `send'' > [error] > ./script/../config/../app/models/project.rb:245:in `notify'' > [error] > ./script/../config/../app/models/project.rb:243:in > `collect'' > [error] > ./script/../config/../app/models/project.rb:243:in `notify'' > [error] > ./script/../config/../app/models/project.rb:161:in > `build_if_necessary'' > [error] > ./script/../config/../app/models/polling_scheduler.rb:13:in > `run'' > [error] ./script/builder:78 > [error] ./script/builder:77:in `catch'' > [error] ./script/builder:77 > [error] cruise:13:in `load'' > [error] cruise:13:in `builder'' > [error] cruise:65:in `send'' > [error] cruise:65 > [error] "\265 ?? ?\263\243" does not match ''name: value'' pattern > [error] > ./script/../config/../app/models/subversion.rb:37:in `info'' > [error] > ./script/../config/../app/models/subversion.rb:33:in > `each_line'' > [error] > ./script/../config/../app/models/subversion.rb:33:in `info'' > [error] ./script/../config/../lib/command_line.rb:89:in > `call'' > [error] ./script/../config/../lib/command_line.rb:89:in > `e'' > [error] ./script/../config/../lib/command_line.rb:87:in > `popen'' > [error] ./script/../config/../lib/command_line.rb:87:in > `e'' > [error] ./script/../config/../lib/command_line.rb:74:in > `execute'' > [error] ./script/../config/../lib/command_line.rb:73:in > `chdir'' > [error] ./script/../config/../lib/command_line.rb:73:in > `execute'' > [error] > ./script/../config/../app/models/subversion.rb:32:in `info'' > [error] > ./script/../config/../app/models/subversion.rb:31:in > `chdir'' > [error] > ./script/../config/../app/models/subversion.rb:31:in `info'' > [error] > ./script/../config/../app/models/subversion.rb:47:in > `latest_revision'' > [error] > ./script/../config/../app/models/project.rb:169:in > `new_revisions'' > [error] > ./script/../config/../app/models/project.rb:151:in > `build_if_necessary'' > [error] > ./script/../config/../app/models/polling_scheduler.rb:13:in > `run'' > [error] ./script/builder:78 > [error] ./script/builder:77:in `catch'' > [error] ./script/builder:77 > [error] cruise:13:in `load'' > [error] cruise:13:in `builder'' > [error] cruise:65:in `send'' > [error] cruise:65 > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >-- Jeff Xiong Software Journeyman - http://gigix.thoughtworkers.org Open Source Contributor - http://rubyworks.rubyforge.org Technical Evangelist - http://www.infoq.com/cn/