summaryrefslogtreecommitdiff
path: root/cs/generate/Generate.cs
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
committerBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
commitabada90e3f84dc703b8ddc9efcbed8a946fadead (patch)
tree2c6f9dccd510ea97cb927a7bd635422efaae547a /cs/generate/Generate.cs
parentremoving trace message (diff)
downloadice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip
Expanded tabs into spaces
Diffstat (limited to 'cs/generate/Generate.cs')
-rwxr-xr-xcs/generate/Generate.cs86
1 files changed, 43 insertions, 43 deletions
diff --git a/cs/generate/Generate.cs b/cs/generate/Generate.cs
index 5cdf0cb0222..87454568452 100755
--- a/cs/generate/Generate.cs
+++ b/cs/generate/Generate.cs
@@ -18,8 +18,8 @@ namespace Generate
{
class Generate
{
- static void Main(string[] args)
- {
+ static void Main(string[] args)
+ {
try
{
@@ -107,7 +107,7 @@ namespace Generate
string cmdArgs = "--ice -I. " + includes + " --output-dir " + outputDir;
for(int i = 3; i < args.Length; ++i)
{
- cmdArgs += " " + handlePathSpaces(args[i]);
+ cmdArgs += " " + handlePathSpaces(args[i]);
}
bool needCompile = false;
@@ -166,7 +166,7 @@ namespace Generate
Console.Error.WriteLine(ex);
Environment.Exit(1);
}
- }
+ }
//
// Return all the files ending in ".ice" in the specified dir.
@@ -174,43 +174,43 @@ namespace Generate
// this because, for three-letter file extensions, it returns files
// with extensions that have three *or more* letters :-(
//
- private static ArrayList getSliceFiles(string dir)
- {
- ArrayList result = new ArrayList();
- string[] files = Directory.GetFiles(dir);
- foreach(string file in files)
- {
- if(file.EndsWith(".ice"))
- {
- result.Add(file);
- }
- }
- return result;
- }
-
- static volatile Process p;
-
- private static void RedirectStandardOutput()
- {
- string output = p.StandardOutput.ReadToEnd();
- Console.Out.Write(output);
- Console.Out.Flush();
- }
-
- private static void RedirectStandardError()
- {
- string output = p.StandardError.ReadToEnd();
- Console.Error.Write(output);
- Console.Error.Flush();
- }
-
- private static string handlePathSpaces(string dir)
- {
- if(dir.IndexOf(' ') != -1)
- {
- return "\"" + dir + "\"";
- }
- return dir;
- }
+ private static ArrayList getSliceFiles(string dir)
+ {
+ ArrayList result = new ArrayList();
+ string[] files = Directory.GetFiles(dir);
+ foreach(string file in files)
+ {
+ if(file.EndsWith(".ice"))
+ {
+ result.Add(file);
+ }
+ }
+ return result;
+ }
+
+ static volatile Process p;
+
+ private static void RedirectStandardOutput()
+ {
+ string output = p.StandardOutput.ReadToEnd();
+ Console.Out.Write(output);
+ Console.Out.Flush();
+ }
+
+ private static void RedirectStandardError()
+ {
+ string output = p.StandardError.ReadToEnd();
+ Console.Error.Write(output);
+ Console.Error.Flush();
+ }
+
+ private static string handlePathSpaces(string dir)
+ {
+ if(dir.IndexOf(' ') != -1)
+ {
+ return "\"" + dir + "\"";
+ }
+ return dir;
+ }
}
-}
+}