Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-1188

Gradle daemon caches current working directory

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.9-rc-3

Description

repro:

  1. kill any running daemon
  2. cd <multi-project-root-dir>
  3. ./gradlew build
  4. Notice everything works as expected, all subprojects build
  5. cd <multi-project-root-dir>/<subproject1-dir>
  6. ../gradlew build
  7. Notice that all projects build. This is unexpected; only the leaf node project should build.

This unexpected behavior is appears to be due to the Gradle daemon caching CWD the first time it's run. This amounts to an unusable experience, even within the same multi-project build.

For now, we're running with --no-daemon to avoid this.

It is also a problem when working across projects. Starting the daemon in project1 means that any gradle invocations from project2 will inadvertently trigger builds in project1 – not exactly what's expected.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Adam Murdoch made changes - 08/Nov/10 3:38 PM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 0.9 [ 15625 ]
Adam Murdoch made changes - 24/Nov/10 1:58 PM
Resolution Fixed [ 1 ]
Status Closed [ 6 ] Reopened [ 4 ]
Adam Murdoch made changes - 24/Nov/10 2:00 PM
Fix Version/s 0.9-rc-3 [ 16954 ]
Fix Version/s 0.9 [ 15625 ]
Adam Murdoch made changes - 24/Nov/10 2:32 PM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Closed [ 6 ]
Contegix Support made changes - 19/Mar/11 9:23 AM
Project Import Sat Mar 19 09:23:24 CDT 2011 [ 1300544604020 ]
Daz DeBoer made changes - 03/Aug/11 3:30 PM
Workflow jira [ 12600 ] jira with pivotal tracker [ 14569 ]
Luke Daley made changes - 03/Jan/13 5:08 AM
Workflow jira with pivotal tracker [ 14569 ] jira with pivotal tracker (no resolved, only closed) [ 16187 ]
Luke Daley made changes - 04/Jan/13 5:09 AM
Status Closed [ 6 ] Resolved [ 5 ]
Workflow jira with pivotal tracker (no resolved, only closed) [ 16187 ] Copy of jira with pivotal tracker (no closed, only resolved) [ 18851 ]

People

  • Assignee:
    Hans Dockter
    Reporter:
    Chris Beams
Vote (1)
Watch (1)

Dates

  • Created:
    26/Oct/10 10:26 AM
    Updated:
    04/Jan/13 5:09 AM
    Resolved:
    24/Nov/10 2:32 PM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.