コード例 #1
0
 @Test
 public void testGetVMArguments332WithParent() throws Exception {
   ILaunchConfiguration configuration = getLaunchConfiguration("projects/462944/foo/bar/");
   launcher.appendRuntimeSpecificArguments("3.3.2", arguments, configuration);
   String expectedVmArgs =
       "-Xmx2048m -Xms1024m -XX:MaxPermSize=512m -Djava.awt.headless=true -Dmaven.multiModuleProjectDirectory="
           + MavenLaunchUtils.quote(new File("projects/462944/foo/").getAbsolutePath());
   assertEquals(expectedVmArgs, arguments.toString());
 }
コード例 #2
0
 @Test
 public void testGetVMArguments331() throws Exception {
   ILaunchConfiguration configuration = getLaunchConfiguration("projects/462944/foo/bar/baz");
   launcher.appendRuntimeSpecificArguments("3.3.1", arguments, configuration);
   String expectedVmArgs =
       "-Dmaven.multiModuleProjectDirectory="
           + MavenLaunchUtils.quote(new File("projects/462944/foo/bar/baz").getAbsolutePath());
   assertEquals(expectedVmArgs, arguments.toString());
 }
コード例 #3
0
 @Test
 public void testGetVMArgumentsSubstituteMultiModuleDir() throws Exception {
   Path workspaceRoot = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile().toPath();
   Path mvn = workspaceRoot.resolve(Paths.get("foo", ".mvn"));
   if (!Files.exists(mvn)) {
     Files.createDirectories(mvn);
   }
   ILaunchConfiguration configuration =
       new MockLaunchConfiguration(
           Collections.singletonMap(
               MavenLaunchConstants.ATTR_POM_DIR, "${workspace_loc}/foo/bar"));
   launcher.appendRuntimeSpecificArguments("3.3.3", arguments, configuration);
   String expectedVmArgs =
       "-Dmaven.multiModuleProjectDirectory="
           + MavenLaunchUtils.quote(
               ResourcesPlugin.getWorkspace().getRoot().getLocation().append("foo").toOSString());
   assertEquals(expectedVmArgs, arguments.toString());
 }