aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Prebuild/src
diff options
context:
space:
mode:
authorMelanie2009-08-06 22:36:39 +0100
committerMelanie2009-08-06 22:36:39 +0100
commit01dd16d4088ee1057d4d32a310f1f9f6fb1d4d3e (patch)
tree5fa44b627f2eef6b14c3a52d18bf579e15e396b7 /Prebuild/src
parent|From: James J Greensky <jame.j.greensky@intel.com> (diff)
downloadopensim-SC_OLD-01dd16d4088ee1057d4d32a310f1f9f6fb1d4d3e.zip
opensim-SC_OLD-01dd16d4088ee1057d4d32a310f1f9f6fb1d4d3e.tar.gz
opensim-SC_OLD-01dd16d4088ee1057d4d32a310f1f9f6fb1d4d3e.tar.bz2
opensim-SC_OLD-01dd16d4088ee1057d4d32a310f1f9f6fb1d4d3e.tar.xz
Add sorting to prebuild
Diffstat (limited to 'Prebuild/src')
-rw-r--r--Prebuild/src/Core/Parse/Preprocessor.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Prebuild/src/Core/Parse/Preprocessor.cs b/Prebuild/src/Core/Parse/Preprocessor.cs
index 9ac07b9..57d4062 100644
--- a/Prebuild/src/Core/Parse/Preprocessor.cs
+++ b/Prebuild/src/Core/Parse/Preprocessor.cs
@@ -607,7 +607,9 @@ namespace Prebuild.Core.Parse
607 // If preWildcard is a directory, recurse 607 // If preWildcard is a directory, recurse
608 if (Directory.Exists(preWildcard)) 608 if (Directory.Exists(preWildcard))
609 { 609 {
610 foreach (string dirPath in Directory.GetDirectories(preWildcard)) 610 string[] directories = Directory.GetDirectories(preWildcard);
611 Array.Sort(directories);
612 foreach (string dirPath in directories )
611 { 613 {
612 Console.WriteLine("Scanning : {0}", dirPath); 614 Console.WriteLine("Scanning : {0}", dirPath);
613 615
@@ -638,7 +640,9 @@ namespace Prebuild.Core.Parse
638 string searchDirectory = Path.GetDirectoryName(preWildcard); 640 string searchDirectory = Path.GetDirectoryName(preWildcard);
639 // Console.WriteLine("searchDirectory: {0}", searchDirectory); 641 // Console.WriteLine("searchDirectory: {0}", searchDirectory);
640 642
641 foreach (string includeFile in Directory.GetFiles(searchDirectory, searchFilename)) 643 string[] files = Directory.GetFiles(searchDirectory, searchFilename);
644 Array.Sort(files);
645 foreach (string includeFile in files)
642 { 646 {
643 FileInfo file = new FileInfo(includeFile); 647 FileInfo file = new FileInfo(includeFile);
644 if (file.Exists) 648 if (file.Exists)