buildr

Create War file using Buildr


I am very much new to buildr. I am trying to create war file using buildr as i installed Jruby and buildr on my system but i am not able to build the war file.

buildfile content:

    repositories.remote << "http://repo1.maven.org/maven2"

        define "Sample", :version=>"1.0.0" do

           package :war

       end

I run the command

buildr build

from cmd it showing the result like

building Sample completed in xx seconds

but i am not able to see any war file

Kindly help me I am not sure where i am missing or doing any wrong step

Thanks.


Solution

  • The build command doesn't package the .war file.

    Try buildr package.