You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2006/11/10 07:37:21 UTC
svn commit: r473206 [1/2] - in /maven/sandbox/plugins/maven-vstudio-plugin:
./ src/main/java/org/apache/maven/plugin/studio/
src/main/java/org/apache/maven/plugin/vstudio/
src/main/java/org/apache/maven/plugin/vstudio/xml/
src/main/java/org/codehause/
Author: brett
Date: Thu Nov 9 22:37:16 2006
New Revision: 473206
URL: http://svn.apache.org/viewvc?view=rev&rev=473206
Log:
clean up
Removed:
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/studio/
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/codehause/
Modified:
maven/sandbox/plugins/maven-vstudio-plugin/ (props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/BuildAction.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/DependentUpon.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/ProjectSettings.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/Reference.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/References.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/SubType.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioFile.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioMojo.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioUtil.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003CSharpWriter.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003ConfigWriter.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003FileWriter.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003ReferenceWriter.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003SettingsWriter.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003WebInfoWriter.java (contents, props changed)
maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003Writer.java (contents, props changed)
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Nov 9 22:37:16 2006
@@ -0,0 +1,4 @@
+*.ipr
+*.iml
+*.iws
+target
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/BuildAction.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/BuildAction.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/BuildAction.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/BuildAction.java Thu Nov 9 22:37:16 2006
@@ -1,32 +1,32 @@
-package org.apache.maven.plugin.vstudio;
-
-public class BuildAction {
-
- private String type = null;
-
- private BuildAction(String type){
- this.type = type;
- }
-
- private static String __BuildActionNone = "None";
- private static String __BuildActionCompile = "Compile";
- private static String __BuildActionContent = "Content";
- private static String __BuildActionEmbeddedResources = "EmbeddedResource";
-
- public static BuildAction None = new BuildAction( __BuildActionNone );
- public static BuildAction Compile = new BuildAction( __BuildActionCompile );
- public static BuildAction Content = new BuildAction( __BuildActionContent );
- public static BuildAction EmbeddedResources = new BuildAction( __BuildActionEmbeddedResources );
-
- public String toString() {
- return type;
- }
-
- public boolean equals(Object arg0) {
- if(arg0 instanceof BuildAction && ((BuildAction)arg0).type.equals( this.type ) )return true;
- return false;
- }
-
-
-
-}
+package org.apache.maven.plugin.vstudio;
+
+public class BuildAction {
+
+ private String type = null;
+
+ private BuildAction(String type){
+ this.type = type;
+ }
+
+ private static String __BuildActionNone = "None";
+ private static String __BuildActionCompile = "Compile";
+ private static String __BuildActionContent = "Content";
+ private static String __BuildActionEmbeddedResources = "EmbeddedResource";
+
+ public static BuildAction None = new BuildAction( __BuildActionNone );
+ public static BuildAction Compile = new BuildAction( __BuildActionCompile );
+ public static BuildAction Content = new BuildAction( __BuildActionContent );
+ public static BuildAction EmbeddedResources = new BuildAction( __BuildActionEmbeddedResources );
+
+ public String toString() {
+ return type;
+ }
+
+ public boolean equals(Object arg0) {
+ if(arg0 instanceof BuildAction && ((BuildAction)arg0).type.equals( this.type ) )return true;
+ return false;
+ }
+
+
+
+}
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/BuildAction.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/DependentUpon.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/DependentUpon.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/DependentUpon.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/DependentUpon.java Thu Nov 9 22:37:16 2006
@@ -1,18 +1,18 @@
-package org.apache.maven.plugin.vstudio;
-
-public class DependentUpon {
-
- private String fileName = null;
-
- public DependentUpon( String fileName ){
- this.fileName = fileName;
- }
-
- public String getFileName() {
- return fileName;
- }
-
- public String toString() {
- return fileName;
- }
-}
+package org.apache.maven.plugin.vstudio;
+
+public class DependentUpon {
+
+ private String fileName = null;
+
+ public DependentUpon( String fileName ){
+ this.fileName = fileName;
+ }
+
+ public String getFileName() {
+ return fileName;
+ }
+
+ public String toString() {
+ return fileName;
+ }
+}
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/DependentUpon.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/ProjectSettings.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/ProjectSettings.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/ProjectSettings.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/ProjectSettings.java Thu Nov 9 22:37:16 2006
@@ -1,159 +1,159 @@
-package org.apache.maven.plugin.vstudio;
-
-public class ProjectSettings {
-
- /* Settings inside the build element */
- private String rootNamespace = "";
- private String applicationIcon = "";
- private String assemblyKeyContainerName = "";
- private String assemblyName = "";
- private String assemblyOriginatorKeyFile = "";
- private String defaultClientScript = "JScript";
- private String defaultHTMLPageLayout = "Grid";
- private String defaultTargetSchema = "IE50";
- private String delaySign = "false";
- private String outputType = "Library";
- private String preBuildEvent = "";
- private String postBuildEvent = "";
- private String runPostBuildEvent = "OnBuildSuccess";
- private String startupObject= "";
- private String projectName = "";
-
- private String projectType = "Local";
- private String productVersion = "7.10.3077";
- private String schemaVersion = "2.0";
- private String projectGuid = "{E6E60F5C-A28D-4B3F-A01C-A334F848B9BE}";
-
- /**
- * if this project has a packaging type dotnet-web
- * then this parameter must be supplied so that the system can write out the
- * .csproj.webinfo file as well as the .csproj file.
- */
- private String webProjectUrlPath = null;
-
-
- public ProjectSettings(){}
-
-
- public String getProductVersion() {
- return productVersion;
- }
- public void setProductVersion(String productVersion) {
- this.productVersion = productVersion;
- }
- public String getProjectGuid() {
- return projectGuid;
- }
- public void setProjectGuid(String projectGuid) {
- this.projectGuid = projectGuid;
- }
- public String getProjectType() {
- return projectType;
- }
- public void setProjectType(String projectType) {
- this.projectType = projectType;
- }
- public String getSchemaVersion() {
- return schemaVersion;
- }
- public void setSchemaVersion(String schemaVersion) {
- this.schemaVersion = schemaVersion;
- }
- public String getProjectName() {
- return projectName;
- }
- public void setProjectName(String projectName) {
- this.projectName = projectName;
- }
- public String getApplicationIcon() {
- return applicationIcon;
- }
- public void setApplicationIcon(String applicationIcon) {
- this.applicationIcon = applicationIcon;
- }
- public String getAssemblyKeyContainerName() {
- return assemblyKeyContainerName;
- }
- public void setAssemblyKeyContainerName(String assemblyKeyContainerName) {
- this.assemblyKeyContainerName = assemblyKeyContainerName;
- }
- public String getAssemblyName() {
- return assemblyName;
- }
- public void setAssemblyName(String assemblyName) {
- this.assemblyName = assemblyName;
- }
- public String getAssemblyOriginatorKeyFile() {
- return assemblyOriginatorKeyFile;
- }
- public void setAssemblyOriginatorKeyFile(String assemblyOriginatorKeyFile) {
- this.assemblyOriginatorKeyFile = assemblyOriginatorKeyFile;
- }
- public String getDefaultClientScript() {
- return defaultClientScript;
- }
- public void setDefaultClientScript(String defaultClientScript) {
- this.defaultClientScript = defaultClientScript;
- }
- public String getDefaultHTMLPageLayout() {
- return defaultHTMLPageLayout;
- }
- public void setDefaultHTMLPageLayout(String defaultHTMLPageLayout) {
- this.defaultHTMLPageLayout = defaultHTMLPageLayout;
- }
- public String getDefaultTargetSchema() {
- return defaultTargetSchema;
- }
- public void setDefaultTargetSchema(String defaultTargetSchema) {
- this.defaultTargetSchema = defaultTargetSchema;
- }
- public String getDelaySign() {
- return delaySign;
- }
- public void setDelaySign(String delaySign) {
- this.delaySign = delaySign;
- }
- public String getOutputType() {
- return outputType;
- }
- public void setOutputType(String outputType) {
- this.outputType = outputType;
- }
- public String getPostBuildEvent() {
- return postBuildEvent;
- }
- public void setPostBuildEvent(String postBuildEvent) {
- this.postBuildEvent = postBuildEvent;
- }
- public String getPreBuildEvent() {
- return preBuildEvent;
- }
- public void setPreBuildEvent(String preBuildEvent) {
- this.preBuildEvent = preBuildEvent;
- }
- public String getRootNamespace() {
- return rootNamespace;
- }
- public void setRootNamespace(String rootNamespace) {
- this.rootNamespace = rootNamespace;
- }
- public String getRunPostBuildEvent() {
- return runPostBuildEvent;
- }
- public void setRunPostBuildEvent(String runPostBuildEvent) {
- this.runPostBuildEvent = runPostBuildEvent;
- }
- public String getStartupObject() {
- return startupObject;
- }
- public void setStartupObject(String startupObject) {
- this.startupObject = startupObject;
- }
- public String getWebProjectUrlPath() {
- return webProjectUrlPath;
- }
- public void setWebProjectUrlPath(String webProjectUrlPath) {
- this.webProjectUrlPath = webProjectUrlPath;
- }
-}
-
+package org.apache.maven.plugin.vstudio;
+
+public class ProjectSettings {
+
+ /* Settings inside the build element */
+ private String rootNamespace = "";
+ private String applicationIcon = "";
+ private String assemblyKeyContainerName = "";
+ private String assemblyName = "";
+ private String assemblyOriginatorKeyFile = "";
+ private String defaultClientScript = "JScript";
+ private String defaultHTMLPageLayout = "Grid";
+ private String defaultTargetSchema = "IE50";
+ private String delaySign = "false";
+ private String outputType = "Library";
+ private String preBuildEvent = "";
+ private String postBuildEvent = "";
+ private String runPostBuildEvent = "OnBuildSuccess";
+ private String startupObject= "";
+ private String projectName = "";
+
+ private String projectType = "Local";
+ private String productVersion = "7.10.3077";
+ private String schemaVersion = "2.0";
+ private String projectGuid = "{E6E60F5C-A28D-4B3F-A01C-A334F848B9BE}";
+
+ /**
+ * if this project has a packaging type dotnet-web
+ * then this parameter must be supplied so that the system can write out the
+ * .csproj.webinfo file as well as the .csproj file.
+ */
+ private String webProjectUrlPath = null;
+
+
+ public ProjectSettings(){}
+
+
+ public String getProductVersion() {
+ return productVersion;
+ }
+ public void setProductVersion(String productVersion) {
+ this.productVersion = productVersion;
+ }
+ public String getProjectGuid() {
+ return projectGuid;
+ }
+ public void setProjectGuid(String projectGuid) {
+ this.projectGuid = projectGuid;
+ }
+ public String getProjectType() {
+ return projectType;
+ }
+ public void setProjectType(String projectType) {
+ this.projectType = projectType;
+ }
+ public String getSchemaVersion() {
+ return schemaVersion;
+ }
+ public void setSchemaVersion(String schemaVersion) {
+ this.schemaVersion = schemaVersion;
+ }
+ public String getProjectName() {
+ return projectName;
+ }
+ public void setProjectName(String projectName) {
+ this.projectName = projectName;
+ }
+ public String getApplicationIcon() {
+ return applicationIcon;
+ }
+ public void setApplicationIcon(String applicationIcon) {
+ this.applicationIcon = applicationIcon;
+ }
+ public String getAssemblyKeyContainerName() {
+ return assemblyKeyContainerName;
+ }
+ public void setAssemblyKeyContainerName(String assemblyKeyContainerName) {
+ this.assemblyKeyContainerName = assemblyKeyContainerName;
+ }
+ public String getAssemblyName() {
+ return assemblyName;
+ }
+ public void setAssemblyName(String assemblyName) {
+ this.assemblyName = assemblyName;
+ }
+ public String getAssemblyOriginatorKeyFile() {
+ return assemblyOriginatorKeyFile;
+ }
+ public void setAssemblyOriginatorKeyFile(String assemblyOriginatorKeyFile) {
+ this.assemblyOriginatorKeyFile = assemblyOriginatorKeyFile;
+ }
+ public String getDefaultClientScript() {
+ return defaultClientScript;
+ }
+ public void setDefaultClientScript(String defaultClientScript) {
+ this.defaultClientScript = defaultClientScript;
+ }
+ public String getDefaultHTMLPageLayout() {
+ return defaultHTMLPageLayout;
+ }
+ public void setDefaultHTMLPageLayout(String defaultHTMLPageLayout) {
+ this.defaultHTMLPageLayout = defaultHTMLPageLayout;
+ }
+ public String getDefaultTargetSchema() {
+ return defaultTargetSchema;
+ }
+ public void setDefaultTargetSchema(String defaultTargetSchema) {
+ this.defaultTargetSchema = defaultTargetSchema;
+ }
+ public String getDelaySign() {
+ return delaySign;
+ }
+ public void setDelaySign(String delaySign) {
+ this.delaySign = delaySign;
+ }
+ public String getOutputType() {
+ return outputType;
+ }
+ public void setOutputType(String outputType) {
+ this.outputType = outputType;
+ }
+ public String getPostBuildEvent() {
+ return postBuildEvent;
+ }
+ public void setPostBuildEvent(String postBuildEvent) {
+ this.postBuildEvent = postBuildEvent;
+ }
+ public String getPreBuildEvent() {
+ return preBuildEvent;
+ }
+ public void setPreBuildEvent(String preBuildEvent) {
+ this.preBuildEvent = preBuildEvent;
+ }
+ public String getRootNamespace() {
+ return rootNamespace;
+ }
+ public void setRootNamespace(String rootNamespace) {
+ this.rootNamespace = rootNamespace;
+ }
+ public String getRunPostBuildEvent() {
+ return runPostBuildEvent;
+ }
+ public void setRunPostBuildEvent(String runPostBuildEvent) {
+ this.runPostBuildEvent = runPostBuildEvent;
+ }
+ public String getStartupObject() {
+ return startupObject;
+ }
+ public void setStartupObject(String startupObject) {
+ this.startupObject = startupObject;
+ }
+ public String getWebProjectUrlPath() {
+ return webProjectUrlPath;
+ }
+ public void setWebProjectUrlPath(String webProjectUrlPath) {
+ this.webProjectUrlPath = webProjectUrlPath;
+ }
+}
+
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/ProjectSettings.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/Reference.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/Reference.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/Reference.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/Reference.java Thu Nov 9 22:37:16 2006
@@ -1,39 +1,39 @@
-package org.apache.maven.plugin.vstudio;
-
-import java.io.File;
-
-public class Reference {
-
- private String path = null;
- private boolean gac = false;
-
- /**
- * @return Returns the gac.
- */
- public boolean getGac() {
- return gac;
- }
- /**
- * @param gac The gac to set.
- */
- public void setGac(boolean gac) {
- this.gac = gac;
- }
- /**
- * @return Returns the path.
- */
- public String getPath() {
- return path;
- }
- /**
- * @param path The path to set.
- */
- public void setPath(String path) {
- this.path = path;
- }
-
-
-
-
-
-}
+package org.apache.maven.plugin.vstudio;
+
+import java.io.File;
+
+public class Reference {
+
+ private String path = null;
+ private boolean gac = false;
+
+ /**
+ * @return Returns the gac.
+ */
+ public boolean getGac() {
+ return gac;
+ }
+ /**
+ * @param gac The gac to set.
+ */
+ public void setGac(boolean gac) {
+ this.gac = gac;
+ }
+ /**
+ * @return Returns the path.
+ */
+ public String getPath() {
+ return path;
+ }
+ /**
+ * @param path The path to set.
+ */
+ public void setPath(String path) {
+ this.path = path;
+ }
+
+
+
+
+
+}
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/Reference.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/References.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/References.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/References.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/References.java Thu Nov 9 22:37:16 2006
@@ -1,28 +1,28 @@
-package org.apache.maven.plugin.vstudio;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class References {
-
- private List references = new ArrayList();
-
- /**
- * @return Returns the references.
- */
- public List getReferences() {
- return references;
- }
-
- /**
- * @param references The references to set.
- */
- public void setReferences(List references) {
- this.references = references;
- }
-
- public void addReference(Reference ref){
- this.references.add( ref );
- }
-
-}
+package org.apache.maven.plugin.vstudio;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class References {
+
+ private List references = new ArrayList();
+
+ /**
+ * @return Returns the references.
+ */
+ public List getReferences() {
+ return references;
+ }
+
+ /**
+ * @param references The references to set.
+ */
+ public void setReferences(List references) {
+ this.references = references;
+ }
+
+ public void addReference(Reference ref){
+ this.references.add( ref );
+ }
+
+}
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/References.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/SubType.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/SubType.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/SubType.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/SubType.java Thu Nov 9 22:37:16 2006
@@ -1,32 +1,32 @@
-package org.apache.maven.plugin.vstudio;
-
-public class SubType {
-
- private static String __SubTypeCode = "Code";
- private static String __SubTypeNull = "";
- private static String __SubTypeForm = "Form";
- private static String __SubTypeComponent = "Component";
- private static String __SubTypeAspxCodeBehind = "ASPXCodeBehind";
-
- private String _type = null;
-
- private SubType(String subtype){
- _type = subtype;
- }
-
- public static final SubType Code = new SubType( __SubTypeCode );
- public static final SubType Null = new SubType( __SubTypeNull );
- public static final SubType Form = new SubType( __SubTypeForm );
- public static final SubType AspxCodeBehind = new SubType( __SubTypeAspxCodeBehind );
- public static final SubType Component = new SubType( __SubTypeComponent );
-
- public String toString() {
- return _type;
- }
-
- public boolean equals(Object arg0) {
- if(arg0 instanceof SubType && ((SubType)arg0)._type.equals( this._type ) )return true;
- else if (arg0 instanceof SubType && ((SubType)arg0)._type.equals( "" ) && this._type.equals("") ) return true;
- return false;
- }
-}
+package org.apache.maven.plugin.vstudio;
+
+public class SubType {
+
+ private static String __SubTypeCode = "Code";
+ private static String __SubTypeNull = "";
+ private static String __SubTypeForm = "Form";
+ private static String __SubTypeComponent = "Component";
+ private static String __SubTypeAspxCodeBehind = "ASPXCodeBehind";
+
+ private String _type = null;
+
+ private SubType(String subtype){
+ _type = subtype;
+ }
+
+ public static final SubType Code = new SubType( __SubTypeCode );
+ public static final SubType Null = new SubType( __SubTypeNull );
+ public static final SubType Form = new SubType( __SubTypeForm );
+ public static final SubType AspxCodeBehind = new SubType( __SubTypeAspxCodeBehind );
+ public static final SubType Component = new SubType( __SubTypeComponent );
+
+ public String toString() {
+ return _type;
+ }
+
+ public boolean equals(Object arg0) {
+ if(arg0 instanceof SubType && ((SubType)arg0)._type.equals( this._type ) )return true;
+ else if (arg0 instanceof SubType && ((SubType)arg0)._type.equals( "" ) && this._type.equals("") ) return true;
+ return false;
+ }
+}
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/SubType.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioFile.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioFile.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioFile.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioFile.java Thu Nov 9 22:37:16 2006
@@ -1,59 +1,59 @@
-package org.apache.maven.plugin.vstudio;
-
-import java.io.File;
-
-public class VisualStudioFile {
-
- private File file = null;
- private BuildAction action = null;
- private String relativePath = null;
- private SubType sub = null;
- private DependentUpon dependent = null;
-
- public VisualStudioFile(File file, BuildAction action, String relativePath, SubType sub){
- this.file = file;
- this.action = action;
- this.relativePath = relativePath;
- this.sub = sub;
- }
-
- public VisualStudioFile(File file, BuildAction action, String relativePath, SubType sub, DependentUpon dependent){
- this.file = file;
- this.action = action;
- this.relativePath = relativePath;
- this.sub = sub;
- this.dependent = dependent;
- }
-
- public VisualStudioFile(File file, BuildAction action, String relativePath, DependentUpon dependent){
- this.file = file;
- this.action = action;
- this.relativePath = relativePath;
- this.dependent = dependent;
- }
-
- public BuildAction getAction() {
- return action;
- }
-
- public File getFile() {
- return file;
- }
-
- public String getRelativePath() {
- return relativePath;
- }
-
- public SubType getSub() {
- return sub;
- }
-
- public DependentUpon getDependent() {
- return dependent;
- }
-
-
- public String toString() {
- return "VSFile[@rel="+relativePath+",@path="+file.getAbsolutePath()+",@action="+action+",@subtype="+sub+",@dep="+dependent+"]";
- }
-}
+package org.apache.maven.plugin.vstudio;
+
+import java.io.File;
+
+public class VisualStudioFile {
+
+ private File file = null;
+ private BuildAction action = null;
+ private String relativePath = null;
+ private SubType sub = null;
+ private DependentUpon dependent = null;
+
+ public VisualStudioFile(File file, BuildAction action, String relativePath, SubType sub){
+ this.file = file;
+ this.action = action;
+ this.relativePath = relativePath;
+ this.sub = sub;
+ }
+
+ public VisualStudioFile(File file, BuildAction action, String relativePath, SubType sub, DependentUpon dependent){
+ this.file = file;
+ this.action = action;
+ this.relativePath = relativePath;
+ this.sub = sub;
+ this.dependent = dependent;
+ }
+
+ public VisualStudioFile(File file, BuildAction action, String relativePath, DependentUpon dependent){
+ this.file = file;
+ this.action = action;
+ this.relativePath = relativePath;
+ this.dependent = dependent;
+ }
+
+ public BuildAction getAction() {
+ return action;
+ }
+
+ public File getFile() {
+ return file;
+ }
+
+ public String getRelativePath() {
+ return relativePath;
+ }
+
+ public SubType getSub() {
+ return sub;
+ }
+
+ public DependentUpon getDependent() {
+ return dependent;
+ }
+
+
+ public String toString() {
+ return "VSFile[@rel="+relativePath+",@path="+file.getAbsolutePath()+",@action="+action+",@subtype="+sub+",@dep="+dependent+"]";
+ }
+}
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioFile.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioMojo.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioMojo.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioMojo.java Thu Nov 9 22:37:16 2006
@@ -1,325 +1,325 @@
-package org.apache.maven.plugin.vstudio;
-
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-import org.apache.commons.io.FileUtils;
-import org.apache.commons.io.FilenameUtils;
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter;
-import org.apache.maven.artifact.versioning.VersionRange;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.vstudio.xml.VisualStudio2003WebInfoWriter;
-import org.apache.maven.plugin.vstudio.xml.VisualStudio2003Writer;
-import org.apache.maven.project.MavenProject;
-
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter;
-import org.codehaus.plexus.util.xml.XMLWriter;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-/**
- * Generates a Visual Studio Project
- * file from the pom.xml
- *
- * @requiresDependencyResolution test
- * @goal vstudio
- *
- */
-public class VisualStudioMojo extends AbstractMojo
-{
- /**
- * Location of the file.
- * @parameter expression="${project.build.directory}"
- * @required
- */
- private File outputDirectory;
-
- /**
- * @parameter expression="${project}"
- * @required
- * @readonly
- */
- protected MavenProject project;
-
- /**
- * The source directories containing the sources to be compiled.
- *
- * @parameter expression="${project.compileSourceRoots}"
- * @required
- * @readonly
- */
- private List compileSourceRoots;
-
- /**
- * The list of resources we want to transfer.
- *
- * @parameter expression="${project.resources}"
- * @required
- */
- private List resources;
-
- /**
- * This value is the path to the framework firectory
- * on your local machine. Please see the <a href="/getting-started.html">Getting Started</a>.
- * guide on how to do this.
- *
- *
- * @parameter
- * @required
- */
- private String frameworkHome;
-
- /**
- * This is all the stuff that can be set up about a vs project. It is a big object.
- * Most of which is optional. See the java doc and your own project for details.
- *
- * @parameter
- */
- private ProjectSettings projectSettings;
-
- /**
- * A list of inclusion filters for the .csproj.
- * ex.
- *
- * **\/*.cs
- * **\/*.xslt
- * (ignore back slash)
- *
- * @parameter
- */
- private Set includes = new HashSet();
-
- /**
- * A list of exclusion filters for the .csproj.
- *
- * @parameter
- */
- private Set excludes = new HashSet();
-
- /**
- * A list of System references with paths to resolve for IDE.
- * These are required for the IDE's intellisense but are added
- * to the classpath (;o) at
- * a) compile through the addition of MS Core Lib
- * or
- * b) runtime through the bootstrapper function is MS dotnet or the mono
- * runtime exe for mono.
- *
- * @parameter
- */
- private List references = new ArrayList();
-
- /**
- * @parameter expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}"
- * @required
- * @readonly
- */
- protected ArtifactFactory factory;
-
- public void execute()throws MojoExecutionException
- {
- this.getLog().info("framework.home=" + frameworkHome);
-
- //if its null use the defaults.
- if(projectSettings == null) projectSettings = new ProjectSettings();
-
- projectSettings.setRootNamespace( project.getGroupId() );
- projectSettings.setAssemblyName( project.getBuild().getFinalName() );
- projectSettings.setOutputType( getOutputTypeFromType(project.getArtifact().getType() ) );
- projectSettings.setProjectType( getProjectTypeFromType( project.getArtifact().getType() ) );
-
- if( project.getArtifact().getType().equals( "dotnet-web" ) && ( projectSettings.getWebProjectUrlPath() == null || StringUtils.isEmpty( projectSettings.getWebProjectUrlPath() ) ) )
- throw new MojoExecutionException("if you are creating a project of type dotnet-web you need to provide the parameter projectSettings/webProjectUrlPath");
-
- for( Iterator i = project.getCompileSourceRoots().iterator(); i.hasNext(); ){
- this.getLog().info("source root:" + i.next() );
- }
-
- for( Iterator i = project.getTestCompileSourceRoots().iterator(); i.hasNext(); ){
- this.getLog().info("source root:" + i.next() );
- }
-
- for( Iterator i= project.getResources().iterator();i.hasNext();){
- getLog().info("res:" + i.next() );
- }
-
- VisualStudioFile[] mainsource = VisualStudioUtil.getSourceFiles( project.getBasedir(), project.getCompileSourceRoots(), includes, excludes );
- VisualStudioFile[] testsource = VisualStudioUtil.getSourceFiles( project.getBasedir(), project.getTestCompileSourceRoots(), includes, excludes );
- VisualStudioFile[] resources = VisualStudioUtil.getResourceFiles( project.getBasedir(), project.getResources() );
- VisualStudioFile pom = VisualStudioUtil.getPom( project );
-
- File projectFile = new File( project.getBasedir(), project.getArtifactId() + ".csproj");
-
- try {
-
- this.getLog().info("Creating project file ["+projectFile.getAbsolutePath()+"]");
-
- projectFile.createNewFile();
-
- FileWriter filewriter = new FileWriter( projectFile );
-
- XMLWriter writer = new PrettyPrintXMLWriter(filewriter);
-
- File frameworkDir = new File( frameworkHome );
-
- if(! frameworkDir.exists() || ! frameworkDir.isDirectory() )throw new MojoExecutionException(
- "\nframeworkHome is null or incorrect" + frameworkHome +
- "\nframeworkHome needs to be set in your settings.xml and passed to plugin via pom.xml\n" + getUsage() );
-
- this.getLog().info("Creating dependencies from references... ");
-
- Set referenceArtifacts = createReferenceArtifacts( references );
-
- this.getLog().info("Created " + referenceArtifacts.size() + " dependencies.");
-
- new VisualStudio2003Writer( this.getLog() ).write( writer, projectSettings, mainsource, testsource, resources, project.getArtifacts(), frameworkDir, pom, referenceArtifacts );
-
- this.getLog().info("Created project file ["+projectFile.getAbsolutePath()+"]");
-
- filewriter.close();
-
- if( project.getArtifact().getType().equals( "dotnet-web" ) )
- createWebInfoFile( new File( project.getBasedir(), project.getArtifactId() + ".csproj.webinfo" ), projectSettings );
-
- }catch(IOException ioex){
- throw new MojoExecutionException(ioex.getMessage(), ioex);
- }
- }
-
- private void createWebInfoFile(File webInfoFile, ProjectSettings settings) throws IOException {
-
- if( webInfoFile.exists() ) {
- FileUtils.copyFile( webInfoFile, new File( webInfoFile.getAbsoluteFile() + ".backup" ) );
- webInfoFile.delete();
- }
-
- webInfoFile.createNewFile();
-
- FileWriter filewriter = new FileWriter( webInfoFile );
-
- XMLWriter writer = new PrettyPrintXMLWriter(filewriter);
-
- new VisualStudio2003WebInfoWriter( this.getLog() ).write( writer, settings.getWebProjectUrlPath() );
-
- filewriter.close();
- }
-
-
- private static String getUsage(){
-
- String usage = "To configure this plugin you should add an entry to your local settings like so:\n" +
- "....\n" +
- "<profiles>\n" +
- "<profile>\n" +
- "<id>default</id>\n" +
- "<properties>\n" +
- "<dotnet.home>C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322</dotnet.home>\n" +
- "</properties>\n"+
- "....\n" +
- "</profile>\n" +
- "</profiles>\n" +
- "<activeProfiles>\n" +
- "<activeProfile>default</activeProfile>\n" +
- "</activeProfiles>\n";
-
- usage = usage + "\n";
-
- usage = usage + "Add pass this into the plgin in this manner:\n";
-
- usage = usage + "<plugin>\n" +
- "<groupId>org.apache.maven.plugins</groupId>\n" +
- "<artifactId>maven-studio-plugin</artifactId>\n" +
- "<configuration>\n" +
- "<frameworkHome>${dotnet.home}</frameworkHome>\n" +
- "</configuration>\n" +
- "</plugin>\n";
-
- return usage;
- }
-
- private String getOutputTypeFromType(String type) throws MojoExecutionException {
-
- String outputType = "Library";
-
- if( type.equals("dotnet-library") ) outputType = "Library";
- else if( type.equals("dotnet-exe") ) outputType = "Exe";
- else if( type.equals("dotnet-winexe") ) outputType = "Exe";
- else if( type.equals("dotnet-webapp") ) outputType = "Web";
- else throw new MojoExecutionException("No Visual Studio output type defined for type:" + type);
-
- return outputType;
- }
-
- private String getProjectTypeFromType(String type) throws MojoExecutionException {
- String outputType = "Local";
- if( type.equals("dotnet-webapp") ) outputType = "Web";
- return outputType;
- }
-
- private Set createReferenceArtifacts(List references) throws MojoExecutionException {
-
- Set artifacts = new HashSet();
-
- for(Iterator i=references.iterator();i.hasNext();){
- Reference ref = (Reference)i.next();
- Artifact a = createArtifact( ref );
- if( a != null ) artifacts.add( a );
- }
-
- return artifacts;
- }
-
- private Artifact createArtifact(Reference ref) throws MojoExecutionException{
-
- File f = new File( this.frameworkHome, ref.getPath() );
-
- if( (! f.exists() ) || f.isDirectory() ) throw new MojoExecutionException("File [" + f.getAbsolutePath() + "] doesn't appear to exist.");
-
- String name = FilenameUtils.getBaseName( f.getName() );
- String packaging = getPackagingForExtension( FilenameUtils.getExtension( f.getName() ) );
-
- Artifact a = factory.createDependencyArtifact( "system", name, VersionRange.createFromVersion("1.0"), packaging, null, Artifact.SCOPE_SYSTEM, null, false );
-
- a.setFile( f );
-
- return a;
- }
-
-
- private static String getPackagingForExtension(String extension){
-
- String packaging = null;
-
- if( extension.toLowerCase().equals( "dll" ) ) packaging = "dotnet-library" ;
- else if( extension.toLowerCase().equals( "exe") ) packaging = "dotnet-exe" ;
- else if( extension.toLowerCase().equals( "exe" ) ) packaging = "dotnet-winexe" ;
- else if( extension.toLowerCase().equals( "dll") ) packaging = "dotnet-module" ;
- else if( extension.toLowerCase().equals( "dll") ) packaging = "dotnet-webapp" ;
-
- return packaging;
- }
-}
+package org.apache.maven.plugin.vstudio;
+
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.FilenameUtils;
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.factory.ArtifactFactory;
+import org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter;
+import org.apache.maven.artifact.versioning.VersionRange;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.vstudio.xml.VisualStudio2003WebInfoWriter;
+import org.apache.maven.plugin.vstudio.xml.VisualStudio2003Writer;
+import org.apache.maven.project.MavenProject;
+
+import org.codehaus.plexus.util.StringUtils;
+import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter;
+import org.codehaus.plexus.util.xml.XMLWriter;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+/**
+ * Generates a Visual Studio Project
+ * file from the pom.xml
+ *
+ * @requiresDependencyResolution test
+ * @goal vstudio
+ *
+ */
+public class VisualStudioMojo extends AbstractMojo
+{
+ /**
+ * Location of the file.
+ * @parameter expression="${project.build.directory}"
+ * @required
+ */
+ private File outputDirectory;
+
+ /**
+ * @parameter expression="${project}"
+ * @required
+ * @readonly
+ */
+ protected MavenProject project;
+
+ /**
+ * The source directories containing the sources to be compiled.
+ *
+ * @parameter expression="${project.compileSourceRoots}"
+ * @required
+ * @readonly
+ */
+ private List compileSourceRoots;
+
+ /**
+ * The list of resources we want to transfer.
+ *
+ * @parameter expression="${project.resources}"
+ * @required
+ */
+ private List resources;
+
+ /**
+ * This value is the path to the framework firectory
+ * on your local machine. Please see the <a href="/getting-started.html">Getting Started</a>.
+ * guide on how to do this.
+ *
+ *
+ * @parameter
+ * @required
+ */
+ private String frameworkHome;
+
+ /**
+ * This is all the stuff that can be set up about a vs project. It is a big object.
+ * Most of which is optional. See the java doc and your own project for details.
+ *
+ * @parameter
+ */
+ private ProjectSettings projectSettings;
+
+ /**
+ * A list of inclusion filters for the .csproj.
+ * ex.
+ *
+ * **\/*.cs
+ * **\/*.xslt
+ * (ignore back slash)
+ *
+ * @parameter
+ */
+ private Set includes = new HashSet();
+
+ /**
+ * A list of exclusion filters for the .csproj.
+ *
+ * @parameter
+ */
+ private Set excludes = new HashSet();
+
+ /**
+ * A list of System references with paths to resolve for IDE.
+ * These are required for the IDE's intellisense but are added
+ * to the classpath (;o) at
+ * a) compile through the addition of MS Core Lib
+ * or
+ * b) runtime through the bootstrapper function is MS dotnet or the mono
+ * runtime exe for mono.
+ *
+ * @parameter
+ */
+ private List references = new ArrayList();
+
+ /**
+ * @parameter expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}"
+ * @required
+ * @readonly
+ */
+ protected ArtifactFactory factory;
+
+ public void execute()throws MojoExecutionException
+ {
+ this.getLog().info("framework.home=" + frameworkHome);
+
+ //if its null use the defaults.
+ if(projectSettings == null) projectSettings = new ProjectSettings();
+
+ projectSettings.setRootNamespace( project.getGroupId() );
+ projectSettings.setAssemblyName( project.getBuild().getFinalName() );
+ projectSettings.setOutputType( getOutputTypeFromType(project.getArtifact().getType() ) );
+ projectSettings.setProjectType( getProjectTypeFromType( project.getArtifact().getType() ) );
+
+ if( project.getArtifact().getType().equals( "dotnet-web" ) && ( projectSettings.getWebProjectUrlPath() == null || StringUtils.isEmpty( projectSettings.getWebProjectUrlPath() ) ) )
+ throw new MojoExecutionException("if you are creating a project of type dotnet-web you need to provide the parameter projectSettings/webProjectUrlPath");
+
+ for( Iterator i = project.getCompileSourceRoots().iterator(); i.hasNext(); ){
+ this.getLog().info("source root:" + i.next() );
+ }
+
+ for( Iterator i = project.getTestCompileSourceRoots().iterator(); i.hasNext(); ){
+ this.getLog().info("source root:" + i.next() );
+ }
+
+ for( Iterator i= project.getResources().iterator();i.hasNext();){
+ getLog().info("res:" + i.next() );
+ }
+
+ VisualStudioFile[] mainsource = VisualStudioUtil.getSourceFiles( project.getBasedir(), project.getCompileSourceRoots(), includes, excludes );
+ VisualStudioFile[] testsource = VisualStudioUtil.getSourceFiles( project.getBasedir(), project.getTestCompileSourceRoots(), includes, excludes );
+ VisualStudioFile[] resources = VisualStudioUtil.getResourceFiles( project.getBasedir(), project.getResources() );
+ VisualStudioFile pom = VisualStudioUtil.getPom( project );
+
+ File projectFile = new File( project.getBasedir(), project.getArtifactId() + ".csproj");
+
+ try {
+
+ this.getLog().info("Creating project file ["+projectFile.getAbsolutePath()+"]");
+
+ projectFile.createNewFile();
+
+ FileWriter filewriter = new FileWriter( projectFile );
+
+ XMLWriter writer = new PrettyPrintXMLWriter(filewriter);
+
+ File frameworkDir = new File( frameworkHome );
+
+ if(! frameworkDir.exists() || ! frameworkDir.isDirectory() )throw new MojoExecutionException(
+ "\nframeworkHome is null or incorrect" + frameworkHome +
+ "\nframeworkHome needs to be set in your settings.xml and passed to plugin via pom.xml\n" + getUsage() );
+
+ this.getLog().info("Creating dependencies from references... ");
+
+ Set referenceArtifacts = createReferenceArtifacts( references );
+
+ this.getLog().info("Created " + referenceArtifacts.size() + " dependencies.");
+
+ new VisualStudio2003Writer( this.getLog() ).write( writer, projectSettings, mainsource, testsource, resources, project.getArtifacts(), frameworkDir, pom, referenceArtifacts );
+
+ this.getLog().info("Created project file ["+projectFile.getAbsolutePath()+"]");
+
+ filewriter.close();
+
+ if( project.getArtifact().getType().equals( "dotnet-web" ) )
+ createWebInfoFile( new File( project.getBasedir(), project.getArtifactId() + ".csproj.webinfo" ), projectSettings );
+
+ }catch(IOException ioex){
+ throw new MojoExecutionException(ioex.getMessage(), ioex);
+ }
+ }
+
+ private void createWebInfoFile(File webInfoFile, ProjectSettings settings) throws IOException {
+
+ if( webInfoFile.exists() ) {
+ FileUtils.copyFile( webInfoFile, new File( webInfoFile.getAbsoluteFile() + ".backup" ) );
+ webInfoFile.delete();
+ }
+
+ webInfoFile.createNewFile();
+
+ FileWriter filewriter = new FileWriter( webInfoFile );
+
+ XMLWriter writer = new PrettyPrintXMLWriter(filewriter);
+
+ new VisualStudio2003WebInfoWriter( this.getLog() ).write( writer, settings.getWebProjectUrlPath() );
+
+ filewriter.close();
+ }
+
+
+ private static String getUsage(){
+
+ String usage = "To configure this plugin you should add an entry to your local settings like so:\n" +
+ "....\n" +
+ "<profiles>\n" +
+ "<profile>\n" +
+ "<id>default</id>\n" +
+ "<properties>\n" +
+ "<dotnet.home>C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322</dotnet.home>\n" +
+ "</properties>\n"+
+ "....\n" +
+ "</profile>\n" +
+ "</profiles>\n" +
+ "<activeProfiles>\n" +
+ "<activeProfile>default</activeProfile>\n" +
+ "</activeProfiles>\n";
+
+ usage = usage + "\n";
+
+ usage = usage + "Add pass this into the plgin in this manner:\n";
+
+ usage = usage + "<plugin>\n" +
+ "<groupId>org.apache.maven.plugins</groupId>\n" +
+ "<artifactId>maven-studio-plugin</artifactId>\n" +
+ "<configuration>\n" +
+ "<frameworkHome>${dotnet.home}</frameworkHome>\n" +
+ "</configuration>\n" +
+ "</plugin>\n";
+
+ return usage;
+ }
+
+ private String getOutputTypeFromType(String type) throws MojoExecutionException {
+
+ String outputType = "Library";
+
+ if( type.equals("dotnet-library") ) outputType = "Library";
+ else if( type.equals("dotnet-exe") ) outputType = "Exe";
+ else if( type.equals("dotnet-winexe") ) outputType = "Exe";
+ else if( type.equals("dotnet-webapp") ) outputType = "Web";
+ else throw new MojoExecutionException("No Visual Studio output type defined for type:" + type);
+
+ return outputType;
+ }
+
+ private String getProjectTypeFromType(String type) throws MojoExecutionException {
+ String outputType = "Local";
+ if( type.equals("dotnet-webapp") ) outputType = "Web";
+ return outputType;
+ }
+
+ private Set createReferenceArtifacts(List references) throws MojoExecutionException {
+
+ Set artifacts = new HashSet();
+
+ for(Iterator i=references.iterator();i.hasNext();){
+ Reference ref = (Reference)i.next();
+ Artifact a = createArtifact( ref );
+ if( a != null ) artifacts.add( a );
+ }
+
+ return artifacts;
+ }
+
+ private Artifact createArtifact(Reference ref) throws MojoExecutionException{
+
+ File f = new File( this.frameworkHome, ref.getPath() );
+
+ if( (! f.exists() ) || f.isDirectory() ) throw new MojoExecutionException("File [" + f.getAbsolutePath() + "] doesn't appear to exist.");
+
+ String name = FilenameUtils.getBaseName( f.getName() );
+ String packaging = getPackagingForExtension( FilenameUtils.getExtension( f.getName() ) );
+
+ Artifact a = factory.createDependencyArtifact( "system", name, VersionRange.createFromVersion("1.0"), packaging, null, Artifact.SCOPE_SYSTEM, null, false );
+
+ a.setFile( f );
+
+ return a;
+ }
+
+
+ private static String getPackagingForExtension(String extension){
+
+ String packaging = null;
+
+ if( extension.toLowerCase().equals( "dll" ) ) packaging = "dotnet-library" ;
+ else if( extension.toLowerCase().equals( "exe") ) packaging = "dotnet-exe" ;
+ else if( extension.toLowerCase().equals( "exe" ) ) packaging = "dotnet-winexe" ;
+ else if( extension.toLowerCase().equals( "dll") ) packaging = "dotnet-module" ;
+ else if( extension.toLowerCase().equals( "dll") ) packaging = "dotnet-webapp" ;
+
+ return packaging;
+ }
+}
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioUtil.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioUtil.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioUtil.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioUtil.java Thu Nov 9 22:37:16 2006
@@ -1,260 +1,260 @@
-package org.apache.maven.plugin.vstudio;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-import org.apache.commons.io.FileUtils;
-import org.apache.commons.io.FilenameUtils;
-import org.apache.maven.model.Resource;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.util.DirectoryScanner;
-import org.codehaus.plexus.util.StringUtils;
-
-public class VisualStudioUtil {
-
-
- private static final String[] EMPTY_STRING_ARRAY = {};
-
- private static final String[] DEFAULT_INCLUDES = {"**/**"};
- private static final String[] DEFAULT_INCLUDES_CSHARP = {"**/*.cs"};
-
- public static VisualStudioFile getPom(MavenProject project) {
-
- String relativeToProjectRoot = toRelativeAndFixSeparator( project.getBasedir(), project.getFile().getAbsolutePath(), false );
-
- VisualStudioFile file = new VisualStudioFile( project.getFile(), BuildAction.Content, relativeToProjectRoot, SubType.Null );
-
- return file;
- }
-
-
- public static String toRelativeAndFixSeparator( File basedir, String absolutePath, boolean replaceSlashes )
- {
- String relative = "";
-
- System.out.println( "absolute path" + absolutePath );
-
- if ( absolutePath.equals( basedir.getAbsolutePath() ) )
- {
- System.out.println("option 1");
- //relative = ".";
- }
- else if ( absolutePath.startsWith( basedir.getAbsolutePath() ) )
- {
- System.out.println("option 2");
- relative = absolutePath.substring( basedir.getAbsolutePath().length() + 1 );
- }
- else
- {
- System.out.println("option 3");
- relative = absolutePath;
- }
-
- if( relative.startsWith(".") )
- relative = relative.substring(2, relative.length() );
-
- relative = StringUtils.replace( relative, "", "\\" ); //$NON-NLS-1$ //$NON-NLS-2$
-
- return relative;
- }
-
- public static VisualStudioFile[] getSourceFiles(File baseDir, List sourceFileRoots, Set includes, Set excludes) {
-
- ArrayList list = new ArrayList();
-
- for( Iterator i=sourceFileRoots.iterator();i.hasNext();){
-
- DirectoryScanner scanner = new DirectoryScanner();
-
- String root = (String) i.next();
-
- File rootDir = new File( root );
-
- if( ! rootDir.exists() || ! rootDir.isDirectory() ) break;
-
- scanner.setBasedir( root );
-
- //process the includes and excludes...
- if( includes == null || includes.isEmpty() )
- scanner.setIncludes( DEFAULT_INCLUDES_CSHARP );
- else
- scanner.setIncludes( getStringArrayFromSet( includes ) );
-
- if( excludes == null || excludes.isEmpty() )
- scanner.setExcludes( getStringArrayFromSet( excludes ) );
- else
- scanner.addDefaultExcludes();
-
- scanner.scan();
-
- List includedFiles = Arrays.asList( scanner.getIncludedFiles() );
-
- for ( Iterator j = includedFiles.iterator(); j.hasNext(); )
- {
- String relativePath = (String) j.next();
-
- File f = new File( rootDir, relativePath );
-
- String relativeToProjectRoot = toRelativeAndFixSeparator( baseDir, f.getAbsolutePath(), false );
-
- VisualStudioFile file = create( f, relativeToProjectRoot );
-
- if( file != null ) list.add( file );
- }
- }
-
- return (VisualStudioFile[] )list.toArray( new VisualStudioFile[ list.size() ] );
- }
-
- /**
- * factory method
- *
- * This is a bit messy.....
- *
- * @param f
- * @param relativePath
- * @return
- */
- private static VisualStudioFile create(File f, String relativePath){
-
- VisualStudioFile vsf = null;
-
- if( lastNCharsEqual( f.getName(), 10, ".aspx.resx" ) ) {
- //add .resx for aspx file
- vsf = new VisualStudioFile( f, BuildAction.EmbeddedResources, relativePath, new DependentUpon( FilenameUtils.removeExtension( f.getName() ) + ".cs" ) );
- }else if ( lastNCharsEqual( f.getName(), 8, ".aspx.cs" ) ) {
- vsf = new VisualStudioFile( f, BuildAction.Compile, relativePath, SubType.AspxCodeBehind, new DependentUpon( FilenameUtils.removeExtension( f.getName() ) ) );
- //add normal .asax.cs file
- }else if ( lastNCharsEqual( f.getName(), 8, ".asax.cs" ) ) {
- vsf = new VisualStudioFile( f, BuildAction.Compile, relativePath, SubType.Code, new DependentUpon( FilenameUtils.removeExtension( f.getName() ) ) );
- //add normal .asax file
- }else if ( lastNCharsEqual( f.getName(), 5, ".asax" ) ) {
- vsf = new VisualStudioFile( f, BuildAction.Content, relativePath, SubType.Component );
- //add normal .cs file
- }else if ( lastNCharsEqual( f.getName(), 10, ".asax.resx" ) ) {
- vsf = new VisualStudioFile( f, BuildAction.EmbeddedResources, relativePath, new DependentUpon( FilenameUtils.removeExtension( f.getName() ) + ".cs" ) );
- //add normal .cs file
- }else if ( lastNCharsEqual( f.getName(), 3, ".cs" ) && ( ! lastNCharsEqual( f.getName(), 8, ".aspx.cs") ) ) {
- vsf = new VisualStudioFile( f, BuildAction.Compile, relativePath, SubType.Code );
- //add normal .aspx file.
- }else if ( lastNCharsEqual( f.getName(), 5, ".aspx") ){
- vsf = new VisualStudioFile( f, BuildAction.Content, relativePath, SubType.Form );
- }
-
- return vsf;
- }
-
- private static boolean lastNCharsEqual( String s, int n, String equalTo ){
- if( s.length() < n ) return false;
- if(StringUtils.right( s, n ).equals( equalTo ) ) return true;
- else return false;
- }
-
- private static String[] getStringArrayFromSet(Set setOfStrings){
- return (String[]) setOfStrings.toArray( new String[ setOfStrings.size() ] );
- }
-
-
-
-
- public static VisualStudioFile[] getResourceFiles(File baseDir, List resourceFiles) {
-
- ArrayList list = new ArrayList();
-
- if( resourceFiles == null || resourceFiles.size() == 0 ) return new VisualStudioFile[0];
-
- for( Iterator i = resourceFiles.iterator();i.hasNext();){
-
- DirectoryScanner scanner = new DirectoryScanner();
-
- Resource r = (Resource) i.next();
-
- if( r == null ) return new VisualStudioFile[0];
-
- File rootDir = new File( r.getDirectory() );
-
- if( ! rootDir.exists() || ! rootDir.isDirectory() ) break;
-
- scanner.setBasedir( rootDir );
-
- if( r.getIncludes() == null || r.getIncludes().isEmpty() )
- scanner.setIncludes( DEFAULT_INCLUDES );
- else
- scanner.setIncludes( (String[]) r.getIncludes().toArray( new String[ r.getIncludes().size() ] ) );
-
- if( r.getExcludes() == null || r.getExcludes().isEmpty() )
- scanner.setExcludes( EMPTY_STRING_ARRAY );
- else
- scanner.setExcludes( (String[]) r.getExcludes().toArray( new String[ r.getExcludes().size() ] ) );
-
- scanner.addDefaultExcludes();
- scanner.scan();
-
- List includedFiles = Arrays.asList( scanner.getIncludedFiles() );
-
- for ( Iterator j = includedFiles.iterator(); j.hasNext(); )
- {
- String relativePath = (String) j.next();
-
- File f = new File( rootDir, relativePath );
-
- String relativeToProjectRoot = toRelativeAndFixSeparator( baseDir, f.getAbsolutePath(), false );
-
- VisualStudioFile file = new VisualStudioFile( f, BuildAction.Content, relativeToProjectRoot, SubType.Null );
-
- list.add( file );
- }
- }
-
- return (VisualStudioFile[] )list.toArray( new VisualStudioFile[ list.size() ] );
- }
-
-
-// if ( resource.getIncludes() != null && !resource.getIncludes().isEmpty() )
-// {
-// scanner.setIncludes( (String[]) resource.getIncludes().toArray( EMPTY_STRING_ARRAY ) );
-// }
-// else
-// {
-// scanner.setIncludes( DEFAULT_INCLUDES );
-// }
-// if ( resource.getExcludes() != null && !resource.getExcludes().isEmpty() )
-// {
-// scanner.setExcludes( (String[]) resource.getExcludes().toArray( EMPTY_STRING_ARRAY ) );
-// }
-
- //String destination = name;
-
-
-
-// if ( targetPath != null )
-// {
-// destination = targetPath + "/" + name;
-// }
-//
-// File source = new File( resource.getDirectory(), name );
-//
-// File destinationFile = new File( outputDirectory, destination );
-//
-// if ( !destinationFile.getParentFile().exists() )
-// {
-// destinationFile.getParentFile().mkdirs();
-// }
-//
-// try
-// {
-// copyFile( source, destinationFile, resource.isFiltering() );
-// }
-// catch ( IOException e )
-// {
-// throw new MojoExecutionException( "Error copying resources", e );
-// }
-
-
-}
+package org.apache.maven.plugin.vstudio;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.FilenameUtils;
+import org.apache.maven.model.Resource;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.util.DirectoryScanner;
+import org.codehaus.plexus.util.StringUtils;
+
+public class VisualStudioUtil {
+
+
+ private static final String[] EMPTY_STRING_ARRAY = {};
+
+ private static final String[] DEFAULT_INCLUDES = {"**/**"};
+ private static final String[] DEFAULT_INCLUDES_CSHARP = {"**/*.cs"};
+
+ public static VisualStudioFile getPom(MavenProject project) {
+
+ String relativeToProjectRoot = toRelativeAndFixSeparator( project.getBasedir(), project.getFile().getAbsolutePath(), false );
+
+ VisualStudioFile file = new VisualStudioFile( project.getFile(), BuildAction.Content, relativeToProjectRoot, SubType.Null );
+
+ return file;
+ }
+
+
+ public static String toRelativeAndFixSeparator( File basedir, String absolutePath, boolean replaceSlashes )
+ {
+ String relative = "";
+
+ System.out.println( "absolute path" + absolutePath );
+
+ if ( absolutePath.equals( basedir.getAbsolutePath() ) )
+ {
+ System.out.println("option 1");
+ //relative = ".";
+ }
+ else if ( absolutePath.startsWith( basedir.getAbsolutePath() ) )
+ {
+ System.out.println("option 2");
+ relative = absolutePath.substring( basedir.getAbsolutePath().length() + 1 );
+ }
+ else
+ {
+ System.out.println("option 3");
+ relative = absolutePath;
+ }
+
+ if( relative.startsWith(".") )
+ relative = relative.substring(2, relative.length() );
+
+ relative = StringUtils.replace( relative, "", "\\" ); //$NON-NLS-1$ //$NON-NLS-2$
+
+ return relative;
+ }
+
+ public static VisualStudioFile[] getSourceFiles(File baseDir, List sourceFileRoots, Set includes, Set excludes) {
+
+ ArrayList list = new ArrayList();
+
+ for( Iterator i=sourceFileRoots.iterator();i.hasNext();){
+
+ DirectoryScanner scanner = new DirectoryScanner();
+
+ String root = (String) i.next();
+
+ File rootDir = new File( root );
+
+ if( ! rootDir.exists() || ! rootDir.isDirectory() ) break;
+
+ scanner.setBasedir( root );
+
+ //process the includes and excludes...
+ if( includes == null || includes.isEmpty() )
+ scanner.setIncludes( DEFAULT_INCLUDES_CSHARP );
+ else
+ scanner.setIncludes( getStringArrayFromSet( includes ) );
+
+ if( excludes == null || excludes.isEmpty() )
+ scanner.setExcludes( getStringArrayFromSet( excludes ) );
+ else
+ scanner.addDefaultExcludes();
+
+ scanner.scan();
+
+ List includedFiles = Arrays.asList( scanner.getIncludedFiles() );
+
+ for ( Iterator j = includedFiles.iterator(); j.hasNext(); )
+ {
+ String relativePath = (String) j.next();
+
+ File f = new File( rootDir, relativePath );
+
+ String relativeToProjectRoot = toRelativeAndFixSeparator( baseDir, f.getAbsolutePath(), false );
+
+ VisualStudioFile file = create( f, relativeToProjectRoot );
+
+ if( file != null ) list.add( file );
+ }
+ }
+
+ return (VisualStudioFile[] )list.toArray( new VisualStudioFile[ list.size() ] );
+ }
+
+ /**
+ * factory method
+ *
+ * This is a bit messy.....
+ *
+ * @param f
+ * @param relativePath
+ * @return
+ */
+ private static VisualStudioFile create(File f, String relativePath){
+
+ VisualStudioFile vsf = null;
+
+ if( lastNCharsEqual( f.getName(), 10, ".aspx.resx" ) ) {
+ //add .resx for aspx file
+ vsf = new VisualStudioFile( f, BuildAction.EmbeddedResources, relativePath, new DependentUpon( FilenameUtils.removeExtension( f.getName() ) + ".cs" ) );
+ }else if ( lastNCharsEqual( f.getName(), 8, ".aspx.cs" ) ) {
+ vsf = new VisualStudioFile( f, BuildAction.Compile, relativePath, SubType.AspxCodeBehind, new DependentUpon( FilenameUtils.removeExtension( f.getName() ) ) );
+ //add normal .asax.cs file
+ }else if ( lastNCharsEqual( f.getName(), 8, ".asax.cs" ) ) {
+ vsf = new VisualStudioFile( f, BuildAction.Compile, relativePath, SubType.Code, new DependentUpon( FilenameUtils.removeExtension( f.getName() ) ) );
+ //add normal .asax file
+ }else if ( lastNCharsEqual( f.getName(), 5, ".asax" ) ) {
+ vsf = new VisualStudioFile( f, BuildAction.Content, relativePath, SubType.Component );
+ //add normal .cs file
+ }else if ( lastNCharsEqual( f.getName(), 10, ".asax.resx" ) ) {
+ vsf = new VisualStudioFile( f, BuildAction.EmbeddedResources, relativePath, new DependentUpon( FilenameUtils.removeExtension( f.getName() ) + ".cs" ) );
+ //add normal .cs file
+ }else if ( lastNCharsEqual( f.getName(), 3, ".cs" ) && ( ! lastNCharsEqual( f.getName(), 8, ".aspx.cs") ) ) {
+ vsf = new VisualStudioFile( f, BuildAction.Compile, relativePath, SubType.Code );
+ //add normal .aspx file.
+ }else if ( lastNCharsEqual( f.getName(), 5, ".aspx") ){
+ vsf = new VisualStudioFile( f, BuildAction.Content, relativePath, SubType.Form );
+ }
+
+ return vsf;
+ }
+
+ private static boolean lastNCharsEqual( String s, int n, String equalTo ){
+ if( s.length() < n ) return false;
+ if(StringUtils.right( s, n ).equals( equalTo ) ) return true;
+ else return false;
+ }
+
+ private static String[] getStringArrayFromSet(Set setOfStrings){
+ return (String[]) setOfStrings.toArray( new String[ setOfStrings.size() ] );
+ }
+
+
+
+
+ public static VisualStudioFile[] getResourceFiles(File baseDir, List resourceFiles) {
+
+ ArrayList list = new ArrayList();
+
+ if( resourceFiles == null || resourceFiles.size() == 0 ) return new VisualStudioFile[0];
+
+ for( Iterator i = resourceFiles.iterator();i.hasNext();){
+
+ DirectoryScanner scanner = new DirectoryScanner();
+
+ Resource r = (Resource) i.next();
+
+ if( r == null ) return new VisualStudioFile[0];
+
+ File rootDir = new File( r.getDirectory() );
+
+ if( ! rootDir.exists() || ! rootDir.isDirectory() ) break;
+
+ scanner.setBasedir( rootDir );
+
+ if( r.getIncludes() == null || r.getIncludes().isEmpty() )
+ scanner.setIncludes( DEFAULT_INCLUDES );
+ else
+ scanner.setIncludes( (String[]) r.getIncludes().toArray( new String[ r.getIncludes().size() ] ) );
+
+ if( r.getExcludes() == null || r.getExcludes().isEmpty() )
+ scanner.setExcludes( EMPTY_STRING_ARRAY );
+ else
+ scanner.setExcludes( (String[]) r.getExcludes().toArray( new String[ r.getExcludes().size() ] ) );
+
+ scanner.addDefaultExcludes();
+ scanner.scan();
+
+ List includedFiles = Arrays.asList( scanner.getIncludedFiles() );
+
+ for ( Iterator j = includedFiles.iterator(); j.hasNext(); )
+ {
+ String relativePath = (String) j.next();
+
+ File f = new File( rootDir, relativePath );
+
+ String relativeToProjectRoot = toRelativeAndFixSeparator( baseDir, f.getAbsolutePath(), false );
+
+ VisualStudioFile file = new VisualStudioFile( f, BuildAction.Content, relativeToProjectRoot, SubType.Null );
+
+ list.add( file );
+ }
+ }
+
+ return (VisualStudioFile[] )list.toArray( new VisualStudioFile[ list.size() ] );
+ }
+
+
+// if ( resource.getIncludes() != null && !resource.getIncludes().isEmpty() )
+// {
+// scanner.setIncludes( (String[]) resource.getIncludes().toArray( EMPTY_STRING_ARRAY ) );
+// }
+// else
+// {
+// scanner.setIncludes( DEFAULT_INCLUDES );
+// }
+// if ( resource.getExcludes() != null && !resource.getExcludes().isEmpty() )
+// {
+// scanner.setExcludes( (String[]) resource.getExcludes().toArray( EMPTY_STRING_ARRAY ) );
+// }
+
+ //String destination = name;
+
+
+
+// if ( targetPath != null )
+// {
+// destination = targetPath + "/" + name;
+// }
+//
+// File source = new File( resource.getDirectory(), name );
+//
+// File destinationFile = new File( outputDirectory, destination );
+//
+// if ( !destinationFile.getParentFile().exists() )
+// {
+// destinationFile.getParentFile().mkdirs();
+// }
+//
+// try
+// {
+// copyFile( source, destinationFile, resource.isFiltering() );
+// }
+// catch ( IOException e )
+// {
+// throw new MojoExecutionException( "Error copying resources", e );
+// }
+
+
+}
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/VisualStudioUtil.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003CSharpWriter.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003CSharpWriter.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003CSharpWriter.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003CSharpWriter.java Thu Nov 9 22:37:16 2006
@@ -1,31 +1,31 @@
-package org.apache.maven.plugin.vstudio.xml;
-
-import org.apache.maven.plugin.logging.Log;
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.xml.XMLWriter;
-
-/*
- * This writer caters for the CSHARP section of the .proj file.
- *
- * <CSHARP
- * ProjectType = "Local"
- * ProductVersion = "7.10.3077"
- * SchemaVersion = "2.0"
- * ProjectGuid = "{E6E60F5C-A28D-4B3F-A01C-A334F848B9BE}">
- *
- */
-public class VisualStudio2003CSharpWriter {
-
- private Log log = null;
-
- public VisualStudio2003CSharpWriter( Log log ){
- this.log = log;
- }
-
- public void write(XMLWriter writer, String projectType, String schemaVersion, String productVersion, String projectGuid){
-
-
- }
-
-
-}
+package org.apache.maven.plugin.vstudio.xml;
+
+import org.apache.maven.plugin.logging.Log;
+import org.codehaus.plexus.util.StringUtils;
+import org.codehaus.plexus.util.xml.XMLWriter;
+
+/*
+ * This writer caters for the CSHARP section of the .proj file.
+ *
+ * <CSHARP
+ * ProjectType = "Local"
+ * ProductVersion = "7.10.3077"
+ * SchemaVersion = "2.0"
+ * ProjectGuid = "{E6E60F5C-A28D-4B3F-A01C-A334F848B9BE}">
+ *
+ */
+public class VisualStudio2003CSharpWriter {
+
+ private Log log = null;
+
+ public VisualStudio2003CSharpWriter( Log log ){
+ this.log = log;
+ }
+
+ public void write(XMLWriter writer, String projectType, String schemaVersion, String productVersion, String projectGuid){
+
+
+ }
+
+
+}
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003CSharpWriter.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003ConfigWriter.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003ConfigWriter.java?view=diff&rev=473206&r1=473205&r2=473206
==============================================================================
--- maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003ConfigWriter.java (original)
+++ maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003ConfigWriter.java Thu Nov 9 22:37:16 2006
@@ -1,90 +1,90 @@
-package org.apache.maven.plugin.vstudio.xml;
-
-import org.apache.maven.plugin.logging.Log;
-import org.apache.maven.plugin.vstudio.ProjectSettings;
-import org.codehaus.plexus.util.xml.XMLWriter;
-
-
-/**
- *
- * <Config
- Name = "Debug"
- AllowUnsafeBlocks = "false"
- BaseAddress = "285212672"
- CheckForOverflowUnderflow = "false"
- ConfigurationOverrideFile = ""
- DefineConstants = "DEBUG;TRACE"
- DocumentationFile = ""
- DebugSymbols = "true"
- FileAlignment = "4096"
- IncrementalBuild = "false"
- NoStdLib = "false"
- NoWarn = ""
- Optimize = "false"
- OutputPath = "bin\Debug\"
- RegisterForComInterop = "false"
- RemoveIntegerChecks = "false"
- TreatWarningsAsErrors = "false"
- WarningLevel = "4"
- />
- *
- * @author stevenc
- *
- */
-public class VisualStudio2003ConfigWriter {
-
- private Log log = null;
-
- public VisualStudio2003ConfigWriter( Log log ){
- this.log = log;
- }
-
- public void write(XMLWriter writer, ProjectSettings settings){
-
- writer.startElement("Config");
- writer.addAttribute("Name", "Debug" );
- writer.addAttribute("AllowUnsafeBlocks", "false" );
- //writer.addAttribute("BaseAddress", "285212672" );
- writer.addAttribute("CheckForOverflowUnderflow", "false" );
- writer.addAttribute("ConfigurationOverrideFile", "" );
- writer.addAttribute("DefineConstants", "DEBUG;TRACE" );
- writer.addAttribute("DocumentationFile", "" );
- writer.addAttribute("DebugSymbols", "true" );
- writer.addAttribute("FileAlignment", "4096" );
- writer.addAttribute("IncrementalBuild", "false" );
- writer.addAttribute("NoStdLib", "false" );
- writer.addAttribute("NoWarn", "" );
- writer.addAttribute("Optimize", "false" );
- writer.addAttribute("OutputPath", "target\\dotnet-assembly\\" );
- writer.addAttribute("RegisterForComInterop", "false" );
- writer.addAttribute("RemoveIntegerChecks", "false" );
- writer.addAttribute("TreatWarningsAsErrors", "false" );
- writer.addAttribute("WarningLevel", "4" );
-
- writer.endElement();
-
- writer.startElement("Config");
- writer.addAttribute("Name", "Release" );
- writer.addAttribute("AllowUnsafeBlocks", "false" );
- //writer.addAttribute("BaseAddress", "285212672" );
- writer.addAttribute("CheckForOverflowUnderflow", "false" );
- writer.addAttribute("ConfigurationOverrideFile", "" );
- writer.addAttribute("DefineConstants", "TRACE" );
- writer.addAttribute("DocumentationFile", settings.getProjectName() + ".xml" );
- writer.addAttribute("DebugSymbols", "false" );
- writer.addAttribute("FileAlignment", "4096" );
- writer.addAttribute("IncrementalBuild", "false" );
- writer.addAttribute("NoStdLib", "false" );
- writer.addAttribute("NoWarn", "" );
- writer.addAttribute("Optimize", "true" );
- writer.addAttribute("OutputPath", "target\\dotnet-assembly\\" );
- writer.addAttribute("RegisterForComInterop", "false" );
- writer.addAttribute("RemoveIntegerChecks", "false" );
- writer.addAttribute("TreatWarningsAsErrors", "false" );
- writer.addAttribute("WarningLevel", "4" );
-
- writer.endElement();
- }
-
-}
-
+package org.apache.maven.plugin.vstudio.xml;
+
+import org.apache.maven.plugin.logging.Log;
+import org.apache.maven.plugin.vstudio.ProjectSettings;
+import org.codehaus.plexus.util.xml.XMLWriter;
+
+
+/**
+ *
+ * <Config
+ Name = "Debug"
+ AllowUnsafeBlocks = "false"
+ BaseAddress = "285212672"
+ CheckForOverflowUnderflow = "false"
+ ConfigurationOverrideFile = ""
+ DefineConstants = "DEBUG;TRACE"
+ DocumentationFile = ""
+ DebugSymbols = "true"
+ FileAlignment = "4096"
+ IncrementalBuild = "false"
+ NoStdLib = "false"
+ NoWarn = ""
+ Optimize = "false"
+ OutputPath = "bin\Debug\"
+ RegisterForComInterop = "false"
+ RemoveIntegerChecks = "false"
+ TreatWarningsAsErrors = "false"
+ WarningLevel = "4"
+ />
+ *
+ * @author stevenc
+ *
+ */
+public class VisualStudio2003ConfigWriter {
+
+ private Log log = null;
+
+ public VisualStudio2003ConfigWriter( Log log ){
+ this.log = log;
+ }
+
+ public void write(XMLWriter writer, ProjectSettings settings){
+
+ writer.startElement("Config");
+ writer.addAttribute("Name", "Debug" );
+ writer.addAttribute("AllowUnsafeBlocks", "false" );
+ //writer.addAttribute("BaseAddress", "285212672" );
+ writer.addAttribute("CheckForOverflowUnderflow", "false" );
+ writer.addAttribute("ConfigurationOverrideFile", "" );
+ writer.addAttribute("DefineConstants", "DEBUG;TRACE" );
+ writer.addAttribute("DocumentationFile", "" );
+ writer.addAttribute("DebugSymbols", "true" );
+ writer.addAttribute("FileAlignment", "4096" );
+ writer.addAttribute("IncrementalBuild", "false" );
+ writer.addAttribute("NoStdLib", "false" );
+ writer.addAttribute("NoWarn", "" );
+ writer.addAttribute("Optimize", "false" );
+ writer.addAttribute("OutputPath", "target\\dotnet-assembly\\" );
+ writer.addAttribute("RegisterForComInterop", "false" );
+ writer.addAttribute("RemoveIntegerChecks", "false" );
+ writer.addAttribute("TreatWarningsAsErrors", "false" );
+ writer.addAttribute("WarningLevel", "4" );
+
+ writer.endElement();
+
+ writer.startElement("Config");
+ writer.addAttribute("Name", "Release" );
+ writer.addAttribute("AllowUnsafeBlocks", "false" );
+ //writer.addAttribute("BaseAddress", "285212672" );
+ writer.addAttribute("CheckForOverflowUnderflow", "false" );
+ writer.addAttribute("ConfigurationOverrideFile", "" );
+ writer.addAttribute("DefineConstants", "TRACE" );
+ writer.addAttribute("DocumentationFile", settings.getProjectName() + ".xml" );
+ writer.addAttribute("DebugSymbols", "false" );
+ writer.addAttribute("FileAlignment", "4096" );
+ writer.addAttribute("IncrementalBuild", "false" );
+ writer.addAttribute("NoStdLib", "false" );
+ writer.addAttribute("NoWarn", "" );
+ writer.addAttribute("Optimize", "true" );
+ writer.addAttribute("OutputPath", "target\\dotnet-assembly\\" );
+ writer.addAttribute("RegisterForComInterop", "false" );
+ writer.addAttribute("RemoveIntegerChecks", "false" );
+ writer.addAttribute("TreatWarningsAsErrors", "false" );
+ writer.addAttribute("WarningLevel", "4" );
+
+ writer.endElement();
+ }
+
+}
+
Propchange: maven/sandbox/plugins/maven-vstudio-plugin/src/main/java/org/apache/maven/plugin/vstudio/xml/VisualStudio2003ConfigWriter.java
------------------------------------------------------------------------------
svn:eol-style = native