incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r559429 - in /incubator/nmaven/branches/SI_GAC/components: dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/PathUtil.java dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java
Date Wed, 25 Jul 2007 12:41:34 GMT
Author: sisbell
Date: Wed Jul 25 05:41:32 2007
New Revision: 559429

URL: http://svn.apache.org/viewvc?view=rev&rev=559429
Log:
Final updates.

Added:
    incubator/nmaven/branches/SI_GAC/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/PathUtil.java
  (with props)
Modified:
    incubator/nmaven/branches/SI_GAC/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java

Added: incubator/nmaven/branches/SI_GAC/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/PathUtil.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_GAC/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/PathUtil.java?view=auto&rev=559429
==============================================================================
--- incubator/nmaven/branches/SI_GAC/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/PathUtil.java
(added)
+++ incubator/nmaven/branches/SI_GAC/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/PathUtil.java
Wed Jul 25 05:41:32 2007
@@ -0,0 +1,22 @@
+package org.apache.maven.dotnet.artifact;
+
+import org.apache.maven.artifact.Artifact;
+
+import java.io.File;
+
+public class PathUtil
+{
+    public static File getPrivateApplicationBaseFileFor( Artifact artifact, File localRepository
)
+    {
+        return new File( localRepository.getParentFile(), "pab\\gac_msil\\" + artifact.getArtifactId()
+ "\\" +
+            artifact.getVersion() + "__" + artifact.getGroupId() + "\\" + artifact.getArtifactId()
+ "." +
+            ArtifactType.getArtifactTypeForPackagingName( artifact.getType() ).getExtension()
);
+    }
+
+    public static File getUserAssemblyCacheFileFor( Artifact artifact, File localRepository
)
+    {
+        return new File( localRepository.getParentFile(), "uac\\gac_msil\\" + artifact.getArtifactId()
+ "\\" +
+            artifact.getVersion() + "__" + artifact.getGroupId() + "\\" + artifact.getArtifactId()
+ "." +
+            ArtifactType.getArtifactTypeForPackagingName( artifact.getType() ).getExtension()
);
+    }
+}

Propchange: incubator/nmaven/branches/SI_GAC/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/PathUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/SI_GAC/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_GAC/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java?view=diff&rev=559429&r1=559428&r2=559429
==============================================================================
--- incubator/nmaven/branches/SI_GAC/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java
(original)
+++ incubator/nmaven/branches/SI_GAC/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java
Wed Jul 25 05:41:32 2007
@@ -34,7 +34,6 @@
 import org.openrdf.query.Binding;
 import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 
-
 import java.util.logging.Logger;
 import java.util.Set;
 import java.util.HashSet;
@@ -45,8 +44,6 @@
 import java.io.IOException;
 import java.io.FileReader;
 import java.net.URISyntaxException;
-
-import info.aduna.iteration.Iterations;
 
 public final class ProjectDaoImpl
     implements ProjectDao



Mime
View raw message