Skip to content

Commit

Permalink
Fixed export bug for classes with sub packages
Browse files Browse the repository at this point in the history
  • Loading branch information
evshvarov committed Jan 26, 2017
1 parent b84bfed commit 79f48b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sc.alles.cls
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ ClassMethod filename(code)
}

s filename = ##class(%File).NormalizeFilename( code, wd )
//B:code="DPRep.Rest.JSON.cls" "L"
#; for *.cls Package.Subpackage.ClassName.cls -> Folder/Subfolder/ClassName.cls
if ext ="cls" {
s dirs = $piece( code, ".", *-2 ), dirs = $translate( dirs, ".", "/" )
s dirs = $piece( code, ".",1, *-2 ), dirs = $translate( dirs, ".", "/" )
s relpath = dirs _ "/" _ $piece( code, ".", *-1, * ) ;
s filename = ##class(%File).NormalizeFilename( relpath, wd )
}
Expand Down

0 comments on commit 79f48b6

Please sign in to comment.