maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <>
Subject [jira] Commented: (MINVOKER-63) Inject some Verifier-like component into the scripts to ease common assertions
Date Tue, 16 Sep 2008 11:05:48 GMT


Benjamin Bentmann commented on MINVOKER-63:

Some first thoughts on the API of this Asserter component:

- setCurrentDirectory(String/File path)
- assertFile(String/File path)
- assertDirectory(String/File path)
- assertNotPath(String/File path)
- assertNotPaths(String includes, String excludes)
- assertFileContents(String/File path, String encoding, String regex)

- setCurrentArchive(String/File path)
- assertArchiveEntry(String path)
- assertNotArchiveEntry(String path)
- assertNotArchiveEntries(String includes, String excludes)
- assertArchiveEntryContents(String path, String encoding, String regex)

- dispose()

The archive assertions should be reviewed to support nested archives.

> Inject some Verifier-like component into the scripts to ease common assertions
> ------------------------------------------------------------------------------
>                 Key: MINVOKER-63
>                 URL:
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.2.1
>            Reporter: Benjamin Bentmann
> Many pre-/post-build hook scripts share very similar patterns to check for existence/absence
of files, JAR entries etc. Those scripts could be greatly condensed if the Invoker Plugin
provided a Verifier-like component to perform these common assertions using dedicated methods.
In detail, offer {{Verifier.assert*()}} for the scripts.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message