fix irregurlar schema names like "my-schema.xsd" or "./my_import-schema.xsd" and replace it with underscore, so Delphi can handle this files
This commit is contained in:
parent
57d49fa016
commit
4e5eb693cb
@ -1812,7 +1812,9 @@ begin
|
||||
if OutputType = otMultiple then
|
||||
begin
|
||||
path := IncludeTrailingPathDelimiter(Result);
|
||||
fileName := ASchemaName + '.pas';
|
||||
fileName := ASchemaName.Replace('-', '_');
|
||||
fileName := fileName.Replace('./', '');
|
||||
fileName := fileName + '.pas';
|
||||
|
||||
if Assigned(FOnGetFileName) then
|
||||
FOnGetFileName(Self, ASchemaName, path, fileName);
|
||||
|
Loading…
Reference in New Issue
Block a user