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
1
vote
2 answers

Build android apk with apache buildr

Trying to build my android project with Buildr (Apache), but can't find any info on how to do it, and my attempts all fail. A example buildfile or a "no it dosent work" answer would be good :)
Carl-Emil Kjellstrand
  • 1,233
  • 1
  • 10
  • 17
1
vote
1 answer

Using buildr for non compilation tasks

I want to use buildr for task automation. The feature I want to use is the buildr cc which (by default) runs compilation when source folder is changed. My goal is to setup buildr for a specific directory to execute a custom task (e.g.a system…
takacsot
  • 1,727
  • 2
  • 19
  • 30
1
vote
1 answer

Buildr Manifest generate class-path from EAR package

I am using (and learning) Buildr to build and package my projects. I would like to auto generate the class-path attribute in an EJB projects MANIFEST file. Currently I am doing: manifest_cp = compile.dependencies.map { |d| …
Ross
  • 3,008
  • 1
  • 22
  • 27
1
vote
2 answers

Using generated sources in a buildr project

I'm trying to use a code generator inside a buildr-based java project. I would like to... call the generator compile the generated classes, package them eclipse to see the generated stuff (i.e. have the .classpath contain those sources) I've spend…
alvi
  • 2,622
  • 1
  • 22
  • 34
1
vote
1 answer

Managing and Building Erlang Apps

Is it possible to use Buildr or Gradle to manage Erlang project deps and build/package the app itself?
kin1
  • 355
  • 2
  • 3
  • 12
1
vote
3 answers

How to Locate Target Directory

Does buildr have pre-defined variables, like capistrano, for directories like 'target', 'reports', etc? If not, rather than hard-coding the location of these directories, how else can we locate/determine these paths? The end goal is to create a…
tmore
  • 693
  • 1
  • 6
  • 6
1
vote
1 answer

Why is grep Failing to Find Matches on my Groovy Dependencies?

Does anyone know why the following code returns an empty array? Thanks. groovyc_deps = Buildr::Groovy::Groovyc.dependencies groovy_jar = groovyc_deps.grep /.*groovy.*\.jar/ p groovy_jar # => []
dakin
  • 79
  • 1
  • 4
1
vote
1 answer

Print new line with rake/buildr

I am using buildr and I am trying to print all of my command line arguments to standard out. I have been unable to find much documentation on the print function for buildr or for rake (which buildr was built from). I already have the…
mikewied
  • 5,273
  • 1
  • 20
  • 32
1
vote
2 answers

Where do I put my Buildr Integration tests?

I have a Java application that uses buildr. My unit test are located in : src/test/java The buildr doco talks about support for integration tests but where do I put my integration tests? how to I separate them from unit tests?
Sam
  • 6,240
  • 4
  • 42
  • 53
1
vote
1 answer

Buildr doesn't find JAVA_HOME from Intellij

I have Buildr installed on Ubuntu and it works fine running from command line. I've also installed the Buildr plugin for Intellij IDEA. But I can't run commands such as compile from the IDE. It gives the following message: /usr/local/bin/buildr…
Otavio Macedo
  • 1,542
  • 1
  • 13
  • 34
1
vote
1 answer

how to copy dependencies to a directory in buildr?

I have ./lib directory in my project, how can i copy dependencies to this directory in buildr?
Murphy.Cong
  • 13
  • 1
  • 4
1
vote
2 answers

buildr multiple ant versions when testing

When using Apache Buildr, the project pulls in ant 1.6.5 as a dependency. It seems that when testing the project, Buildr uses ant 1.8.0 and puts it on the classpath. JUnit complains about multiple ant versions. It is possible to…
ron
  • 9,262
  • 4
  • 40
  • 73
1
vote
1 answer

is it possible to have eclipse compile its classes in another directory than buildr's?

I'm using buildr 1.4.4 with eclipse. I do generate my eclipse files with buildr eclipse and it works fine. But it seems to me that .class files are completely different when eclipse compiles and when buildr compiles (it's OK, I know eclipse uses…
Jean-Philippe Caruana
  • 2,617
  • 4
  • 25
  • 47
1
vote
2 answers

Buildr ruby error, can't convert Rake::FileTask into String

I have the following buildr buildfile segment: require "buildr/protobuf" .... define "protobuf-stuff" do pbs = protoc( Dir[_("pbsrc/some/pkg/*.proto")], { :include => [_("pbsrc")], }) comp =…
ron
  • 9,262
  • 4
  • 40
  • 73
1
vote
1 answer

How to conditionally include one of two files in a .war package with Buildr?

We're using Buildr to package an application as a .war file. To streamline the automated deployment process further, I'd like to conditionally select one of these two files (from the directory…
Jonik
  • 80,077
  • 70
  • 264
  • 372