maven-issues mailing list archives

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

    [ http://jira.codehaus.org/browse/MINVOKER-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148086#action_148086
] 

Benjamin Bentmann commented on MINVOKER-63:
-------------------------------------------

Not sure whether we need those. I currently have a simple/lightweight POJO class in mind (i.e.
not a component in the Plexus sense) that just has some constructors for initialization and
that's it. The {{dispose()}} is intended to release resources like file handles on archives.
However, it's not fully thought up (at least on my side ;-) ).

To further illustrate the intended usage:
{code:java|title=In the Invoker Plugin}
// setup the asserter for the current IT
Asserter asserter = new Asserter();
asserter.setCurrentDirectory( basedir );

// pass it on to the script interpreter as a global variable
runHookScript( ..., asserter );

// tidy up
asserter.dispose();
{code}
{code:java|title=In the Hook Script}
asserter.assertFile( "target/foo-1.0.jar" );
asserter.setCurrentDirectory( "target/exploded" );
asserter.assertFile( "WEB-INF/lib/bar-1.0.jar" );
{code}

> Inject some Verifier-like component into the scripts to ease common assertions
> ------------------------------------------------------------------------------
>
>                 Key: MINVOKER-63
>                 URL: http://jira.codehaus.org/browse/MINVOKER-63
>             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: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message