Skip to content

Fail when the EJB source directory cannot be created #195 - #234

Open
AzazelSensei wants to merge 1 commit into
apache:masterfrom
AzazelSensei:fix-195-mkdirs
Open

AzazelSensei wants to merge 1 commit into
apache:masterfrom
AzazelSensei:fix-195-mkdirs

Conversation

@AzazelSensei

Copy link
Copy Markdown

When the EJB source directory is missing, execute() warned and called mkdirs() without checking the result. I throw MojoExecutionException if the directory still does not exist, and I reworded the warning as in #195.

Unit test covers the case where mkdirs() cannot create the path.

  • I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004

@slachiewicz slachiewicz added the bug Something isn't working label Oct 29, 2026
@Bukama

Bukama commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

@AzazelSensei Could you please rebase the branch, so we can bring this to an end :)

Check mkdirs() in execute() and throw MojoExecutionException if the
directory still does not exist. Also fix the empty-jar warning wording.
@github-actions

Copy link
Copy Markdown

⚠️ License declaration missing

The pull request description must contain at least one of the following lines with a checked box ([x]):

- [ ] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
- [ ] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).

This comment will be hidden automatically once the description is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants