< prev index next >

functional/appBundlerTestsJDK9/appBundlerTestsJDK9/test/com/oracle/appbundlers/tests/functionality/DefaultClassPathTest.java

Print this page

        

*** 16,27 **** --- 16,30 ---- import java.util.concurrent.ExecutionException; import com.oracle.appbundlers.tests.functionality.functionalinterface.BasicParams; import com.oracle.appbundlers.tests.functionality.functionalinterface.VerifiedOptions; import com.oracle.appbundlers.utils.AppWrapper; + import com.oracle.appbundlers.utils.BundlerUtils; + import com.oracle.appbundlers.utils.BundlingManagers; import com.oracle.appbundlers.utils.ExtensionType; import com.oracle.tools.packager.RelativeFileSet; + import com.oracle.tools.packager.StandardBundlerParam; /** * @author Dmitry Ginzburg &lt;dmitry.x.ginzburg@oracle.com&gt; */
*** 52,61 **** --- 55,74 ---- app.compileApp(); app.jarApp(Collections.emptyList(), true); } @Override + protected BundlingManagers[] getBundlingManagers() { + return new BundlingManagers[] { BundlingManagers.CLI }; + } + + @Override + protected BundlerUtils[] getBundlerUtils() { + return new BundlerUtils[] { BundlerUtils.EXE }; + } + + @Override public void overrideParameters(ExtensionType intermediate) throws IOException { this.currentParameter.setVerifiedOptions(getVerifiedOptions()); this.currentParameter.setBasicParams(getBasicParams()); }
*** 67,77 **** .put(APP_RESOURCES, new RelativeFileSet(app.getJarDir().toFile(), app.getJarFilesList().stream() .map(Path::toFile) .collect(toSet()))); ! basicParams.put(APPLICATION_CLASS, this.currentParameter.getApp().getMainClass()); return basicParams; }; } @Override --- 80,92 ---- .put(APP_RESOURCES, new RelativeFileSet(app.getJarDir().toFile(), app.getJarFilesList().stream() .map(Path::toFile) .collect(toSet()))); ! String mainClass = StandardBundlerParam.MAIN_CLASS ! .fetchFrom(basicParams); ! basicParams.put(APPLICATION_CLASS, mainClass); return basicParams; }; } @Override
< prev index next >