On Thu, Feb 13, 2014 at 2:14 AM, Luke Daley <luke.da...@gradleware.com>wrote:
> Hi, > > http://forums.gradle.org/gradle/topics/incremental_build_state_should_be_ > decoupled_from_workspace_location > > I imagine that guaranteeing that the task artifact cache is completely > portable would be quite difficult, but could we make all paths relative? > This might be good enough portability in some use cases (though admittedly > I don't know much about that machinery so that could be a grossly > inaccurate statement). > > I agree that we should make paths relative where possible. Relative to project dir or gradle_user_home or gradle installation. Remaining parts are external dependencies. Some of them are expected (system header files, JDK installation) the rest should often be avoided. BTW the motivation for the topic comes from that problem with build pipelines on CI server: how to reuse results from one build job in another one. Making paths relative can help in some cases. If will not help if I build & unit test my app on one OS and then start functional tests on Linux/Win/Mac and avoid rebuilds. One idea is to play with dependencies - my local run of funcTest can depend on source build (main sourceSet) and CI server will pass a flag to change it to a dependency on an artifact built by previous job. Does it makes sense? Is it something what we want to promote? > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >