mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-05 07:01:01 +00:00
fix for #83
This commit is contained in:
parent
701d4c15a9
commit
83ff341e5e
@ -26,7 +26,11 @@ trait PathUtil {
|
||||
|
||||
def getBasePath(host: String, basePath: String) = {
|
||||
System.getProperty("fileMap") match {
|
||||
case s: String => s
|
||||
case s: String => {
|
||||
// return the parent folder
|
||||
val f = new java.io.File(s)
|
||||
f.getParent
|
||||
}
|
||||
case _ => {
|
||||
if(basePath != "") basePath
|
||||
else host
|
||||
|
Loading…
x
Reference in New Issue
Block a user