File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
spring-core/src/test/java/org/springframework/util Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ dependencies {
111111 api(" org.dom4j:dom4j:2.1.4" )
112112 api(" org.easymock:easymock:5.5.0" )
113113 api(" org.eclipse.angus:angus-mail:2.0.3" )
114- api(" org.eclipse.jetty:jetty-reactive-httpclient:4.0.9 " )
114+ api(" org.eclipse.jetty:jetty-reactive-httpclient:4.0.11 " )
115115 api(" org.eclipse.persistence:org.eclipse.persistence.jpa:5.0.0-B08" )
116116 api(" org.eclipse:yasson:3.0.4" )
117117 api(" org.ehcache:ehcache:3.10.8" )
@@ -124,7 +124,7 @@ dependencies {
124124 api(" org.hibernate.orm:hibernate-core:7.1.0.Final" )
125125 api(" org.hibernate.validator:hibernate-validator:9.0.1.Final" )
126126 api(" org.hsqldb:hsqldb:2.7.4" )
127- api(" org.htmlunit:htmlunit:4.15 .0" )
127+ api(" org.htmlunit:htmlunit:4.16 .0" )
128128 api(" org.javamoney:moneta:1.4.4" )
129129 api(" org.jboss.logging:jboss-logging:3.6.1.Final" )
130130 api(" org.jruby:jruby:10.0.2.0" )
Original file line number Diff line number Diff line change @@ -84,7 +84,11 @@ void copyRecursively(@TempDir File tempDir) throws Exception {
8484 assertThat (new File (dest , "child" )).exists ();
8585 assertThat (new File (dest , "child/bar.txt" )).exists ();
8686
87- URI uri = URI .create ("jar:file:/" + dest .toString ().replace ('\\' , '/' ) + "/archive.zip" );
87+ String destPath = dest .toString ().replace ('\\' , '/' );
88+ if (!destPath .startsWith ("/" )) {
89+ destPath = "/" + destPath ;
90+ }
91+ URI uri = URI .create ("jar:file:" + destPath + "/archive.zip" );
8892 Map <String , String > env = Map .of ("create" , "true" );
8993 FileSystem zipfs = FileSystems .newFileSystem (uri , env );
9094 Path ziproot = zipfs .getPath ("/" );
You can’t perform that action at this time.
0 commit comments