Skip to content

Commit

Permalink
fix: VSS Specification Generation fails for specific Folder Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
wba2hi committed Jan 18, 2024
1 parent bbaa0f0 commit 9f9f285
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class VssDefinitionProcessor(
private fun loadAssetFile(fileName: String): File? {
val generatedFile = codeGenerator.generatedFile.firstOrNull() ?: return null
val generationPath = generatedFile.absolutePath
val buildPath = generationPath.replaceAfter(BUILD_FOLDER_NAME, "")
val buildPath = generationPath.replaceAfterLast(BUILD_FOLDER_NAME, "")
val assetsFilePath = "$buildPath/$ASSETS_BUILD_DIRECTORY"
val assetsFolder = File(assetsFilePath)

Expand Down Expand Up @@ -141,7 +141,7 @@ class VssDefinitionProcessor(
private const val PACKAGE_NAME = "org.eclipse.kuksa.vss"
private const val FILE_NAME_PROCESSOR_POSTFIX = "Processor"
private const val ASSETS_BUILD_DIRECTORY = "intermediates/assets/"
private const val BUILD_FOLDER_NAME = "build/"
private const val BUILD_FOLDER_NAME = "/build/"
}
}

Expand Down

0 comments on commit 9f9f285

Please sign in to comment.