Author: sisbell
Date: Fri Nov 23 15:07:27 2007
New Revision: 597755

URL: http://svn.apache.org/viewvc?rev=597755&view=rev
Log:
Initial import.

Added:
    incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerConfig.java
   (with props)
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerContext.java
   (with props)
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/InvalidArtifactException.java
   (with props)
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/JavaCompilerContext.java
   (with props)
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/KeyInfo.java
   (with props)
    
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/NetCompilerContext.java
   (with props)

Added: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerConfig.java
URL: 
http://svn.apache.org/viewvc/incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerConfig.java?rev=597755&view=auto
==============================================================================
--- 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerConfig.java
 (added)
+++ 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerConfig.java
 Fri Nov 23 15:07:27 2007
@@ -0,0 +1,5 @@
+package org.apache.maven.dotnet.executable.sandbox;
+
+public interface CompilerConfig
+{
+}

Propchange: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerContext.java
URL: 
http://svn.apache.org/viewvc/incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerContext.java?rev=597755&view=auto
==============================================================================
--- 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerContext.java
 (added)
+++ 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerContext.java
 Fri Nov 23 15:07:27 2007
@@ -0,0 +1,59 @@
+package org.apache.maven.dotnet.executable.sandbox;
+
+import java.io.File;
+
+public interface CompilerContext
+{
+    /**
+     * Role used to register component implementations with the container.
+     */
+    String ROLE = CompilerContext.class.getName();
+
+    /**
+     * Returns the artifact that the compiler generated. Typically, this is 
needed by a plugin to attach to the
+     * project for installation in the local repo. Example:
+     * <p/>
+     * 
<code>project.getArtifact().setFile(compilerContext.getArtifact());</code>
+     *
+     * @return the artifact that the compiler generated.
+     * @throws InvalidArtifactException
+     */
+    File getArtifact()
+        throws InvalidArtifactException;
+
+
+    /**
+     * Returns the user provided configuration associated to this context. 
This is a live copy, so any changes to the
+     * config will be reflected during compilation.
+     *
+     * @return the user provided configuration associated to this context
+     */
+    CompilerConfig getCompilerConfig();
+
+    /**
+     * Returns the source directory (or test source directory) path of the 
class files. These are defined in the pom.xml
+     * by the properties ${build.sourceDirectory} or 
${build.testSourceDirectory}.
+     *
+     * @return Returns the source directory (or test source directory) path of 
the class files.
+     */
+    String getSourceDirectoryName();
+
+    File getTargetDirectory();
+
+    /**
+     * Returns an instance of the NetExecutable appropriate for given 
language/vendor/OS.
+     *
+     * @return an instance of the NetExecutable appropriate for given 
language/vendor/OS.
+     * @throws org.apache.maven.dotnet.executable.ExecutionException
+     *          if there is a problem finding an appropriate executable.
+     */
+   // CompilerExecutable getCompilerExecutable();
+
+    /**
+     * Creates a command filter. If the includes parameter is null, then the 
filter will return all commands that are
+     * not in the exlude filters. If the excludes parameter is null, then the 
filter will only return what is in the
+     * includes list. If both parameters are null...
+     */
+ //   CommandFilter getCommandFilter();
+
+}

Propchange: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/CompilerContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/InvalidArtifactException.java
URL: 
http://svn.apache.org/viewvc/incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/InvalidArtifactException.java?rev=597755&view=auto
==============================================================================
--- 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/InvalidArtifactException.java
 (added)
+++ 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/InvalidArtifactException.java
 Fri Nov 23 15:07:27 2007
@@ -0,0 +1,50 @@
+package org.apache.maven.dotnet.executable.sandbox;
+
+/**
+ * Exception thrown when the framework either does not recognize the target 
artifact (module, library, exe, winexe) or
+ * the target artifact is not valid for the compiler.
+ *
+ */
+public class InvalidArtifactException extends Exception
+{
+    static final long serialVersionUID = -3214341783478731432L;
+
+    /**
+     * Constructs an <code>InvalidArtifactException</code>  with no exception 
message.
+     */
+    public InvalidArtifactException()
+    {
+        super();
+    }
+
+    /**
+     * Constructs an <code>InvalidArtifactException</code> with the specified 
exception message.
+     *
+     * @param message the exception message
+     */
+    public InvalidArtifactException( String message )
+    {
+        super( message );
+    }
+
+    /**
+     * Constructs an <code>InvalidArtifactException</code> with the specified 
exception message and cause of the exception.
+     *
+     * @param message the exception message
+     * @param cause   the cause of the exception
+     */
+    public InvalidArtifactException( String message, Throwable cause )
+    {
+        super( message, cause );
+    }
+
+    /**
+     * Constructs an <code>InvalidArtifactException</code> with the cause of 
the exception.
+     *
+     * @param cause the cause of the exception
+     */
+    public InvalidArtifactException( Throwable cause )
+    {
+        super( cause );
+    }
+}

Propchange: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/InvalidArtifactException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/JavaCompilerContext.java
URL: 
http://svn.apache.org/viewvc/incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/JavaCompilerContext.java?rev=597755&view=auto
==============================================================================
--- 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/JavaCompilerContext.java
 (added)
+++ 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/JavaCompilerContext.java
 Fri Nov 23 15:07:27 2007
@@ -0,0 +1,5 @@
+package org.apache.maven.dotnet.executable.sandbox;
+
+public interface JavaCompilerContext extends CompilerContext
+{
+}

Propchange: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/JavaCompilerContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/KeyInfo.java
URL: 
http://svn.apache.org/viewvc/incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/KeyInfo.java?rev=597755&view=auto
==============================================================================
--- 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/KeyInfo.java
 (added)
+++ 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/KeyInfo.java
 Fri Nov 23 15:07:27 2007
@@ -0,0 +1,69 @@
+package org.apache.maven.dotnet.executable.sandbox;
+
+/**
+ * Provides services for obtaining information about the key file.
+ *
+ */
+public interface KeyInfo
+{
+    /**
+     * Returns the path of the key
+     *
+     * @return the path of the key
+     */
+    String getKeyFileUri();
+
+    /**
+     * Sets the path of the key
+     *
+     * @param keyFileUri the path of the key
+     */
+    void setKeyFileUri(String keyFileUri);
+
+    String getKeyContainerName();
+
+    void setKeyContainerName(String keyContainerName);
+
+    public static class Factory
+    {
+        /**
+         * Constructor
+         */
+        private Factory()
+        {
+        }
+
+        /**
+         * Returns a default instance of key info.
+         *
+         * @return a default instance of key info
+         */
+        public static KeyInfo createDefaultKeyInfo()
+        {
+            return new KeyInfo()
+            {
+                private String keyFileUri;
+
+                private String keyContainerName;
+
+                public String getKeyFileUri() {
+                    return keyFileUri;
+                }
+
+                public void setKeyFileUri(String keyFileUri) {
+                    this.keyFileUri = keyFileUri;
+                }
+
+                public String getKeyContainerName() {
+                    return keyContainerName;
+                }
+
+                public void setKeyContainerName(String keyContainerName) {
+                    this.keyContainerName = keyContainerName;
+                }
+
+            };
+        }
+    }
+
+}

Propchange: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/KeyInfo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/NetCompilerContext.java
URL: 
http://svn.apache.org/viewvc/incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/NetCompilerContext.java?rev=597755&view=auto
==============================================================================
--- 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/NetCompilerContext.java
 (added)
+++ 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/NetCompilerContext.java
 Fri Nov 23 15:07:27 2007
@@ -0,0 +1,72 @@
+package org.apache.maven.dotnet.executable.sandbox;
+
+import org.apache.maven.artifact.Artifact;
+
+import java.io.File;
+import java.util.List;
+
+public interface NetCompilerContext extends CompilerContext
+{
+
+    /**
+     * Returns assembly names that should be referenced by the compiler. If 
the List is emtpy, then all core assemblies
+     * should be includes. These are assemblies that are not standard
+     * dependencies, but are system assemblies that replace the core .NET 
framework assemblies (used to create profiles)
+     *
+     * @return assembly names that should be referenced by the compiler.
+     */
+    List<String> getCoreAssemblyNames();
+
+    /**
+     * Returns a list of module (netmodule) dependencies that exist directly 
within the invoking projects pom
+     * (no transitive module dependencies).
+     *
+     * @return a list of module (netmodule) dependencies of the class files.
+     */
+    List<Artifact> getDirectModuleDependencies();
+
+    KeyInfo getKeyInfo();
+
+    /**
+     * Returns a list of library (dll) dependencies of the class files.
+     *
+     * @return a list of library (dll) dependencies of the class files.
+     */
+    List<Artifact> getLibraryDependencies();
+
+    /**
+     * Returns a list of module (netmodule) dependencies of the class files.
+     *
+     * @return a list of module (netmodule) dependencies of the class files.
+     */
+    List<Artifact> getModuleDependencies();
+
+    /**
+     * Returns a list of resources that the compiler should link to the 
compiled assembly
+     *
+     * @return a list of resources that the compiler should link to the 
compiled assembly
+     */
+    List<File> getLinkedResources();
+
+    /**
+     * Returns a list of resources that the compiler should embed in the 
compiled assembly. These may of any mime-type
+     * or it may be a generated .resource file.
+     *
+     * @return a list of resources that the compiler should embed in the 
compiled assembly.
+     */
+    List<File> getEmbeddedResources();
+
+    /**
+     * Returns the icon that the assembly should display when viewed. Should 
not be used in conjunction with win32res.
+     *
+     * @return the icon that the assembly should display when viewed.
+     */
+    File getWin32Icon();
+
+    /**
+     * Returns a list of win32 resources. Should not be used in conjunction 
with win32icon.
+     *
+     * @return a list of win32 resources.
+     */
+    List<File> getWin32Resources();
+}

Propchange: 
incubator/nmaven/tags/SI_MAVEN_INTEGRATION/sandbox/components/dotnet-executable/src/org/apache/maven/dotnet/executable/sandbox/NetCompilerContext.java
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to