diff options
author | Marc Laukien <marc@zeroc.com> | 2002-06-23 21:17:04 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-06-23 21:17:04 +0000 |
commit | 59788b8663f1f05a95b7afbbc6d2846dae11c96a (patch) | |
tree | c3ed292df270f11157decb83827d9af4144db52d /java/ant/Slice2XsdTask.java | |
parent | file run.py was initially added on branch location. (diff) | |
download | ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.bz2 ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.xz ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.zip |
removed spaces after keywords
Diffstat (limited to 'java/ant/Slice2XsdTask.java')
-rw-r--r-- | java/ant/Slice2XsdTask.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/java/ant/Slice2XsdTask.java b/java/ant/Slice2XsdTask.java index 5dc7251aecf..b0b55821d63 100644 --- a/java/ant/Slice2XsdTask.java +++ b/java/ant/Slice2XsdTask.java @@ -100,7 +100,7 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task public Path createIncludePath() { - if (_includePath == null) + if(_includePath == null) { _includePath = new Path(project); } @@ -116,7 +116,7 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task public void setIncludePath(Path includePath) { - if (_includePath == null) + if(_includePath == null) { _includePath = includePath; } @@ -129,7 +129,7 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task public FileSet createFileset() { - if (_fileSet == null) + if(_fileSet == null) { _fileSet = new FileSet(); } @@ -140,7 +140,7 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task execute() throws BuildException { - if (_fileSet == null) + if(_fileSet == null) { throw new BuildException("No fileset specified"); } @@ -153,12 +153,12 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task DirectoryScanner scanner = _fileSet.getDirectoryScanner(project); scanner.scan(); String[] files = scanner.getIncludedFiles(); - for (int i = 0; i < files.length; i++) + for(int i = 0; i < files.length; i++) { File slice = new File(_fileSet.getDir(project), files[i]); File tag = new File(_tagDir, "." + slice.getName() + ".tag"); - if (tag.exists() && slice.lastModified() <= tag.lastModified()) + if(tag.exists() && slice.lastModified() <= tag.lastModified()) { log("skipping " + files[i]); } @@ -172,21 +172,21 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task // // Run the translator // - if (!buildList.isEmpty()) + if(!buildList.isEmpty()) { StringBuffer cmd = new StringBuffer(); // // Add --output-dir // - if (_outputDir != null) + if(_outputDir != null) { cmd.append(" --output-dir "); StringBuffer fixedOutDir = new StringBuffer(); String outDir = _outputDir.toString(); - for (int i = 0; i < outDir.length(); i++) + for(int i = 0; i < outDir.length(); i++) { - if (outDir.charAt(i) == '\\') + if(outDir.charAt(i) == '\\') { fixedOutDir = fixedOutDir.append("/"); } @@ -201,7 +201,7 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task // // Add --package // - if (_package != null) + if(_package != null) { cmd.append(" --package "); cmd.append(_package); @@ -210,10 +210,10 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task // // Add include directives // - if (_includePath != null) + if(_includePath != null) { String[] dirs = _includePath.list(); - for (int i = 0; i < dirs.length; i++) + for(int i = 0; i < dirs.length; i++) { cmd.append(" -I"); cmd.append(dirs[i]); @@ -223,15 +223,15 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task // // Add files to be translated // - for (int i = 0; i < buildList.size(); i++) + for(int i = 0; i < buildList.size(); i++) { File f = (File)buildList.elementAt(i); cmd.append(" "); StringBuffer fixedFile = new StringBuffer(); String filePath = f.toString(); - for (int j = 0; j < filePath.length(); j++) + for(int j = 0; j < filePath.length(); j++) { - if (filePath.charAt(j) == '\\') + if(filePath.charAt(j) == '\\') { fixedFile = fixedFile.append("/"); } @@ -257,7 +257,7 @@ public class Slice2XsdTask extends org.apache.tools.ant.Task // // Touch the tag files // - for (int i = 0; i < tagList.size(); i++) + for(int i = 0; i < tagList.size(); i++) { File f = (File)tagList.elementAt(i); try |