Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.4.4
-
None
-
None
-
Mac OS X 10.6.5, Java 1.6.0_22, buildr 1.4.4
Description
I have a multi-module project that I'd like to be able to use continuous compilation on as a whole. Currently if I run the cc task on a leaf project everything works fine. But if I run the cc task on the root, it doesn't seem to detect any changes anywhere in the project tree. It seems like it's not properly recursing.
It's a little clunky, but here's a simple bash script that will generate a simple project that demonstrates the problem:
children="A B C" for child in ${children}; do dir="child${child}/src/main/java" mkdir -p "${dir}" file="${dir}/Main.java" touch "${file}" echo "public class Main {" >> "${file}" echo " public static void main(String[] args) {" >> "${file}" echo " System.out.println(\"Hello World From child${child}\");" >> "${file}" echo " }" >> "${file}" echo "}" >> "${file}" done buildfile="buildfile" touch "${buildfile}" echo "define \"root\" do" >> "${buildfile}" echo " project.version = \"1.0\"" >> "${buildfile}" echo "" >> "${buildfile}" for child in ${children}; do echo " define \"child${child}\" do" >> "${buildfile}" echo " package :jar" >> "${buildfile}" echo " end" >> "${buildfile}" done echo "end" >> "${buildfile}"