List of usage examples for org.springframework.boot.loader.tools Repackager setBackupSource
public void setBackupSource(boolean backupSource)
From source file:org.springframework.boot.loader.tools.RepackagerTests.java
@Test public void sameSourceAndDestinationWithoutBackup() throws Exception { this.testJarFile.addClass("a/b/C.class", ClassWithMainMethod.class); File file = this.testJarFile.getFile(); Repackager repackager = new Repackager(file); repackager.setBackupSource(false); repackager.repackage(NO_LIBRARIES);/* ww w .ja v a 2 s . com*/ assertThat(new File(file.getParent(), file.getName() + ".original")).doesNotExist(); assertThat(hasLauncherClasses(file)).isTrue(); }