NPanday
  1. NPanday
  2. NPANDAY-560

[regression to NPANDAY-231] Resolve attached *.exe.config / or any other known attachment

    Details

      Description

      Code that got removed

      
      if ( !ArtifactTypeHelper.isDotnetExecutableConfig( type ) || !dotnetFile.exists() )// TODO: Generalize to any attached artifact
                          {
                              logger.warning( "NPANDAY-180-018: Not found in local repository, now retrieving artifact from wagon:"
                                      + assembly.getId()
                                      + ", Failed Path Check = " + dotnetFile.getAbsolutePath());
      
                              try
                              {
                                  artifactResolver.resolve( assembly, artifactRepositories,
                                                            localArtifactRepository );
      
                                  projectDependency.setResolved( true );
                                  
                                  if ( assembly != null && assembly.getFile().exists() )
                                  {
                                      dotnetFile.getParentFile().mkdirs();
                                      FileUtils.copyFile( assembly.getFile(), dotnetFile );
                                      assembly.setFile( dotnetFile );
                                  }
                              }
                              catch ( ArtifactNotFoundException e )
                              {
                                  logger.log(Level.SEVERE, "NPANDAY-180-0201: Error resolving artifact. Reason:", e);
                                  throw new ProjectDaoException(
                                                         "NPANDAY-180-020: Problem in resolving artifact: Artifact = "
                                                             + assembly.getId()
                                                             + ", Message = " + e.getMessage(), e );
                              }
                              catch ( ArtifactResolutionException e )
                              {
                                  logger.log( Level.SEVERE, "NPANDAY-180-019: Problem in resolving artifact: Artifact = "
                                                    + assembly.getId()
                                                    + ", Message = " + e.getMessage(), e );
                                  throw new ProjectDaoException(
                                                         "NPANDAY-180-019: Problem in resolving artifact: Artifact = "
                                                             + assembly.getId()
                                                             + ", Message = " + e.getMessage(), e );
                              }
                          }
                          artifactDependencies.add( assembly );
      

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          802d 14h 55m 1 Brett Porter 09/Jul/14 02:56
          Brett Porter made changes -
          Link This issue relates to NPANDAY-247 [ NPANDAY-247 ]
          Brett Porter made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Brett Porter [ brettporter ]
          Resolution Won't Fix [ 2 ]
          Hide
          Brett Porter added a comment -

          As the TODO indicated, and per NPANDAY-247, this wasn't really complete. Suggest leaving it out, and if it's needed in future, follow through on that ticket and perhaps follow the same approach as was used for PDBs, etc.

          Show
          Brett Porter added a comment - As the TODO indicated, and per NPANDAY-247 , this wasn't really complete. Suggest leaving it out, and if it's needed in future, follow through on that ticket and perhaps follow the same approach as was used for PDBs, etc.
          Lars Corneliussen made changes -
          Field Original Value New Value
          Link This issue is broken by NPANDAY-231 [ NPANDAY-231 ]
          Lars Corneliussen created issue -

            People

            • Assignee:
              Brett Porter
              Reporter:
              Lars Corneliussen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development