incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r534333 - in /incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact: ./ src/ src/main/ src/main/csharp/ src/main/csharp/NMaven/ src/main/csharp/NMaven/Artifact/
Date Wed, 02 May 2007 06:48:10 GMT
Author: sisbell
Date: Tue May  1 23:48:09 2007
New Revision: 534333

URL: http://svn.apache.org/viewvc?view=rev&rev=534333
Log:
Initial import of .NET artifact module.

Added:
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/NMaven.Artifact.sln
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/pom.xml   (with props)
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven.Artifact.csproj
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/Artifact.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactContext.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactRepositoryLayout.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactScope.cs

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/NMaven.Artifact.sln
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/NMaven.Artifact.sln?view=auto&rev=534333
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/NMaven.Artifact.sln (added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/NMaven.Artifact.sln Tue May
 1 23:48:09 2007
@@ -0,0 +1,17 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NMaven.Artifact", "C:\Documents and
Settings\shane\nmaven-apache\SI_XPT\assemblies\NMaven.Artifact\src\main\csharp\NMaven.Artifact.csproj",
"{4A98C259-4EDA-46B1-B2A5-C6AD0B47D7B3}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{4A98C259-4EDA-46B1-B2A5-C6AD0B47D7B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{4A98C259-4EDA-46B1-B2A5-C6AD0B47D7B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/pom.xml?view=auto&rev=534333
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/pom.xml (added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/pom.xml Tue May  1 23:48:09
2007
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?><!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0">
+  <parent>
+    <groupId>NMaven</groupId>
+    <version>0.14</version>
+    <artifactId>NMaven.Assemblies</artifactId>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>NMaven.Artifact</groupId>
+  <artifactId>NMaven.Artifact</artifactId>
+  <packaging>library</packaging>
+  <version>0.14</version>
+  <name>NMaven.Artifact</name>
+  <dependencies>
+    <dependency>
+      <groupId>NMaven.Model</groupId>
+      <artifactId>NMaven.Model.Pom</artifactId>
+      <type>library</type>
+      <version>0.14</version>
+    </dependency>
+  </dependencies>  
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven.Artifact.csproj
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven.Artifact.csproj?view=auto&rev=534333
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven.Artifact.csproj
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven.Artifact.csproj
Tue May  1 23:48:09 2007
@@ -0,0 +1,30 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <ProjectGuid>{4A98C259-4EDA-46B1-B2A5-C6AD0B47D7B3}</ProjectGuid>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <RootNameSpace>NMaven.Artifact</RootNameSpace>
+    <AssemblyName>NMaven.Artifact</AssemblyName>
+    <BaseIntermediateOutputPath>..\..\..\target\obj\</BaseIntermediateOutputPath>
+    <OutputType>Library</OutputType>
+  </PropertyGroup>
+  <PropertyGroup>
+    <OutputPath>..\..\..\target\bin\Debug\</OutputPath>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="NMaven.Model.Pom, Version=0.14.0.0, Culture=neutral, PublicKeyToken=4b435f4d76e2f0e6,
processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\..\..\..\..\..\.m2\repository\NMaven\Model\NMaven.Model.Pom\0.14\NMaven.Model.Pom.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="NMaven\Artifact\Artifact.cs" />
+    <Compile Include="NMaven\Artifact\ArtifactContext.cs" />
+    <Compile Include="NMaven\Artifact\ArtifactRepositoryLayout.cs" />
+    <Compile Include="NMaven\Artifact\ArtifactScope.cs" />
+  </ItemGroup>
+  <ItemGroup />
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
+</Project>
\ No newline at end of file

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/Artifact.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/Artifact.cs?view=auto&rev=534333
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/Artifact.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/Artifact.cs
Tue May  1 23:48:09 2007
@@ -0,0 +1,56 @@
+using System;
+using System.IO;
+
+namespace NMaven.Artifact
+{
+    public class Artifact
+    {
+        private string artifactId;
+
+        private string groupId;
+
+        private string version;
+
+        private FileInfo fileInfo;
+
+        private int artifactScope;
+
+        private string extension;
+
+        public string Extension
+        {
+            get { return extension; }
+            set { extension = value; }
+        }
+
+        public string ArtifactId
+        {
+            get { return artifactId; }
+            set { artifactId = value; }
+        }
+
+        public string GroupId
+        {
+            get { return groupId; }
+            set { groupId = value; }
+        }
+
+        public string Version
+        {
+            get { return version; }
+            set { version = value; }
+        }
+
+        public FileInfo FileInfo
+        {
+            get { return fileInfo; }
+            set { fileInfo = value; }
+        }
+
+        public int ArtifactScope
+        {
+            get { return artifactScope; }
+            set { artifactScope = value; }
+        }
+    }     
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactContext.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactContext.cs?view=auto&rev=534333
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactContext.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactContext.cs
Tue May  1 23:48:09 2007
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+using NMaven.Model;
+
+namespace NMaven.Artifact
+{
+    public class ArtifactContext
+    {
+        public Artifact GetArtifactFor(NMaven.Model.Model model)
+        {
+            Artifact artifact = new Artifact();
+            Console.WriteLine("Model Id = " + model.artifactId);
+            artifact.ArtifactId = model.artifactId;
+            artifact.GroupId = model.groupId;
+            artifact.Version = model.version;
+            artifact.Extension = GetExtensionFor(model.packaging);
+            return artifact;
+        }
+
+        private string GetExtensionFor(string packaging)
+        {
+            if (packaging.Equals("library") || packaging.Equals("netplugin")
+                || packaging.Equals("visual-studio-addin") || packaging.Equals("sharp-develop-addin"))
+            {
+                return "dll";
+            }
+            else if(packaging.Equals("winexe") ||  packaging.Equals("exe"))
+            {
+                return "exe";
+            }
+            else if (packaging.Equals("module"))
+            {
+                return "netmodule";
+            }
+            return null;
+        }
+    }
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactRepositoryLayout.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactRepositoryLayout.cs?view=auto&rev=534333
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactRepositoryLayout.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactRepositoryLayout.cs
Tue May  1 23:48:09 2007
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace NMaven.Artifact
+{
+    public class ArtifactRepositoryLayout
+    {
+        public string pathOf(Artifact artifact)
+        {
+            StringBuilder sb = new StringBuilder();
+            sb.Append(artifact.GroupId.Replace('.', '\\')).Append(@"\");
+            sb.Append(artifact.ArtifactId).Append(@"\");
+            sb.Append(artifact.Version).Append(@"\");
+            sb.Append(artifact.ArtifactId).Append(".").Append(artifact.Extension);
+            return sb.ToString();
+        }
+    }
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactScope.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactScope.cs?view=auto&rev=534333
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactScope.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Artifact/src/main/csharp/NMaven/Artifact/ArtifactScope.cs
Tue May  1 23:48:09 2007
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace NMaven.Artifact
+{
+    public enum ArtifactScope
+    {
+        Runtime = 1,
+        Compile = 2,
+        Test = 3,
+        Provided = 4,
+        System = 5
+    }
+}



Mime
View raw message