|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2021 the original author or authors.
|
|
|
|
* Copyright 2012-2022 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -484,6 +484,18 @@ abstract class AbstractPackagerTests<P extends Packager> {
|
|
|
|
assertThat(getPackagedEntry("BOOT-INF/classes/META-INF/aop.xml")).isNotNull();
|
|
|
|
assertThat(getPackagedEntry("BOOT-INF/classes/META-INF/aop.xml")).isNotNull();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
void metaInfServicesFilesAreMovedBeneathBootInfClassesWhenRepackaged() throws Exception {
|
|
|
|
|
|
|
|
this.testJarFile.addClass("A.class", ClassWithMainMethod.class);
|
|
|
|
|
|
|
|
File service = new File(this.tempDir, "com.example.Service");
|
|
|
|
|
|
|
|
service.createNewFile();
|
|
|
|
|
|
|
|
this.testJarFile.addFile("META-INF/services/com.example.Service", service);
|
|
|
|
|
|
|
|
P packager = createPackager();
|
|
|
|
|
|
|
|
execute(packager, NO_LIBRARIES);
|
|
|
|
|
|
|
|
assertThat(getPackagedEntry("META-INF/services/com.example.Service")).isNull();
|
|
|
|
|
|
|
|
assertThat(getPackagedEntry("BOOT-INF/classes/META-INF/services/com.example.Service")).isNotNull();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void allEntriesUseUnixPlatformAndUtf8NameEncoding() throws IOException {
|
|
|
|
void allEntriesUseUnixPlatformAndUtf8NameEncoding() throws IOException {
|
|
|
|
this.testJarFile.addClass("A.class", ClassWithMainMethod.class);
|
|
|
|
this.testJarFile.addClass("A.class", ClassWithMainMethod.class);
|
|
|
|