apache / apache/maven-build-cache-extension

[MBUILDCACHE-124] <dirName glob> doesn't capture the same files as <dirName> without glob

Open
#289 0 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
163
Forks
77
Avg merge
1d 2h
Merged PRs (30d)
4

Description

**[Gili](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cowwoc)** opened **[MBUILDCACHE-124](https://issues.apache.org/jira/browse/MBUILDCACHE-124?redirect=false)** and commented

In maven-build-cache-config.xml, if I specify:

 

```java


classes


```

it works fine, but if I specify:

```java





```

Then only one file is captured inside the target/classes directory (Dockerfile, in my case) and all the properties and class files are excluded.

I am expecting both approaches to result in the same files getting included.

---

**Affects:** 1.2.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the attachedOutputs and dirName glob configuration in maven-build-cache-config.xml, then reproduce both configurations against target/classes. Compare the captured files, including Dockerfile, properties, and class files; done means the glob form captures the same files as the non-glob form.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.