Browse Source

Restores support for some legacy file extensions

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 14 years ago
parent
commit
273c234fb9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ecl/hql/hqlrepository.cpp

+ 3 - 3
ecl/hql/hqlrepository.cpp

@@ -308,13 +308,13 @@ void SourceFileEclRepository::loadDirectoryTree(IHqlRemoteScope * parentScope, I
                 Owned<ISourcePath> path = createSourcePath(sourcePath);
                 bool isECL = false;
                 fullpath.clear().append(dirPath).append(tail);
-                if (stricmp(ext, ".eclmod")==0)
+                if (stricmp(ext, ".eclmod")==0 || stricmp(ext, ".hql")==0)
                 {
                     fileContents.setown(createFileContents(&file, path));
                     isECL = true;
                     module.clear().append(fname, 0, ext-fname);
                 }
-                else if (stricmp(ext, ".ecllib")==0)
+                else if (stricmp(ext, ".ecllib")==0 || stricmp(ext, ".hqllib")==0)
                 {
                     //Legacy.Same as .eclmod but always an implicit module.  Almost certainly a bad idea.
                     fileContents.setown(createFileContents(&file, path));
@@ -322,7 +322,7 @@ void SourceFileEclRepository::loadDirectoryTree(IHqlRemoteScope * parentScope, I
                     flags |= PLUGIN_IMPLICIT_MODULE;
                     module.clear().append(fname, 0, ext-fname);
                 }
-                else if (stricmp(ext, ".ecl")==0)
+                else if (stricmp(ext, ".ecl")==0 || stricmp(ext, ".eclattr")==0)
                 {
                     assertex(parentScope);
                     //Rather than defining a module this defines a single exported symbol