Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

16
mcs/tools/genxs/ChangeLog Normal file
View File

@@ -0,0 +1,16 @@
2008-04-11 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : use per-profile libdir to put executables.
2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
* README: introduced <baseSerializer> and <implementation> elements
for 2.0 stuff.
2004-02-18 Atsushi Enomoto <atsushi@ximian.com>
* README: added description about new <namespaceImports> feature.
2003-09-17 Lluis Sanchez Gual <lluis@ximian.com>
* genxs.cs, Makefile, README, wsdl.exe.sources: New files

8
mcs/tools/genxs/Makefile Normal file
View File

@@ -0,0 +1,8 @@
thisdir = tools/genxs
SUBDIRS =
include ../../build/rules.make
LOCAL_MCS_FLAGS = -r:System.Xml.dll
PROGRAM = genxs.exe
include ../../build/executable.make

40
mcs/tools/genxs/genxs.cs Normal file
View File

@@ -0,0 +1,40 @@
//
// genxs.cs
//
// Author:
// Lluis Sanchez Gual (lluis@ximian.com)
//
// Copyright (C) 2003 Ximian, Inc.
//
using System;
using System.Xml.Serialization;
using System.IO;
using System.Reflection;
public class Driver
{
static void Main (string[] args)
{
if (args.Length == 0 || args[0] == "--help")
{
Console.WriteLine ("Mono Xml Serializer Generator Tool");
Console.WriteLine ("Usage: genxs ConfigFileName [DestinationPath]");
Console.WriteLine ();
return;
}
try
{
Type t = Type.GetType ("System.Xml.Serialization.SerializationCodeGenerator, System.Xml");
if (t == null) throw new Exception ("This runtime does not support generation of serializers");
MethodInfo met = t.GetMethod ("Generate", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
met.Invoke (null, new object[] {args[0], (args.Length > 1) ? args[1] : null} );
}
catch (Exception ex)
{
Console.WriteLine ("An error occurred while generating serializers: " + ex);
}
}
}

View File

@@ -0,0 +1 @@
genxs.cs