[
http://jira.codehaus.org/browse/MEXEC-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131677#action_131677
]
Benjamin Bentmann commented on MEXEC-26:
----------------------------------------
bq. Unfortunately it seems that getTestArtifacts() doesn't list the test
dependencies
Jerome, did you try [EMAIL PROTECTED] test}}?
> Wrong classpath for the phases Test and Integration-Test
> --------------------------------------------------------
>
> Key: MEXEC-26
> URL: http://jira.codehaus.org/browse/MEXEC-26
> Project: Maven 2.x Exec Plugin
> Issue Type: Bug
> Affects Versions: 1.0, 1.0.1, 1.0.2, 1.1-beta-1
> Environment: all
> Reporter: Matthias Pfau
> Fix For: 1.1
>
> Attachments: MEXEC-26.diff
>
>
> The Method {{ExecMojo.computeClasspath}} does not recognize which phase it is
> in. This means that you won't have any test-classes on your classpath if you
> use the plugin in a test or integration-test phases.
> The classpath for the test and integration-test phases should include
> {{/target/classes}} and {{/target/test-classes}} In my opinion
> {code}
> // FIXME check project current phase?
> // we should probably add the output and testoutput dirs based on the
> Project's phase
> if ( true )
> {
> if ( theClasspath.length() > 0 )
> {
> theClasspath.append( File.pathSeparator );
> }
> theClasspath.append( project.getBuild().getOutputDirectory() );
> }
> if ( false )
> {
> if ( theClasspath.length() > 0 )
> {
> theClasspath.append( File.pathSeparator );
> }
> theClasspath.append( project.getBuild().getTestOutputDirectory()
> );
> }
> {code}
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email