File tree Expand file tree Collapse file tree 5 files changed +45
-30
lines changed
sentry-samples-netflix-dgs
sentry-samples-spring-boot-opentelemetry-noagent
sentry-samples-spring-boot-opentelemetry
sentry-samples-spring-boot-webflux
sentry-samples-spring-boot Expand file tree Collapse file tree 5 files changed +45
-30
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,15 @@ tasks.register("patchSpringMetadata") {
106106 if (! baseDir.exists()) return @doLast
107107 val uri = URI .create(" jar:${jar.toURI()} " )
108108 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
109- baseDir.walkTopDown().filter { it.isFile }.forEach { merged ->
110- val relative = merged.relativeTo(baseDir).path
111- val target = fs.getPath(relative)
112- if (target.parent != null ) Files .createDirectories(target.parent)
113- Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
114- }
109+ baseDir
110+ .walkTopDown()
111+ .filter { it.isFile }
112+ .forEach { merged ->
113+ val relative = merged.relativeTo(baseDir).path
114+ val target = fs.getPath(relative)
115+ if (target.parent != null ) Files .createDirectories(target.parent)
116+ Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
117+ }
115118 }
116119 }
117120}
Original file line number Diff line number Diff line change @@ -147,12 +147,15 @@ tasks.register("patchSpringMetadata") {
147147 if (! baseDir.exists()) return @doLast
148148 val uri = URI .create(" jar:${jar.toURI()} " )
149149 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
150- baseDir.walkTopDown().filter { it.isFile }.forEach { merged ->
151- val relative = merged.relativeTo(baseDir).path
152- val target = fs.getPath(relative)
153- if (target.parent != null ) Files .createDirectories(target.parent)
154- Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
155- }
150+ baseDir
151+ .walkTopDown()
152+ .filter { it.isFile }
153+ .forEach { merged ->
154+ val relative = merged.relativeTo(baseDir).path
155+ val target = fs.getPath(relative)
156+ if (target.parent != null ) Files .createDirectories(target.parent)
157+ Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
158+ }
156159 }
157160 }
158161}
Original file line number Diff line number Diff line change @@ -143,12 +143,15 @@ tasks.register("patchSpringMetadata") {
143143 if (! baseDir.exists()) return @doLast
144144 val uri = URI .create(" jar:${jar.toURI()} " )
145145 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
146- baseDir.walkTopDown().filter { it.isFile }.forEach { merged ->
147- val relative = merged.relativeTo(baseDir).path
148- val target = fs.getPath(relative)
149- if (target.parent != null ) Files .createDirectories(target.parent)
150- Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
151- }
146+ baseDir
147+ .walkTopDown()
148+ .filter { it.isFile }
149+ .forEach { merged ->
150+ val relative = merged.relativeTo(baseDir).path
151+ val target = fs.getPath(relative)
152+ if (target.parent != null ) Files .createDirectories(target.parent)
153+ Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
154+ }
152155 }
153156 }
154157}
Original file line number Diff line number Diff line change @@ -116,12 +116,15 @@ tasks.register("patchSpringMetadata") {
116116 if (! baseDir.exists()) return @doLast
117117 val uri = URI .create(" jar:${jar.toURI()} " )
118118 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
119- baseDir.walkTopDown().filter { it.isFile }.forEach { merged ->
120- val relative = merged.relativeTo(baseDir).path
121- val target = fs.getPath(relative)
122- if (target.parent != null ) Files .createDirectories(target.parent)
123- Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
124- }
119+ baseDir
120+ .walkTopDown()
121+ .filter { it.isFile }
122+ .forEach { merged ->
123+ val relative = merged.relativeTo(baseDir).path
124+ val target = fs.getPath(relative)
125+ if (target.parent != null ) Files .createDirectories(target.parent)
126+ Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
127+ }
125128 }
126129 }
127130}
Original file line number Diff line number Diff line change @@ -149,12 +149,15 @@ tasks.register("patchSpringMetadata") {
149149 if (! baseDir.exists()) return @doLast
150150 val uri = URI .create(" jar:${jar.toURI()} " )
151151 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
152- baseDir.walkTopDown().filter { it.isFile }.forEach { merged ->
153- val relative = merged.relativeTo(baseDir).path
154- val target = fs.getPath(relative)
155- if (target.parent != null ) Files .createDirectories(target.parent)
156- Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
157- }
152+ baseDir
153+ .walkTopDown()
154+ .filter { it.isFile }
155+ .forEach { merged ->
156+ val relative = merged.relativeTo(baseDir).path
157+ val target = fs.getPath(relative)
158+ if (target.parent != null ) Files .createDirectories(target.parent)
159+ Files .copy(merged.toPath(), target, StandardCopyOption .REPLACE_EXISTING )
160+ }
158161 }
159162 }
160163}
You can’t perform that action at this time.
0 commit comments