You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-dev@incubator.apache.org by "Brett Porter (JIRA)" <ji...@apache.org> on 2014/07/14 03:40:04 UTC

[jira] [Resolved] (NPANDAY-632) NPE when using netHome maven configuration

     [ https://issues.apache.org/jira/browse/NPANDAY-632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter resolved NPANDAY-632.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.0-incubating
         Assignee: Brett Porter

> NPE when using netHome maven configuration
> ------------------------------------------
>
>                 Key: NPANDAY-632
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-632
>             Project: NPanday
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: 1.5.0-incubating
>            Reporter: Greg Domjan
>            Assignee: Brett Porter
>             Fix For: 1.5.0-incubating
>
>
> When adding to the ilmerge-plugin  the configuration
> {code}<netHome>\Some\Custom\Path<netHome>{code}
> Get an NPE when adding to the executableConfig.getExecutionPaths container before creating it.
> My quick fix was 
> {code}
> ### Eclipse Workspace Patch 1.0
> #P org.apache.npanday.dotnet-executable
> Index: src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java
> ===================================================================
> --- src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java	(revision 1609378)
> +++ src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java	(working copy)
> @@ -85,6 +85,8 @@
>              ? new ArrayList<String>()
>              : executableConfig.getExecutionPaths();
>  
> +        executableConfig.setExecutionPaths( executablePaths );
> +
>          if ( netHome != null )
>          {
>              getLogger().info( "NPANDAY-066-014: Found executable path in pom: Path = " + netHome.getAbsolutePath() );
> @@ -92,8 +94,6 @@
>          }
>  
>  
> -        executableConfig.setExecutionPaths( executablePaths );
> -
>          final ExecutableCapability executableCapability =
>                      capabilityMatcher.matchExecutableCapabilityFor( executableRequirement );
>  
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)