Uploaded image for project: 'NPanday'
  1. NPanday
  2. NPANDAY-632

NPE when using netHome maven configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0-incubating
    • 1.5.0-incubating
    • Maven Plugins
    • None

    Description

      When adding to the ilmerge-plugin the configuration

      <netHome>\Some\Custom\Path<netHome>

      Get an NPE when adding to the executableConfig.getExecutionPaths container before creating it.

      My quick fix was

      ### 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 );
       
      

      Attachments

        Activity

          People

            brett Brett Porter
            gdomjan Greg Domjan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: