Hi Chris,

One possibility:  Buildr expects all .java files to generate corresponding
.class file.  So I would maybe double-check that all your .java files are
appropriately named.

Otherwise, you can run "buildr --trace=java compile" and see what Buildr
outputs.  You may see messages along the lines of,

Compile needed because source file /home/dummy/project/src/main/Foo.java
 has no corresponding /home/dummy/project/target/classes/Foo.class

Or something else may hint at what's happening under the hood.

cheers,
alex

On Wed, Jul 20, 2011 at 8:57 PM, Chris Adams <[email protected]> wrote:

> I sincerely apologize for all the questions this evening.
>
> I'm trying to figure out why buildr keeps recompiling this project, even if
> nothing has changed.
>  desc 'The base webapp libraries which are used by multiple projects'
>  define 'eds-webapp-runtime' do
>    compile.with LOG4J, STRUTS, J2EE.servlet, transitive(J2EE.jsp),
> project('eds-runtime')
>    package(:jar)
>  end
>
> The "eds-runtime" project does not attempt to recompile; however, the
> "eds-webapp-runtime" project executes the compile task every single time.
> There's nothing special or fancy about this project, it only has one single
> /src/main/java folder and the compile task outputs the classes to
> /target/classes as expected.
>
> Does anybody have any ideas what could be causing this project to
> recompile?
> The only thing I could find was the 'transitive' method for the dependency,
> but I couldn't determine why that would matter.
>
> Thanks.
>
> - Chris
>

Reply via email to