incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r559343 - /incubator/nmaven/branches/SI_GAC/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/PathUtil.cs
Date Wed, 25 Jul 2007 07:27:54 GMT
Author: sisbell
Date: Wed Jul 25 00:27:53 2007
New Revision: 559343

URL: http://svn.apache.org/viewvc?view=rev&rev=559343
Log:
Class for determining artifact paths.

Added:
    incubator/nmaven/branches/SI_GAC/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/PathUtil.cs

Added: incubator/nmaven/branches/SI_GAC/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/PathUtil.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_GAC/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/PathUtil.cs?view=auto&rev=559343
==============================================================================
--- incubator/nmaven/branches/SI_GAC/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/PathUtil.cs
(added)
+++ incubator/nmaven/branches/SI_GAC/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/PathUtil.cs
Wed Jul 25 00:27:53 2007
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text;
+
+namespace NMaven.Artifact
+{
+    public class PathUtil
+    {
+        public static FileInfo GetPrivateApplicationBaseFileFor(Artifact artifact, DirectoryInfo
localRepository)
+        {
+            return new FileInfo(localRepository.Parent.FullName + @"\pab\gac_msil\" + artifact.ArtifactId
+ @"\" + artifact.Version + "__" +
+                artifact.GroupId + @"\" + artifact.ArtifactId + "." + artifact.Extension);
+        }
+
+        public static FileInfo GetUserAssemblyCacheFileFor(Artifact artifact, DirectoryInfo
localRepository)
+        {
+            return new FileInfo(localRepository.Parent.FullName + @"\uac\gac_msil\" + artifact.ArtifactId
+ @"\" + artifact.Version + "__" +
+                artifact.GroupId + @"\" + artifact.ArtifactId + "." + artifact.Extension);
+        }
+    }
+}



Mime
View raw message