You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nmaven-commits@incubator.apache.org by si...@apache.org on 2006/12/10 23:44:12 UTC
svn commit: r485313 [14/15] - in /incubator/nmaven/trunk: components/
components/dotnet-artifact/ components/dotnet-artifact/src/
components/dotnet-artifact/src/main/
components/dotnet-artifact/src/main/java/
components/dotnet-artifact/src/main/java/or...
Added: incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XsdGeneratorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XsdGeneratorMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XsdGeneratorMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XsdGeneratorMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,209 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.plugin.xsd;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.util.FileUtils;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.io.File;
+import java.io.IOException;
+
+import org.apache.maven.dotnet.executable.ExecutionException;
+import org.apache.maven.dotnet.PlatformUnsupportedException;
+
+/**
+ * Generates XSD class.
+ *
+ * @author Shane Isbell
+ * @goal xsd
+ * @phase process-sources
+ */
+
+public class XsdGeneratorMojo extends AbstractMojo {
+
+
+ /**
+ * The directory to place the generated binding classes.
+ *
+ * @parameter expression="${outputDirectory}" default-value = "${project.build.directory}${file.separator}build-sources"
+ * @required
+ */
+ private String outputDirectory;
+
+ /**
+ * @parameter expression="${xsdFile}"
+ * @required
+ */
+ private String xsdFile;
+
+ /**
+ * Generate either classes or dataset.
+ *
+ * @parameter expression="${generate}" default-value="classes"
+ */
+ private String generate;
+
+ /**
+ * Specifies the element(s) in the schema to generate code for. Not supported for MONO.
+ *
+ * @parameter expression="${elements}"
+ */
+ private ArrayList<String> elements;
+
+ /**
+ * Generates the INotifyPropertyChanged interface to enable data binding. Not supported for MONO.
+ *
+ * @parameter expression="${enableDataBinding}" default-value="false"
+ */
+ private boolean enableDataBinding;
+
+ /**
+ * Generates fields instead of properties. Not supported for MONO.
+ *
+ * @parameter expression = "${fields}" default-value="false"
+ */
+ private boolean fields;
+
+ /**
+ * Programming language to use.
+ *
+ * @parameter expression="${language}" default-value="CS"
+ */
+ private String language;
+
+ /**
+ * Runtime namespace for the generated types.
+ *
+ * @parameter expression="${namespace}" default-value="${project.groupId}"
+ */
+ private String namespace;
+
+ /**
+ * Generates explicit order identifiers on all particle members. Not supported for MONO.
+ *
+ * @parameter expression = "${order}" default-value = "false"
+ */
+ private boolean order;
+
+ /**
+ * Specifies the URI for the elements in the schema to generate code for.
+ */
+ private String uri;
+
+ /**
+ * Tells the xsd plugin to ignore options not appropriate to the xsd vendor.
+ *
+ * @parameter expresion ="${ignoreUnusedOptions}" default-value="false"
+ */
+ private boolean ignoreUnusedOptions;
+
+ /**
+ * The maven project.
+ *
+ * @parameter expression="${project}"
+ * @required
+ */
+ private MavenProject project;
+
+ /**
+ * The home directory of your .NET SDK.
+ *
+ * @parameter expression="${netHome}"
+ */
+ private File netHome;
+
+ /**
+ * The Vendor for the executable. Supports MONO and MICROSOFT: the default value is <code>MICROSOFT</code>. Not
+ * case or white-space sensitive.
+ *
+ * @parameter expression="${vendor}"
+ */
+ private String vendor;
+
+ /**
+ * @parameter expression = "${frameworkVersion}" default-value = "2.0.50727"
+ */
+ private String frameworkVersion;
+
+ /**
+ * The profile that the executable should use.
+ *
+ * @parameter expression = "${profile}" default-value = "XSD:SCHEMA"
+ */
+ private String profile;
+
+ /**
+ * @component
+ */
+ private org.apache.maven.dotnet.executable.NetExecutableFactory netExecutableFactory;
+
+
+ /**
+ * @component
+ */
+ private org.apache.maven.dotnet.NMavenRepositoryRegistry nmavenRegistry;
+
+ public void execute() throws MojoExecutionException {
+ try {
+ nmavenRegistry.createRepositoryRegistry();
+ } catch (IOException e) {
+ throw new MojoExecutionException("NMAVEN-1400-0032 Failed to create the repository registry for this plugin", e);
+ }
+
+ FileUtils.mkdir(outputDirectory);
+ try {
+ netExecutableFactory.getNetExecutableFor(vendor, frameworkVersion, profile,
+ project, getCommands(), netHome).execute();
+ } catch (ExecutionException e) {
+ throw new MojoExecutionException("NMAVEN-1400-000: Unable to execute xsd: Vendor " + vendor
+ + ", frameworkVersion = " + frameworkVersion + ", Profile = " + profile, e);
+ } catch (PlatformUnsupportedException e) {
+ throw new MojoExecutionException("NMAVEN-1400-001: Platform Unsupported: Vendor " + vendor
+ + ", frameworkVersion = " + frameworkVersion + ", Profile = " + profile, e);
+ }
+ }
+
+ public List<String> getCommands() throws MojoExecutionException {
+ List<String> commands = new ArrayList<String>();
+ commands.add(new File(xsdFile.trim()).getAbsolutePath());
+ commands.add("/o:" + outputDirectory);
+ commands.add("/" + generate.trim());
+ commands.add("/language:" + language.trim());
+ commands.add("/namespace:" + namespace.trim());
+ if (!isEmpty(uri)) commands.add("/uri:" + uri);
+ if (enableDataBinding) commands.add("/enableDataBinding");
+ if (fields) commands.add("/fields");
+ if (order) commands.add("/order");
+ if (elements != null) {
+ for (String element : elements) {
+ commands.add("/element:" + element);
+ }
+ }
+ // commands.add("/nologo");
+ return commands;
+ }
+
+ private boolean isEmpty(String value) {
+ return (value == null || value.trim().equals(""));
+ }
+}
Propchange: incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XsdGeneratorMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/site.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/site.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/site.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,19 @@
+<project name="NMaven">
+ <bannerRight>
+ <src>http://sflogo.sourceforge.net/sflogo.php?group_id=176362&type=4</src>
+ </bannerRight>
+
+ <body>
+ <links>
+ <item name="Project Site" href="http://sourceforge.net/projects/nmaven/"/>
+ <item name="NMaven" href="http://nmaven.sourceforge.net/"/>
+ <item name="NMaven SVN" href="http://svn.sourceforge.net/viewvc/nmaven/"/>
+ <item name="Maven" href="http://maven.apache.org/"/>
+ <item name="Mono Project" href="http://www.mono-project.com/"/>
+ </links>
+ <menu name="General Info">
+ <item name="About" href="index.html"/>
+ </menu>
+ ${reports}
+ </body>
+</project>
\ No newline at end of file
Propchange: incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/nmaven-utility-resx/LICENSE.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-resx/LICENSE.txt?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-resx/LICENSE.txt (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-resx/LICENSE.txt Sun Dec 10 15:43:51 2006
@@ -0,0 +1,176 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
Propchange: incubator/nmaven/trunk/plugins/nmaven-utility-resx/LICENSE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,42 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>NMaven.Utility.ResX</groupId>
+ <artifactId>resx</artifactId>
+ <packaging>exe</packaging>
+ <version>0.14</version>
+ <name>NMaven.Utility.ResX</name>
+
+ <build>
+ <sourceDirectory>src/main/csharp</sourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.dotnet.plugins</groupId>
+ <artifactId>maven-compile-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <activation>
+ <property>
+ <name>version</name>
+ <value>1.1</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.dotnet.plugins</groupId>
+ <artifactId>maven-compile-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <frameworkVersion>1.1.4322</frameworkVersion>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
\ No newline at end of file
Propchange: incubator/nmaven/trunk/plugins/nmaven-utility-resx/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/config/resx.exe.config
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/config/resx.exe.config?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/config/resx.exe.config (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/config/resx.exe.config Sun Dec 10 15:43:51 2006
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <appSettings>
+ <add key="abs" value="audio/x-mpeg"/>
+ <add key="ai" value="application/postscript"/>
+ <add key="aif" value="audio/x-aiff"/>
+ <add key="aifc" value="audio/x-aiff"/>
+ <add key="aiff" value="audio/x-aiff"/>
+ <add key="aim" value="application/x-aim"/>
+ <add key="art" value="image/x-jg"/>
+ <add key="asf" value="video/x-ms-asf"/>
+ <add key="asx" value="video/x-ms-asf "/>
+ <add key="au" value="audio/basic"/>
+ <add key="avi" value="video/x-msvideo"/>
+ <add key="avx" value="video/x-rad-screenplay"/>
+ <add key="bcpio" value="application/x-bcpio"/>
+ <add key="bin" value="application/octet-stream"/>
+ <add key="bmp" value="image/bmp"/>
+ <add key="body" value="text/html"/>
+ <add key="cdf" value="application/x-cdf"/>
+ <add key="cer" value="application/x-x509-ca-cert"/>
+ <add key="class" value="application/java"/>
+ <add key="cpio" value="application/x-cpio"/>
+ <add key="csh" value="application/x-csh"/>
+ <add key="css" value="text/css"/>
+ <add key="dib" value="image/bmp"/>
+ <add key="doc" value="application/msword"/>
+ <add key="dtd" value="text/plain"/>
+ <add key="dv" value="video/x-dv"/>
+ <add key="dvi" value="application/x-dvi"/>
+ <add key="eps" value="application/postscript"/>
+ <add key="etx" value="text/x-setext"/>
+ <add key="exe" value="application/octet-stream"/>
+ <add key="gif" value="image/gif"/>
+ <add key="gtar" value="application/x-gtar"/>
+ <add key="gz" value="application/x-gzip"/>
+ <add key="hdf" value="application/x-hdf"/>
+ <add key="htc" value="text/x-component"/>
+ <add key="htm" value="text/html"/>
+ <add key="html" value="text/html"/>
+ <add key="hqx" value="application/mac-binhex40"/>
+ <add key="ico" value="image/ico"/>
+ <add key="ief" value="image/ief"/>
+ <add key="jad" value="text/vnd.sun.j2me.app-descriptor"/>
+ <add key="jar" value="application/java-archive"/>
+ <add key="java" value="text/plain"/>
+ <add key="jnlp" value="application/x-java-jnlp-file"/>
+ <add key="jpe" value="image/jpeg"/>
+ <add key="jpeg" value="image/jpeg"/>
+ <add key="jpg" value="image/jpeg"/>
+ <add key="js" value="text/javascript"/>
+ <add key="jsf" value="text/plain"/>
+ <add key="jspf" value="text/plain"/>
+ <add key="kar" value="audio/midi"/>
+ <add key="latex" value="application/x-latex"/>
+ <add key="m3u" value="audio/x-mpegurl"/>
+ <add key="mac" value="image/x-macpaint"/>
+ <add key="man" value="application/x-troff-man"/>
+ <add key="me" value="application/x-troff-me"/>
+ <add key="mid" value="audio/midi"/>
+ <add key="midi" value="audio/midi"/>
+ <add key="mif" value="application/x-mif"/>
+ <add key="mms" value="application/vnd.wap.mms-message"/>
+ <add key="mov" value="video/quicktime"/>
+ <add key="movie" value="video/x-sgi-movie"/>
+ <add key="mp1" value="audio/x-mpeg"/>
+ <add key="mp2" value="audio/x-mpeg"/>
+ <add key="mp3" value="audio/x-mpeg"/>
+ <add key="mpa" value="audio/x-mpeg"/>
+ <add key="mpe" value="video/mpeg"/>
+ <add key="mpeg" value="video/mpeg"/>
+ <add key="mpega" value="audio/x-mpeg"/>
+ <add key="mpg" value="video/mpeg"/>
+ <add key="mpv2" value="video/mpeg2"/>
+ <add key="ms" value="application/x-wais-source"/>
+ <add key="nc" value="application/x-netcdf"/>
+ <add key="oda" value="application/oda"/>
+ <add key="par" value="application/x-jvending-par-archive"/>
+ <add key="pbm" value="image/x-portable-bitmap"/>
+ <add key="pct" value="image/pict"/>
+ <add key="pdf" value="application/pdf"/>
+ <add key="pgm" value="image/x-portable-graymap"/>
+ <add key="pic" value="image/pict"/>
+ <add key="pict" value="image/pict"/>
+ <add key="pls" value="audio/x-scpls"/>
+ <add key="png" value="image/png"/>
+ <add key="pnm" value="image/x-portable-anymap"/>
+ <add key="pnt" value="image/x-macpaint"/>
+ <add key="ppm" value="image/x-portable-pixmap"/>
+ <add key="ppt" value="application/powerpoint"/>
+ <add key="ps" value="application/postscript"/>
+ <add key="psd" value="image/x-photoshop"/>
+ <add key="qt" value="video/quicktime"/>
+ <add key="qti" value="image/x-quicktime"/>
+ <add key="qtif" value="image/x-quicktime"/>
+ <add key="ra" value="application/x-pn-realaudio"/>
+ <add key="ram" value="application/x-pn-realaudio"/>
+ <add key="ras" value="image/x-cmu-raster"/>
+ <add key="rgb" value="image/x-rgb"/>
+ <add key="rm" value="application/vnd.rn-realmedia"/>
+ <add key="roff" value="application/x-troff"/>
+ <add key="rtf" value="application/rtf"/>
+ <add key="rtx" value="text/richtext"/>
+ <add key="sh" value="application/x-sh"/>
+ <add key="shar" value="application/x-shar"/>
+ <add key="smf" value="audio/x-midi"/>
+ <add key="sit" value="application/x-stuffit"/>
+ <add key="snd" value="audio/basic"/>
+ <add key="src" value="application/x-wais-source"/>
+ <add key="sv4cpio" value="application/x-sv4cpio"/>
+ <add key="sv4crc" value="application/x-sv4crc"/>
+ <add key="swf" value="application/x-shockwave-flash"/>
+ <add key="t" value="application/x-troff"/>
+ <add key="tar" value="application/x-tar"/>
+ <add key="tcl" value="application/x-tcl"/>
+ <add key="tex" value="application/x-tex"/>
+ <add key="texi" value="application/x-texinfo"/>
+ <add key="texinfo" value="application/x-texinfo"/>
+ <add key="tif" value="image/tiff"/>
+ <add key="tiff" value="image/tiff"/>
+ <add key="torrent" value="application/x-bittorrent"/>
+ <add key="tr" value="application/x-troff"/>
+ <add key="tsv" value="text/tab-separated-values"/>
+ <add key="txt" value="text/plain"/>
+ <add key="ulw" value="audio/basic"/>
+ <add key="ustar" value="application/x-ustar"/>
+ <add key="wma" value="audio/x-ms-wma"/>
+ <add key="xbm" value="image/x-xbitmap"/>
+ <add key="xht" value="application/xhtml"/>
+ <add key="xhtml" value="application/xhtml"/>
+ <add key="xml" value="text/xml"/>
+ <add key="xpm" value="image/x-xpixmap"/>
+ <add key="x-properties" value="text/plain"/>
+ <add key="xsl" value="text/xml"/>
+ <add key="xwd" value="image/x-xwindowdump"/>
+ <add key="wav" value="audio/x-wav"/>
+ <add key="svg" value="image/svg"/>
+ <add key="svgz" value="image/svg"/>
+ <add key="vsd" value="application/x-visio"/>
+ <add key="wbmp" value="image/vnd.wap.wbmp"/>
+ <add key="wml" value="text/vnd.wap.wml"/>
+ <add key="wmlc" value="application/vnd.wap.wmlc"/>
+ <add key="wmls" value="text/vnd.wap.wmlscript"/>
+ <add key="wmlscriptc" value="application/vnd.wap.wmlscriptc"/>
+ <add key="wrl" value="x-world/x-vrml"/>
+ <add key="Z" value="application/x-compress"/>
+ <add key="z" value="application/x-compress"/>
+ <add key="zip" value="application/zip"/>
+ </appSettings>
+</configuration>
Propchange: incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/config/resx.exe.config
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/csharp/MimeType.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/csharp/MimeType.cs?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/csharp/MimeType.cs (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/csharp/MimeType.cs Sun Dec 10 15:43:51 2006
@@ -0,0 +1,66 @@
+//
+// Copyright 2006 Shane Isbell
+//
+// 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.
+//
+
+using System;
+
+namespace NMaven.Utility.ResX
+{
+ /// <summary>
+ /// Provides mime-type information
+ /// </summary>
+ internal class MimeType
+ {
+ private string subType;
+
+ private string type;
+
+ private string extension;
+
+ /// <summary>
+ /// Constructor
+ /// </summary>
+ /// <param name="type"></param>
+ /// <param name="subType"></param>
+ /// <param name="extension">the extension of a file with the mime-type</param>
+
+ internal MimeType(string type, string subType, string extension)
+ {
+ this.type = type;
+ this.subType = subType;
+ this.extension = extension;
+ }
+
+ internal string GetSubType()
+ {
+ return subType;
+ }
+
+ internal string GetPrimaryType()
+ {
+ return type;
+ }
+
+ internal string GetExtension()
+ {
+ return extension;
+ }
+
+ public override string ToString()
+ {
+ return "SubType = " + subType + ", Type = " + type + ", Extension = " + extension;
+ }
+ }
+}
\ No newline at end of file
Added: incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/csharp/ResX.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/csharp/ResX.cs?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/csharp/ResX.cs (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-resx/src/main/csharp/ResX.cs Sun Dec 10 15:43:51 2006
@@ -0,0 +1,173 @@
+//
+// Copyright 2006 Shane Isbell
+//
+// 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.
+//
+
+using System;
+using System.Text;
+using System.Resources;
+using System.IO;
+using System.Configuration;
+using System.Drawing;
+
+namespace NMaven.Utility.ResX
+{
+ /// <summary>
+ /// Utility for generating resource files
+ /// </summary>
+ class ResX
+ {
+ ///<summary>
+ /// Generates a resource file
+ ///</summary>
+ ///<param name = "sourceDirectory">directory containing resources (jpg, txt, wav)</param>
+ ///<param name = "outputFile">the generated .resources file</param>
+ ///<returns>void</returns>
+ public void Execute(string sourceDirectory, string outputFile)
+ {
+ AppSettingsReader appSettingsReader = new AppSettingsReader();
+ if (!hasConfig(appSettingsReader)) throw new Exception("NMAVEN-9000-003: Could not find exe.config file.");
+
+ ResXResourceWriter resourceWriter = new ResXResourceWriter(@outputFile);
+
+ DirectoryInfo directoryInfo =
+ new DirectoryInfo(@sourceDirectory);
+ foreach (FileInfo fileInfo in directoryInfo.GetFiles())
+ {
+ MimeType mimeType = GetMimeTypeFor(fileInfo.Name, appSettingsReader);
+ string extension = mimeType.GetExtension();
+ if (extension.Equals("ico"))
+ resourceWriter.AddResource(fileInfo.Name, new Icon(@fileInfo.FullName));
+ else if (extension.Equals("x-properties"))
+ {
+ StreamReader reader = new StreamReader(fileInfo.OpenRead(),Encoding.Default);
+ while(reader.Peek() >= 0)
+ {
+ string[] values = reader.ReadLine().Split('=');
+ if(values != null && values.Length == 2 && !values[0].StartsWith("#"))
+ resourceWriter.AddResource(values[0], values[1]);
+ }
+ reader.Close();
+ }
+ else if (extension.Equals("db"))
+ continue;//Thumbnail
+ else if(extension.Equals("wav"))
+ {
+ MemoryStream memoryStream = FileInfoToMemoryStream(fileInfo);
+ resourceWriter.AddResource(fileInfo.Name, memoryStream);
+ memoryStream.Close();
+ }
+ else if (mimeType.GetPrimaryType().Equals("image"))
+ resourceWriter.AddResource(fileInfo.Name, new Bitmap(@fileInfo.FullName));
+ else if(mimeType.GetPrimaryType().Equals("text"))
+ resourceWriter.AddResource(fileInfo.Name, fileInfo.OpenText().ReadToEnd());
+ else
+ {
+ MemoryStream memoryStream = FileInfoToMemoryStream(fileInfo);
+ resourceWriter.AddResource(fileInfo.Name, memoryStream.ToArray());
+ memoryStream.Close();
+ }
+ }
+ resourceWriter.Generate();
+ resourceWriter.Close();
+ }
+
+ /// <summary>
+ /// Entry method
+ /// </summary>
+ /// <param name="args">array of arguments: 1) source directory of resources and 2) resource output file</param>
+ /// <returns>if successful, return 0, otherwise returns 1</returns>
+ public static int Main(string[] args)
+ {
+ Console.WriteLine("NMAVEN Resource Generator Utility ");
+ if (args.Length != 2)
+ {
+ StringBuilder stringBuilder = new StringBuilder();
+ foreach (string arg in args)
+ stringBuilder.Append("Arg = ").Append(arg).Append(", ");
+
+ Console.Error.WriteLine("NMAVEN-9000-000: Exiting program: Incorrect number of args (should have 2): Number Found = {0}, {1} ",
+ args.Length, stringBuilder.ToString());
+ return 1;
+ }
+
+ string sourceDirectory = args[0];
+ string outputFile = args[1];
+
+ ResX resX = new ResX();
+ try
+ {
+ resX.Execute(sourceDirectory, outputFile);
+ }
+ catch (Exception e)
+ {
+ Console.Error.WriteLine("NMAVEN-9000-002: Unable to generate resources: " + e.ToString());
+ return 1;
+ }
+ return 0;
+ }
+
+ /// <summary>
+ /// Returns mime-type information for the given file
+ /// </summary>
+ /// <param name="fileName">file name</param>
+ /// <param name="appSettingsReader">reader for the utility config</param>
+ /// <returns>mime-type information for the given file</returns>
+ private MimeType GetMimeTypeFor(String fileName, AppSettingsReader appSettingsReader)
+ {
+ string extension = new FileInfo(fileName).Extension.Substring(1);
+ string mimeType = null;
+ try
+ {
+ mimeType = (string)appSettingsReader.GetValue(extension, typeof(string));
+ }
+ catch (InvalidOperationException e)
+ {
+ Console.WriteLine("NMAVEN-9000-001: Could not find the mime-type: Extension = {0} "
+ , extension);
+ return new MimeType("", "", extension);
+ }
+ return new MimeType(mimeType.Split('/')[0], mimeType.Split('/')[1], extension);
+ }
+
+ /// <summary>
+ /// Converts file info to memory stream
+ /// </summary>
+ /// <param name="fileInfo">file info</param>
+ /// <returns>memory stream for the file</returns>
+ private MemoryStream FileInfoToMemoryStream(FileInfo fileInfo)
+ {
+ MemoryStream memoryStream = new MemoryStream();
+ BinaryReader reader = new BinaryReader(fileInfo.Open(FileMode.Open), Encoding.Default);
+ byte[] buffer = new byte[1024];
+ int n = 0;
+ while ((n = reader.Read(buffer, 0, 1024)) > 0)
+ memoryStream.Write(buffer, 0, n);
+ return memoryStream;
+ }
+
+ private bool hasConfig(AppSettingsReader appSettingsReader)
+ {
+ try
+ {
+ string s = (string)appSettingsReader.GetValue("txt", typeof(string));
+ return true;
+ }
+ catch (InvalidOperationException e)
+ {
+ return false;
+ }
+ }
+ }
+}
Added: incubator/nmaven/trunk/plugins/nmaven-utility-settings/nmaven-settings.xsd
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-settings/nmaven-settings.xsd?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-settings/nmaven-settings.xsd (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-settings/nmaven-settings.xsd Sun Dec 10 15:43:51 2006
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xs:element name="nmavenSettings">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="operatingSystem" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="architecture" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="defaultSetup" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="vendorName" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="vendorVersion" type="xs:string" minOccurs="0" maxOccurs="1" />
+ <xs:element name="frameworkVersion" type="xs:string" minOccurs="0" maxOccurs="1" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="vendors" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="vendor" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="vendorName" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="vendorVersion" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="isDefault" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="frameworks" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="framework" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="frameworkVersion" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="installRoot" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmavenSettings" />
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
\ No newline at end of file
Propchange: incubator/nmaven/trunk/plugins/nmaven-utility-settings/nmaven-settings.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/nmaven-utility-settings/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-settings/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-settings/pom.xml (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-settings/pom.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,50 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>NMaven.Utility.Settings</groupId>
+ <artifactId>SettingsGenerator</artifactId>
+ <packaging>exe</packaging>
+ <version>0.14</version>
+ <name>NMaven.Utility.Settings</name>
+ <dependencies>
+ <dependency>
+ <groupId>org.nunit</groupId>
+ <artifactId>nunit.framework</artifactId>
+ <version>2.2.8.0</version>
+ <type>library</type>
+ </dependency>
+ </dependencies>
+ <build>
+ <sourceDirectory>src/main/csharp</sourceDirectory>
+ <testSourceDirectory>src/test/csharp</testSourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.dotnet.plugins</groupId>
+ <artifactId>maven-compile-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <activation>
+ <property>
+ <name>version</name>
+ <value>1.1</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.dotnet.plugins</groupId>
+ <artifactId>maven-compile-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <frameworkVersion>1.1.4322</frameworkVersion>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
\ No newline at end of file
Propchange: incubator/nmaven/trunk/plugins/nmaven-utility-settings/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/ExecutionException.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/ExecutionException.cs?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/ExecutionException.cs (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/ExecutionException.cs Sun Dec 10 15:43:51 2006
@@ -0,0 +1,33 @@
+//
+// Copyright 2006 Shane Isbell
+//
+// 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.
+//
+
+using System;
+using System.Runtime.Serialization;
+
+namespace NMaven.Utility
+{
+ [Serializable]
+ public class ExecutionException : Exception
+ {
+ public ExecutionException() : base(){ }
+
+ public ExecutionException(String message) : base(message) { }
+
+ public ExecutionException(String message, Exception exception) : base(message, exception) { }
+
+ public ExecutionException(SerializationInfo info, StreamingContext context) : base(info, context) { }
+ }
+}
Added: incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/SettingsGenerator.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/SettingsGenerator.cs?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/SettingsGenerator.cs (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/SettingsGenerator.cs Sun Dec 10 15:43:51 2006
@@ -0,0 +1,268 @@
+//
+// Copyright 2006 Shane Isbell
+//
+// 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.
+//
+
+using System;
+using System.IO;
+using System.Collections;
+using System.Xml.Serialization;
+using Microsoft.Win32;
+using NMaven.Utility;
+
+namespace NMaven.Utility.Settings
+{
+ public class SettingsGenerator
+ {
+ protected internal SettingsGenerator() { }
+
+ void Execute(string outputFile)
+ {
+ XmlSerializer serializer = new XmlSerializer(typeof(nmavenSettings));
+
+ nmavenSettings settings = new nmavenSettings();
+ settings.operatingSystem = Environment.OSVersion.ToString();
+
+ RegistryKey monoRegistryKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Novell\Mono");
+ RegistryKey microsoftRegistryKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework");
+
+ string defaultMonoCLR = (monoRegistryKey != null) ? (string) monoRegistryKey.GetValue("DefaultCLR") : null;
+
+ settings.defaultSetup = GetDefaultSetup(defaultMonoCLR,
+ (string) microsoftRegistryKey.GetValue("InstallRoot"));
+
+ nmavenSettingsVendor[] microsoftVendors = null;
+ try
+ {
+ microsoftVendors = GetVendorsForMicrosoft(microsoftRegistryKey);
+ }
+ catch(ExecutionException e)
+ {
+ Console.WriteLine(e.ToString());
+ }
+
+ nmavenSettingsVendor[] monoVendors = null;
+ try
+ {
+ monoVendors = GetVendorsForMono(monoRegistryKey, defaultMonoCLR);
+ }
+ catch(ExecutionException e)
+ {
+ Console.WriteLine(e.ToString());
+ }
+
+ nmavenSettingsVendor dotGnuVendor = null;
+ try
+ {
+ dotGnuVendor = GetVendorForGnu(Environment.GetEnvironmentVariable("CSCC_LIB_PATH"));
+ }
+ catch(ExecutionException e)
+ {
+ Console.WriteLine(e.ToString());
+ }
+ int monoVendorsLength = (monoVendors == null) ? 0: monoVendors.Length;
+ int dotGnuVendorLength = (dotGnuVendor == null) ? 0: 1;
+ int microsoftVendorsLength = (microsoftVendors == null) ? 0: microsoftVendors.Length;
+
+ nmavenSettingsVendor[] vendors =
+ new nmavenSettingsVendor[microsoftVendorsLength + monoVendorsLength + dotGnuVendorLength];
+
+ int copyLocation = 0;
+ if(microsoftVendors != null)
+ {
+ microsoftVendors.CopyTo(vendors, copyLocation);
+ copyLocation+=microsoftVendors.Length;
+ }
+ if(monoVendors != null)
+ {
+ monoVendors.CopyTo(vendors, copyLocation);
+ copyLocation+=monoVendors.Length;
+ }
+ if(dotGnuVendor != null)
+ vendors[copyLocation] = dotGnuVendor;
+
+ settings.vendors = vendors;
+
+ TextWriter writer = new StreamWriter(@outputFile);
+ serializer.Serialize(writer, settings);
+ writer.Close();
+ }
+
+ public static int Main(string[] args)
+ {
+ if(args == null || args.Length != 1)
+ {
+ Console.WriteLine("NMAVEN-000-000: Incorrect number of arguements:");
+ return 1;
+ }
+
+ try {
+ new SettingsGenerator().Execute(args[0]);
+ }
+ catch(DirectoryNotFoundException e)
+ {
+ Console.WriteLine("NMAVEN-000-000:" + e.ToString());
+ return 1;
+ }
+ return 0;
+ }
+
+ protected nmavenSettingsDefaultSetup GetDefaultSetup(string defaultMonoCLR,
+ string installRoot)
+ {
+ nmavenSettingsDefaultSetup defaultSetup = new nmavenSettingsDefaultSetup();
+ if(installRoot == null)
+ {
+ defaultSetup.vendorName = "MONO";
+ defaultSetup.vendorVersion = defaultMonoCLR;
+ return (defaultMonoCLR != null) ? defaultSetup : null;
+ }
+ bool dirInfo11 = new DirectoryInfo(Path.Combine(installRoot, "v1.1.4322")).Exists;
+ bool dirInfo20 = new DirectoryInfo(Path.Combine(installRoot, "v2.0.50727")).Exists;
+
+ if(installRoot != null)
+ {
+ if(!dirInfo11 && !dirInfo20)
+ return null;
+ defaultSetup.vendorName = "MICROSOFT";
+ defaultSetup.vendorVersion = (dirInfo20) ? "2.0.50727" : "1.1.4322";
+ defaultSetup.frameworkVersion = defaultSetup.vendorVersion;
+ return defaultSetup;
+ }
+ else if(defaultMonoCLR != null)
+ {
+ defaultSetup.vendorName = "MONO";
+ defaultSetup.vendorVersion = defaultMonoCLR;
+ defaultSetup.frameworkVersion = "2.0.50727";
+ return defaultSetup;
+ }
+ return null;
+ }
+
+ protected nmavenSettingsVendor GetVendorForGnu(String libPath)
+ {
+ if(libPath == null)
+ throw new ExecutionException("NMAVEN-9011-000: No CSCC_LIB_PATH Found");
+
+ if (libPath.EndsWith("lib" + Path.DirectorySeparatorChar + "cscc" + Path.DirectorySeparatorChar + "lib"))
+ {
+ string installR = new DirectoryInfo(libPath).Parent.Parent.Parent.FullName;
+ string[] tokenizedInstallRoot = installR.Split(Path.DirectorySeparatorChar);
+ string vendorVersion = tokenizedInstallRoot[tokenizedInstallRoot.Length - 1];
+ if (!isValidVersion(vendorVersion))
+ {
+ throw new ExecutionException("NMAVEN-9011-001: Invalid version format for dotGNU: Version = " +
+ vendorVersion + ", Root = " + installR);
+ }
+
+ nmavenSettingsVendor vendor = new nmavenSettingsVendor();
+ vendor.vendorName = "DotGNU";
+ vendor.vendorVersion = vendorVersion;
+ nmavenSettingsVendorFramework[] vendorFrameworks = new nmavenSettingsVendorFramework[1];
+ nmavenSettingsVendorFramework vf = new nmavenSettingsVendorFramework();
+ vf.installRoot = Path.Combine(installR, "bin");
+ vf.frameworkVersion = "2.0.50727";//doesn't matter
+ vendorFrameworks[0] = vf; ;
+ vendor.frameworks = vendorFrameworks;
+ return vendor;
+ }
+ throw new ExecutionException("NMAVEN-9011-002: CSCC_LIB_PATH found but could not determine vendor information");
+ }
+
+ private nmavenSettingsVendor[] GetVendorsForMicrosoft(RegistryKey microsoftRegistryKey)
+ {
+ if(microsoftRegistryKey == null)
+ throw new ExecutionException("NMAVEN-9011-006: Microsoft installation could not be found.");
+ string installRoot = (string) microsoftRegistryKey.GetValue("InstallRoot");
+ if(installRoot == null) throw new ExecutionException("NMAVEN-9011-005");
+
+ nmavenSettingsVendor[] vendors = new nmavenSettingsVendor[2];
+ DirectoryInfo dirInfo11 = new DirectoryInfo(Path.Combine(installRoot, "v1.1.4322"));
+ DirectoryInfo dirInfo20 = new DirectoryInfo(Path.Combine(installRoot, "v2.0.50727"));
+ int vendorCounter = 0;
+ if (dirInfo11.Exists)
+ {
+ nmavenSettingsVendor vendor = new nmavenSettingsVendor();
+ vendor.vendorName = "MICROSOFT";
+ vendor.vendorVersion = "1.1.4322";
+ nmavenSettingsVendorFramework[] vendorFrameworks = new nmavenSettingsVendorFramework[1];
+ nmavenSettingsVendorFramework vf11 = new nmavenSettingsVendorFramework();
+ vf11.installRoot = dirInfo11.FullName;
+ vf11.frameworkVersion = "1.1.4322";
+ vendorFrameworks[0] = vf11;
+ vendor.frameworks = vendorFrameworks;
+ vendors[vendorCounter++] = vendor;
+ }
+ if (dirInfo20.Exists)
+ {
+ nmavenSettingsVendor vendor = new nmavenSettingsVendor();
+ vendor.vendorName = "MICROSOFT";
+ vendor.vendorVersion = "2.0.50727";
+ nmavenSettingsVendorFramework[] vendorFrameworks = new nmavenSettingsVendorFramework[1];
+ nmavenSettingsVendorFramework vf11 = new nmavenSettingsVendorFramework();
+ vf11.installRoot = dirInfo20.FullName;
+ vf11.frameworkVersion = "2.0.50727";
+ vendorFrameworks[0] = vf11;
+ vendor.frameworks = vendorFrameworks;
+ vendors[vendorCounter++] = vendor;
+ }
+
+ return vendors;
+ }
+
+ private nmavenSettingsVendor[] GetVendorsForMono(RegistryKey monoRegistryKey, string defaultMonoCLR)
+ {
+ if(monoRegistryKey == null)
+ throw new ExecutionException("NMAVEN-9011-007: Mono installation could not be found.");
+ nmavenSettingsVendor[] vendors = new nmavenSettingsVendor[monoRegistryKey.SubKeyCount];
+ int i = 0;
+ foreach (string keyName in monoRegistryKey.GetSubKeyNames())
+ {
+ string sdkInstallRoot = (string) monoRegistryKey.OpenSubKey(keyName).GetValue("SdkInstallRoot");
+ if(sdkInstallRoot == null)
+ throw new ExecutionException("NMAVEN-9011-004: Could not find install root key for mono");
+ string installRoot = Path.Combine(sdkInstallRoot, "bin");
+ nmavenSettingsVendorFramework[] vendorFrameworks = new nmavenSettingsVendorFramework[2];
+ nmavenSettingsVendorFramework vf11 = new nmavenSettingsVendorFramework();
+ vf11.installRoot = installRoot;
+ vf11.frameworkVersion = "1.1.4322";
+ vendorFrameworks[0] = vf11;
+
+ nmavenSettingsVendorFramework vf20 = new nmavenSettingsVendorFramework();
+ vf20.installRoot = installRoot;
+ vf20.frameworkVersion = "2.0.50727";
+ vendorFrameworks[1] = vf20;
+
+ nmavenSettingsVendor vendor = new nmavenSettingsVendor();
+ vendor.vendorName = "MONO";
+ vendor.vendorVersion = keyName;
+ vendor.frameworks = vendorFrameworks;
+ if(defaultMonoCLR.Equals(keyName)) vendor.isDefault = "true";
+ vendors[i++] = vendor;
+ }
+ return vendors;
+ }
+
+ private bool isValidVersion(String version)
+ {
+ string[] vendorVersionToken = version.Split('.');
+ float testValue = 0f;
+ foreach (string token in vendorVersionToken)
+ {
+ if (!Single.TryParse(token, out testValue)) return false;
+ }
+ return true;
+ }
+ }
+}
Added: incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/nmavenSettings.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/nmavenSettings.cs?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/nmavenSettings.cs (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/main/csharp/nmavenSettings.cs Sun Dec 10 15:43:51 2006
@@ -0,0 +1,242 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.42
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System.Xml.Serialization;
+
+//
+// This source code was auto-generated by xsd, Version=2.0.50727.42.
+//
+
+
+/// <remarks/>
+[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+[System.SerializableAttribute()]
+[System.Diagnostics.DebuggerStepThroughAttribute()]
+[System.ComponentModel.DesignerCategoryAttribute("code")]
+[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
+public partial class nmavenSettings {
+
+ private string operatingSystemField;
+
+ private string architectureField;
+
+ private nmavenSettingsDefaultSetup defaultSetupField;
+
+ private nmavenSettingsVendor[] vendorsField;
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string operatingSystem {
+ get {
+ return this.operatingSystemField;
+ }
+ set {
+ this.operatingSystemField = value;
+ }
+ }
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string architecture {
+ get {
+ return this.architectureField;
+ }
+ set {
+ this.architectureField = value;
+ }
+ }
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public nmavenSettingsDefaultSetup defaultSetup {
+ get {
+ return this.defaultSetupField;
+ }
+ set {
+ this.defaultSetupField = value;
+ }
+ }
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ [System.Xml.Serialization.XmlArrayItemAttribute("vendor", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
+ public nmavenSettingsVendor[] vendors {
+ get {
+ return this.vendorsField;
+ }
+ set {
+ this.vendorsField = value;
+ }
+ }
+}
+
+/// <remarks/>
+[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+[System.SerializableAttribute()]
+[System.Diagnostics.DebuggerStepThroughAttribute()]
+[System.ComponentModel.DesignerCategoryAttribute("code")]
+public partial class nmavenSettingsDefaultSetup {
+
+ private string vendorNameField;
+
+ private string vendorVersionField;
+
+ private string frameworkVersionField;
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string vendorName {
+ get {
+ return this.vendorNameField;
+ }
+ set {
+ this.vendorNameField = value;
+ }
+ }
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string vendorVersion {
+ get {
+ return this.vendorVersionField;
+ }
+ set {
+ this.vendorVersionField = value;
+ }
+ }
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string frameworkVersion {
+ get {
+ return this.frameworkVersionField;
+ }
+ set {
+ this.frameworkVersionField = value;
+ }
+ }
+}
+
+/// <remarks/>
+[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+[System.SerializableAttribute()]
+[System.Diagnostics.DebuggerStepThroughAttribute()]
+[System.ComponentModel.DesignerCategoryAttribute("code")]
+public partial class nmavenSettingsVendor {
+
+ private string vendorNameField;
+
+ private string vendorVersionField;
+
+ private string isDefaultField;
+
+ private nmavenSettingsVendorFramework[] frameworksField;
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string vendorName {
+ get {
+ return this.vendorNameField;
+ }
+ set {
+ this.vendorNameField = value;
+ }
+ }
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string vendorVersion {
+ get {
+ return this.vendorVersionField;
+ }
+ set {
+ this.vendorVersionField = value;
+ }
+ }
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string isDefault {
+ get {
+ return this.isDefaultField;
+ }
+ set {
+ this.isDefaultField = value;
+ }
+ }
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ [System.Xml.Serialization.XmlArrayItemAttribute("framework", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
+ public nmavenSettingsVendorFramework[] frameworks {
+ get {
+ return this.frameworksField;
+ }
+ set {
+ this.frameworksField = value;
+ }
+ }
+}
+
+/// <remarks/>
+[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+[System.SerializableAttribute()]
+[System.Diagnostics.DebuggerStepThroughAttribute()]
+[System.ComponentModel.DesignerCategoryAttribute("code")]
+public partial class nmavenSettingsVendorFramework {
+
+ private string frameworkVersionField;
+
+ private string installRootField;
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string frameworkVersion {
+ get {
+ return this.frameworkVersionField;
+ }
+ set {
+ this.frameworkVersionField = value;
+ }
+ }
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string installRoot {
+ get {
+ return this.installRootField;
+ }
+ set {
+ this.installRootField = value;
+ }
+ }
+}
+
+/// <remarks/>
+[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+[System.SerializableAttribute()]
+[System.Diagnostics.DebuggerStepThroughAttribute()]
+[System.ComponentModel.DesignerCategoryAttribute("code")]
+[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
+public partial class NewDataSet {
+
+ private nmavenSettings[] itemsField;
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElementAttribute("nmavenSettings")]
+ public nmavenSettings[] Items {
+ get {
+ return this.itemsField;
+ }
+ set {
+ this.itemsField = value;
+ }
+ }
+}
Added: incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/test/csharp/SettingsGeneratorDelagator.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/test/csharp/SettingsGeneratorDelagator.cs?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/test/csharp/SettingsGeneratorDelagator.cs (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/test/csharp/SettingsGeneratorDelagator.cs Sun Dec 10 15:43:51 2006
@@ -0,0 +1,24 @@
+using System;
+using System.IO;
+using System.Collections;
+using System.Xml.Serialization;
+using Microsoft.Win32;
+using NMaven.Utility;
+
+namespace NMaven.Utility.Settings
+{
+ class SettingsGeneratorDelegator : SettingsGenerator
+ {
+ internal SettingsGeneratorDelegator() : base() { }
+
+ internal new nmavenSettingsVendor GetVendorForGnu(String libPath)
+ {
+ return base.GetVendorForGnu(libPath);
+ }
+
+ internal new nmavenSettingsDefaultSetup GetDefaultSetup(string defaultMonoCLR, string installRoot)
+ {
+ return base.GetDefaultSetup(defaultMonoCLR, installRoot);
+ }
+ }
+}
Added: incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/test/csharp/SettingsGeneratorTest.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/test/csharp/SettingsGeneratorTest.cs?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/test/csharp/SettingsGeneratorTest.cs (added)
+++ incubator/nmaven/trunk/plugins/nmaven-utility-settings/src/test/csharp/SettingsGeneratorTest.cs Sun Dec 10 15:43:51 2006
@@ -0,0 +1,103 @@
+namespace NMaven.Utility.Settings {
+ using NUnit.Framework;
+ using System;
+ using System.IO;
+
+ [TestFixture]
+ public class SettingsGeneratorTest {
+ [SetUp]
+ protected void SetUp() {
+
+ }
+
+
+ [Test]
+ public void TestGetDefaultSetupWithNullMicrosoftInstallRoot() {
+ SettingsGeneratorDelegator settingGenerator = new SettingsGeneratorDelegator();
+ nmavenSettingsDefaultSetup setup = settingGenerator.GetDefaultSetup("1.1.18", null);
+ Assert.AreEqual("MONO", setup.vendorName, "Incorrect Vendor Name");
+ Assert.AreEqual("1.1.18", setup.vendorVersion, "Incorrect Vendor Version");
+ }
+
+ [Test]
+ public void TestGetDefaultSetupWithNullMonoCLRAndNullMicrosoftInstallRoot() {
+ SettingsGeneratorDelegator settingGenerator = new SettingsGeneratorDelegator();
+ nmavenSettingsDefaultSetup setup = settingGenerator.GetDefaultSetup(null, null);
+ Assert.IsNull(setup, "Default setup should be null");
+ }
+
+ [Test]
+ public void TestGetDefaultSetupWithNullMonoCLR() {
+ string installRoot = @"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727";
+ SettingsGeneratorDelegator settingGenerator = new SettingsGeneratorDelegator();
+ nmavenSettingsDefaultSetup setup =
+ settingGenerator.GetDefaultSetup(null, installRoot);
+ if(new DirectoryInfo(Path.Combine(installRoot, "v2.0.50727")).Exists)
+ {
+ Assert.AreEqual("MICROSOFT", setup.vendorName, "Incorrect Vendor Name");
+ Assert.AreEqual("v2.0.50727", setup.vendorVersion, "Incorrect Vendor Version");
+ }
+ else
+ Assert.IsNull(setup, "Vendor should be null");
+
+ setup = settingGenerator.GetDefaultSetup(null, @"C:\WINDOWS\Microsoft.NET\Framework-Bogus\v2.0.50727");
+ Assert.IsNull(setup, "Vendor should be null");
+ }
+
+ [Test]
+ public void TestGetVendorForGnuWithNullLibPath() {
+ SettingsGeneratorDelegator settingGenerator = new SettingsGeneratorDelegator();
+ try {
+ settingGenerator.GetVendorForGnu(null);
+ Assert.Fail("Should have thrown exception when lib path is null");
+ }
+ catch(ExecutionException e)
+ {
+ if(!e.ToString().Contains("NMAVEN-9011-000")) Assert.Fail("Unexpected failure code: Message = "
+ + e.ToString());;
+ }
+ }
+
+ [Test]
+ public void TestGetVendorForGnuWithBadLibPath() {
+ SettingsGeneratorDelegator settingGenerator = new SettingsGeneratorDelegator();
+ try {
+ settingGenerator.GetVendorForGnu(@"C:\\tmp\blah");
+ Assert.Fail("Should have thrown exception on bad lib path");
+ }
+ catch(ExecutionException e)
+ {
+ if(!e.ToString().Contains("NMAVEN-9011-002")) Assert.Fail("Unexpected failure code: Message = "
+ + e.ToString());;
+ }
+ }
+
+ [Test]
+ public void TestGetVendorForGnuWithValidLibPath() {
+ SettingsGeneratorDelegator settingGenerator = new SettingsGeneratorDelegator();
+ try {
+ nmavenSettingsVendor vendor =
+ settingGenerator.GetVendorForGnu(@"C:\Program Files\Portable.NET\0.7.2\lib\cscc\lib");
+ Assert.AreEqual("DotGNU", vendor.vendorName, "Incorrect vendor name");
+ }
+ catch(ExecutionException e)
+ {
+ Assert.Fail("Failed on valid path: Message = " + e.ToString());;
+ }
+ }
+
+ [Test]
+ public void TestGetVendorForGnuWithInvalidVesionInLibPath() {
+ SettingsGeneratorDelegator settingGenerator = new SettingsGeneratorDelegator();
+ try {
+ settingGenerator.GetVendorForGnu(@"C:\Program Files\Portable.NET\0.7.2-bogus\lib\cscc\lib");
+ Assert.Fail("Should have thrown exception on bad version within lib path");
+ }
+ catch(ExecutionException e)
+ {
+ if(!e.ToString().Contains("NMAVEN-9011-001")) Assert.Fail("Unexpected failure code: Message = "
+ + e.ToString());;
+ }
+ }
+ }
+}
\ No newline at end of file
Added: incubator/nmaven/trunk/plugins/pom-java-bootstrap.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/pom-java-bootstrap.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/pom-java-bootstrap.xml (added)
+++ incubator/nmaven/trunk/plugins/pom-java-bootstrap.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,50 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.dotnet.plugins</groupId>
+ <artifactId>maven-dotnet-plugins</artifactId>
+ <packaging>pom</packaging>
+ <version>0.14-SNAPSHOT</version>
+ <name>maven-dotnet-plugins</name>
+ <modules>
+ <module>maven-compile-plugin</module>
+ <module>maven-test-plugin</module>
+ <module>maven-webapp-plugin</module>
+ <module>maven-xsd-plugin</module>
+ <module>maven-wsdl-plugin</module>
+ <module>maven-install-plugin</module>
+ <module>maven-resgen-plugin</module>
+ <module>maven-resolver-plugin</module>
+ <module>maven-settings-plugin</module>
+ </modules>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-assembler</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-executable</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-artifact</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Propchange: incubator/nmaven/trunk/plugins/pom-java-bootstrap.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/pom-net-bootstrap.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/pom-net-bootstrap.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/pom-net-bootstrap.xml (added)
+++ incubator/nmaven/trunk/plugins/pom-net-bootstrap.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,30 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.dotnet.plugins</groupId>
+ <artifactId>maven-dotnet-plugins</artifactId>
+ <packaging>pom</packaging>
+ <version>0.14-SNAPSHOT</version>
+ <name>maven-dotnet-plugins</name>
+ <modules>
+ <module>nmaven-utility-settings</module>
+ <module>nmaven-utility-resx</module>
+ </modules>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-assembler</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-executable</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-artifact</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Propchange: incubator/nmaven/trunk/plugins/pom-net-bootstrap.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/pom-release.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/pom-release.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/pom-release.xml (added)
+++ incubator/nmaven/trunk/plugins/pom-release.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,73 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.dotnet.plugins</groupId>
+ <artifactId>maven-dotnet-plugins</artifactId>
+ <packaging>pom</packaging>
+ <version>0.14-SNAPSHOT</version>
+ <name>maven-dotnet-plugins</name>
+ <modules>
+ <module>maven-compile-plugin</module>
+ <module>maven-test-plugin</module>
+ <module>maven-webapp-plugin</module>
+ <module>maven-xsd-plugin</module>
+ <module>maven-wsdl-plugin</module>
+ <module>maven-install-plugin</module>
+ <module>maven-resgen-plugin</module>
+ <module>maven-resolver-plugin</module>
+ <module>maven-settings-plugin</module>
+ </modules>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-assembler</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-executable</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-artifact</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptor>src/assembly/src.xml</descriptor>
+ <outputDirectory>src/target</outputDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <!--
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <configuration>
+ <outputDirectory>${basedir}/src/site/xdoc</outputDirectory>
+ </configuration>
+ </plugin>
+ -->
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Propchange: incubator/nmaven/trunk/plugins/pom-release.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/pom.xml (added)
+++ incubator/nmaven/trunk/plugins/pom.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,76 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.dotnet.plugins</groupId>
+ <artifactId>maven-dotnet-plugins</artifactId>
+ <packaging>pom</packaging>
+ <version>0.14-SNAPSHOT</version>
+ <name>maven-dotnet-plugins</name>
+
+ <modules>
+ <module>maven-compile-plugin</module>
+ <module>maven-test-plugin</module>
+ <module>maven-webapp-plugin</module>
+ <module>maven-xsd-plugin</module>
+ <module>maven-wsdl-plugin</module>
+ <module>maven-install-plugin</module>
+ <module>maven-resgen-plugin</module>
+ <module>maven-resolver-plugin</module>
+ <module>maven-settings-plugin</module>
+ <module>nmaven-utility-resx</module>
+ <module>nmaven-utility-settings</module>
+ </modules>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-assembler</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-executable</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.dotnet</groupId>
+ <artifactId>dotnet-artifact</artifactId>
+ <version>0.14-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptor>src/assembly/src.xml</descriptor>
+ <outputDirectory>src/target</outputDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <!--
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <configuration>
+ <outputDirectory>${basedir}/src/site/xdoc</outputDirectory>
+ </configuration>
+ </plugin>
+ -->
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Propchange: incubator/nmaven/trunk/plugins/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/scripts/build-1.1.bat
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/scripts/build-1.1.bat?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/scripts/build-1.1.bat (added)
+++ incubator/nmaven/trunk/plugins/scripts/build-1.1.bat Sun Dec 10 15:43:51 2006
@@ -0,0 +1,3 @@
+call mvn -f ../pom-java-bootstrap.xml install
+call mvn org.apache.maven.plugins:maven-install-plugin:install-file -Dfile=../imports/nunit-1.1/nunit.framework.dll -DgroupId=org.nunit -DartifactId=nunit.framework -Dversion=2.2.8.0 -Dpackaging=dll
+call mvn -f ../pom-net-bootstrap.xml -Dmaven.test.skip=true -Dbootstrap -Dversion=1.1 install
Propchange: incubator/nmaven/trunk/plugins/scripts/build-1.1.bat
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/scripts/build-1.1.sh
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/scripts/build-1.1.sh?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/scripts/build-1.1.sh (added)
+++ incubator/nmaven/trunk/plugins/scripts/build-1.1.sh Sun Dec 10 15:43:51 2006
@@ -0,0 +1,3 @@
+mvn -f ../pom-java-bootstrap.xml install
+mvn org.apache.maven.plugins:maven-install-plugin:install-file -Dfile=../imports/nunit-1.1/nunit.framework.dll -DgroupId=org.nunit -DartifactId=nunit.framework -Dversion=2.2.8.0 -Dpackaging=dll
+mvn -f ../pom-net-bootstrap.xml -Dmaven.test.skip=true -Dbootstrap -Dversion=1.1 install
Propchange: incubator/nmaven/trunk/plugins/scripts/build-1.1.sh
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/nmaven/trunk/plugins/scripts/build-2.0.bat
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/scripts/build-2.0.bat?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/scripts/build-2.0.bat (added)
+++ incubator/nmaven/trunk/plugins/scripts/build-2.0.bat Sun Dec 10 15:43:51 2006
@@ -0,0 +1,3 @@
+call mvn -f ../pom-java-bootstrap.xml install
+call mvn org.apache.maven.dotnet.plugins:maven-install-plugin:install-file -Dfile=../imports/nunit-2.0/nunit.framework.dll -DgroupId=org.nunit -DartifactId=nunit.framework -Dpackaging=dll -Dversion=2.2.8.0
+call mvn -f ../pom-net-bootstrap.xml -Dmaven.test.skip=true -Dbootstrap install
\ No newline at end of file
Propchange: incubator/nmaven/trunk/plugins/scripts/build-2.0.bat
------------------------------------------------------------------------------
svn:eol-style = native