You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2013/03/07 06:15:58 UTC
svn commit: r1453697 -
/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AbstractPomConverter.cs
Author: brett
Date: Thu Mar 7 06:15:57 2013
New Revision: 1453697
URL: http://svn.apache.org/r1453697
Log:
[NPANDAY-578] return AssemblyFoldersEx to non-portable list
We typically need these to be packaged and used, which won't happen for system
dependencies - therefore only the framework ones should be a system path. When
this option is enabled, it is recommended that you copy them to a Maven
repository in the final dialog.
Modified:
incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AbstractPomConverter.cs
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AbstractPomConverter.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AbstractPomConverter.cs?rev=1453697&r1=1453696&r2=1453697&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AbstractPomConverter.cs (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AbstractPomConverter.cs Thu Mar 7 06:15:57 2013
@@ -790,11 +790,11 @@ namespace NPanday.ProjectImporter.Conver
// resolve from target framework directories
if (refDependency == null && projectDigest.DependencySearchConfig.SearchFramework)
- refDependency = ResolveDependencyFromDirectories(reference, GetTargetFrameworkDirectories(), "target framework");
+ refDependency = ResolveDependencyFromDirectories(reference, GetTargetFrameworkDirectories(), "target framework", false);
// resolve from registered assembly directories
if (refDependency == null && projectDigest.DependencySearchConfig.SearchAssemblyFoldersEx)
- refDependency = ResolveDependencyFromDirectories(reference, GetTargetFrameworkAssemblyFoldersEx(), "extra assembly folder");
+ refDependency = ResolveDependencyFromDirectories(reference, GetTargetFrameworkAssemblyFoldersEx(), "extra assembly folder", true);
// resolve from GAC
if (refDependency == null && projectDigest.DependencySearchConfig.SearchGac)
@@ -851,7 +851,7 @@ namespace NPanday.ProjectImporter.Conver
}
}
- private Dependency ResolveDependencyFromDirectories(Reference reference, Dictionary<string, string> directories, string label)
+ private Dependency ResolveDependencyFromDirectories(Reference reference, Dictionary<string, string> directories, string label, bool warnNonPortable)
{
foreach (KeyValuePair<string, string> entry in directories)
{
@@ -869,10 +869,17 @@ namespace NPanday.ProjectImporter.Conver
// Dependency refDependency = CreateDependencyFromSystemPath(reference, "${" + var + "}/" + reference.Name + ".dll");
Dependency refDependency = CreateDependencyFromSystemPath(reference, path);
- // We do not list these as non-portable, for two reasons:
- // - they should not be copied to the local repository, because there can be multiple conflicting versions in different SDKs
- // (any copying would require a rigorous use of classifiers)
- // - they should not be included in packages (e.g. for MSDeploy), which the system packaging currently avoids
+ if (warnNonPortable)
+ {
+ WarnNonPortableReference(path, refDependency);
+ }
+ else
+ {
+ // We do not list these as non-portable, for two reasons:
+ // - they should not be copied to the local repository, because there can be multiple conflicting versions in different SDKs
+ // (any copying would require a rigorous use of classifiers)
+ // - they should not be included in packages (e.g. for MSDeploy), which the system packaging currently avoids
+ }
log.DebugFormat("Resolved {0} from {1} directories: {2}:{3}:{4}",
reference.Name, label, refDependency.groupId, refDependency.artifactId, refDependency.version);