[mapguide-commits] r7005 - in branches/2.4/MgDev/BuildTools/DoxyTransform: . DoxyTransform
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Sep 12 07:51:41 PDT 2012
Author: jng
Date: 2012-09-12 07:51:41 -0700 (Wed, 12 Sep 2012)
New Revision: 7005
Modified:
branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform.exe
branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform/Program.cs
branches/2.4/MgDev/BuildTools/DoxyTransform/Doxygen.NET.dll
Log:
#2114: Add support for custom output path for generated intellisense files
Modified: branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform/Program.cs
===================================================================
--- branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform/Program.cs 2012-09-12 14:42:16 UTC (rev 7004)
+++ branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform/Program.cs 2012-09-12 14:51:41 UTC (rev 7005)
@@ -29,7 +29,7 @@
static void Main(string[] args)
{
- if (args.Length != 2)
+ if (args.Length != 2 && args.Length != 3)
{
Usage();
return;
@@ -42,10 +42,11 @@
}
string srcDir = args[1];
+ string outputPath = (args.Length == 3) ? args[2] : "";
if (args[0].ToLower() == "dotnet")
{
- ProcessDotNet(srcDir);
+ ProcessDotNet(srcDir, outputPath);
}
else if (args[0].ToLower() == "java")
{
@@ -384,7 +385,7 @@
return null;
}
- private static void ProcessDotNet(string srcDir)
+ private static void ProcessDotNet(string srcDir, string outDir)
{
foundationDoc = CreateDotNetDocument("OSGeo.MapGuide.Foundation");
geometryDoc = CreateDotNetDocument("OSGeo.MapGuide.Geometry");
@@ -402,16 +403,31 @@
if (cls != null && doc != null)
CreateDotNetClassElement(doc, cls);
}
- foundationDoc.Save("OSGeo.MapGuide.Foundation.xml");
- geometryDoc.Save("OSGeo.MapGuide.Geometry.xml");
- platformBaseDoc.Save("OSGeo.MapGuide.PlatformBase.xml");
- mapguideCommonDoc.Save("OSGeo.MapGuide.MapGuideCommon.xml");
- webDoc.Save("OSGeo.MapGuide.Web.xml");
+
+ if (!string.IsNullOrEmpty(outDir))
+ {
+ if (!Directory.Exists(outDir))
+ Directory.CreateDirectory(outDir);
+
+ foundationDoc.Save(Path.Combine(outDir, "OSGeo.MapGuide.Foundation.xml"));
+ geometryDoc.Save(Path.Combine(outDir, "OSGeo.MapGuide.Geometry.xml"));
+ platformBaseDoc.Save(Path.Combine(outDir, "OSGeo.MapGuide.PlatformBase.xml"));
+ mapguideCommonDoc.Save(Path.Combine(outDir, "OSGeo.MapGuide.MapGuideCommon.xml"));
+ webDoc.Save(Path.Combine(outDir, "OSGeo.MapGuide.Web.xml"));
+ }
+ else
+ {
+ foundationDoc.Save("OSGeo.MapGuide.Foundation.xml");
+ geometryDoc.Save("OSGeo.MapGuide.Geometry.xml");
+ platformBaseDoc.Save("OSGeo.MapGuide.PlatformBase.xml");
+ mapguideCommonDoc.Save("OSGeo.MapGuide.MapGuideCommon.xml");
+ webDoc.Save("OSGeo.MapGuide.Web.xml");
+ }
}
static void Usage()
{
- Console.WriteLine("DoxyTransform.exe <dotnet|java> <doxygen xml path>");
+ Console.WriteLine("DoxyTransform.exe <dotnet|java> <doxygen xml path> [output path]");
}
}
}
Modified: branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform.exe
===================================================================
(Binary files differ)
Modified: branches/2.4/MgDev/BuildTools/DoxyTransform/Doxygen.NET.dll
===================================================================
(Binary files differ)
More information about the mapguide-commits
mailing list