[ 
http://jira.codehaus.org/browse/MOJO-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137429#action_137429
 ] 

Petr Sakar commented on MOJO-1141:
----------------------------------

Please se patch2.txt

The change is in this method 

    protected void compile( Set files, SourceMapping mapping )
        throws MojoFailureException, MojoExecutionException
    {
        getLog().info( "Compiling " + files.size() + " report design files." );

FOLOWING WAS ADDED
        getLog().debug( "Set classloader" );
        ClassLoader classLoader = 
Thread.currentThread().getContextClassLoader();
        Thread.currentThread().setContextClassLoader( getClassLoader( 
classLoader ) );

        try
        {

AND CORRESPONDING 
        }
        finally
        {
            if ( classLoader != null )
            {
                Thread.currentThread().setContextClassLoader( classLoader );
            }
        }


plus method at the end creating classloader


> Jasperreports plugin can't compile when the jrxml uses a class from one of 
> the project dependencies
> ---------------------------------------------------------------------------------------------------
>
>                 Key: MOJO-1141
>                 URL: http://jira.codehaus.org/browse/MOJO-1141
>             Project: Mojo
>          Issue Type: Improvement
>          Components: jasperreports
>         Environment: windows XP
>            Reporter: Geoffrey De Smet
>         Attachments: patch.txt, patch2.txt
>
>
> The plugin does build a correct classpath with buildClasspathString(), for 
> example:
> d:\projects\ggg-report\target\classes;C:\Documents and 
> Settings\ge0ffrey\.m2\repository\be\ggg\ggg-api\1.1.3-SNAPSHOT\ggg-api-1.1.3-SNAPSHOT.jar;...
> Notice that it contains spaces, but that shouldn't be a problem as far as I 
> know.
> It nicely does
>             JRProperties.setProperty( JRProperties.COMPILER_CLASSPATH, 
> classpath );
> But apparently jasperreports ignores that parameter:
> http://www.jasperforge.org/sf/go/artf1817

-- 
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


Reply via email to