Questions tagged [buildr]

A build tool for Java, Scala, Groovy, and other JVM-based projects.

Apache Buildr in its own words:

Apache Buildr is a build system for Java-based applications, including support for Scala, Groovy and a growing number of JVM languages and tools. We wanted something that’s simple and intuitive to use, so we only need to tell it what to do, and it takes care of the rest. But also something we can easily extend for those one-off tasks, with a language that’s a joy to use. And of course, we wanted it to be fast, reliable and have outstanding dependency management.

Buildr is based on the ruby build tool rake, can use ant tasks, and retrieves dependencies from maven repositories.

137 questions
2
votes
1 answer

How do I tell ivy4r to stay offline?

We recently switched from Ant to Buildr for building our projects. We use Ivy for dependency management, using the ivy4r Buildr extension. We have a local repository at the office which is used as a cache for public artifacts and in which we also…
jackrabbit
  • 5,525
  • 1
  • 27
  • 38
2
votes
1 answer

Buildr - Filter web.xml in packaging war

Is it possible to filter the web.xml file when packaging a war using Buildr? Buildr documentation: Without much prompting, package :war picks the contents of the src/main/webapp directory and places it at the root of the WAR I have a place…
Ross
  • 3,008
  • 1
  • 22
  • 27
2
votes
2 answers

Unable to run buildr on windows

I have Windows XP installed and I am trying to run buildr on it, I have never used Ruby before. I followed instructions on the buildr website, i.e.: Installed Ruby 1.8.6 for windows using Ruby Installer Set JAVA_HOME env variable to point to my JDK…
Ross
  • 3,008
  • 1
  • 22
  • 27
2
votes
1 answer

How to Jar and Zip Project?

How can I package a jar file (packaged via buildr) and script files into a zip file? The jar file is created as per the buildfile: define "myapp" do ... package(:jar) ... end I tried Zip Task, but it didn't work.
tmore
  • 693
  • 1
  • 6
  • 6
2
votes
3 answers

Ruby on Windows7 - could not find gem

I'm setting up a ruby Apache Buildr on a fresh Windows 7 machine. I've installed Ruby, the DevKit and installed buildr via gem install buildr wich all ran perfect. Until I tried to execute buildr, then I get an error. buildr compile …
Joris Timmerman
  • 1,482
  • 14
  • 25
2
votes
1 answer

passing classpath to custom tasks in java/scala based project within buildr

I am using buildr to build my scala project and suppose I want to run a main program among the source code, I need to define custom task within buildr which is very easy. However, how can I pass the classpath dependency automatically?(i.e) suppose…
Ajay
  • 977
  • 2
  • 11
  • 23
2
votes
1 answer

Trying to build Apache ODE source code with Buildr

i am trying to build APACHE ODE source code with Buildr using Ruby. I installed ruby and installed Buildr with it, but when i run the command rake package on the root of APACHE ODE source code it gives me this error C:\workspace2\APACHE_ODE_1.X>rake…
Moon13
  • 283
  • 1
  • 5
  • 15
2
votes
1 answer

Buildr, RSpec—pass build parameter to test

I have »buildr« »buildfile« which triggers some »rspec« tests. I would like to pass some path parameters to the tests, so that It wont cause trouble to load test-resources files. In the »buildfile« I have got this code to trigger the…
philipp
  • 15,947
  • 15
  • 61
  • 106
2
votes
1 answer

Ruby/Buildr―getting user-, host and OS-name

I am looking for an robust, elegant and portable solution to get the user-, host- and osname in Ruby. I would like to create a folder structure which is set up like this: linux/maschine1/user53, or linux/maschine2/user53, or…
philipp
  • 15,947
  • 15
  • 61
  • 106
2
votes
2 answers

Buildr failing with "unable to download ant"

When trying to build this project: project_layout = Layout.new project_layout[:source,:main,:java] = 'src' project_layout[:source,:test,:java] = 'test' define 'hausaufgaben', :layout => project_layout do project.version = '1.0' package…
Cubic
  • 14,902
  • 5
  • 47
  • 92
2
votes
1 answer

How can I run buildr with dependencied defined in pom.xml (buildr + eclipse + maven : integration)

We are using buildr as the build tool for our projects. However, it is time that dependencies a big in the several project we have and building new eclipse environments become a hard task. The first I wanted to do is to have kind of eclipse project…
urir
  • 1,960
  • 3
  • 23
  • 40
2
votes
1 answer

Sonar and Apache Buildr

can anyone tell me how to integrate Sonar and Apache Buildr? I downloaded sonar.rb from https://github.com/apache/buildr and placed it in /var/lib/gems/1.8/gems/buildr-1.4.6/addon/buildr But I don't know how to call this task from my project. I…
Soccertrash
  • 1,830
  • 3
  • 28
  • 48
2
votes
1 answer

Example of using Buildr with Ivy?

We are looking at migrating our build system from Ant+Ivy to something else, and Buildr is one of the possibilities. However, it doesn't appear to support Ivy out of the box, and we have no desire to convert our in-house Ivy repo and ivy.xml files…
Ryan Nelson
  • 4,466
  • 5
  • 29
  • 45
1
vote
1 answer

How can buildr be instructed to generate a facted eclipse .project configuration?

I'm developing a web-project with jsp and JAX-RS. If I run buildr eclipse, buildr generates a simple Java project. How can I instruct buildr to generate an eclipse project facet including "Dynamic Web Module", "Java", "JavaScript", and "JAX-RS"?…
koppor
  • 19,079
  • 15
  • 119
  • 161
1
vote
1 answer

Continuous packaging with buildr

Apache buildr offers continuous compilation. JSPs, however, can only be served in tomcat. The first idea is to run buildr package and copy the war into tomact. As deployment in tomcat takes some time, I copy the target directory directly into a…
koppor
  • 19,079
  • 15
  • 119
  • 161
1 2
3
9 10