Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

buildr: specify project base dir

Tags:

buildr

I'm new to buildr so apologies if this is trivial.

I refactored all my projects so that they now follow the Apache convention (src/main/java etc) but I have one big java project which is divided into three logical sub projects.

In other words my directory structure looks something like this:

[root]
  buildfile
  [project-a]
  [project-b]
  [directory-for-projects-c-d-e]
     [project-c]
     [project-d]
     [project-e]

Each individual project follows the Apache convention, but the problem is that buildr thinks [directory-for-projects-c-d-e] is, itself, a project.

I managed to use base_dir= to set the base directory for projects c,d and e - but buildr does not output to the correct target directories for these 3 projects.

Is there a quick fix for this? Or do I need to define a new layout just to specify a different base_dir? (seems odd, if that's the case).

I would prefer not to have to move projects c,d,e up one level because the current logical grouping makes a lot of sense.

Many thanks.

like image 305
David Semeria Avatar asked Feb 23 '26 16:02

David Semeria


1 Answers

You should use base_dir=, here is the doc.

like image 76
Antoine Toulme Avatar answered Feb 27 '26 03:02

Antoine Toulme



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!