Mail Archive Home | fractal-commits List | August 2008 Index
| <-- Date Index --> | <-- Thread Index --> |
Typos.
--- trunk/juliac/compiler/src/main/java/org/objectweb/fractal/juliac/SourceFile.java 2008-08-29 16:10:19 UTC (rev 8418)
+++ trunk/juliac/compiler/src/main/java/org/objectweb/fractal/juliac/SourceFile.java 2008-08-29 16:35:47 UTC (rev 8419)
@@ -94,11 +94,11 @@
}
/**
- * Add all the the Java source file contained in the specified
+ * Add all the Java source files contained in the specified
* <code>dir</code> directory to the specified list of {@link SourceFile}s.
* Recursively scans the directory.
*
- * @param root the root directory where the scan was begun
+ * @param root the root directory where the scan begins
* @param dir the current directory to scan
* @param sfs the list of source files
*/
@@ -108,12 +108,13 @@
File[] fs = dir.listFiles();
if( fs == null ) {
- String msg = dir.getAbsolutePath()+" was supposed to be a directory";
+ String msg =
+ dir.getAbsolutePath()+" was supposed to be a directory";
throw new IOException(msg);
}
/*
- * Handle .java file contained in the current directory.
+ * Handle .java files contained in the current directory.
*/
int headlength = root.getAbsolutePath().length();
for (File f : fs) {
@@ -138,7 +139,7 @@
}
/**
- * Add all the the Java source file contained in the specified .jar file to
+ * Add all the Java source files contained in the specified .jar file to
* the specified list of {@link SourceFile}s.
*
* @param jar the jar file
@@ -189,7 +190,10 @@
@Override
public String toString() {
- return root.getAbsolutePath()+File.separatorChar+qname;
+ String s =
+ root.getAbsolutePath() + File.separatorChar +
+ qname.replace('.',File.separatorChar) + ".java";
+ return s;
}
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.