Skip to content

Conversation

eed3si9n
Copy link
Member

@eed3si9n eed3si9n commented Dec 9, 2024

This is a backport of #7932

Problem

It's currently not easy to write a scripted test that works on both sbt 1.x and 2.x when you want to write exists test under target.

Solution

Since we can only use the file system (and not evaluate Scala version etc)

  1. this implements glob expression support in exists, absent, and delete.
  2. this also introduces || operator that would mean a or b.

**Problem**
It's currently not easy to write a scripted test that works on
both sbt 1.x and 2.x when you want to write exists test under target.

**Solution**
Since we can only use the file system (and not evaluate Scala version etc)
1. this implements glob expression support in `exists`, `absent`, and `delete`.
2. this also introduces `||` operator that would mean a or b.
@eed3si9n eed3si9n merged commit f61100f into sbt:1.10.x Dec 9, 2024
10 checks passed
@eed3si9n eed3si9n deleted the bport/exists branch December 9, 2024 07:55
mzuehlke added a commit to mzuehlke/contraband that referenced this pull request Jan 4, 2025
After support for globs in scripted tests:
* sbt/sbt#7933
* sbt/sbt#7932

The changes introduced in sbt#184 can be simplified again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant