Package net.geco.app

Examples of net.geco.app.GecoStageLaunch


    if( GecoResources.platformIsMacOs() ) {
      GecoMacos.earlySetup();
    }

    try {
      GecoStageLaunch stageLaunch = initStageLauncher(startDir);
      new Geco().startup(stageLaunch);
    } catch (Exception e) {
      e.printStackTrace();
      System.exit(-1);
    }
View Full Code Here


      System.out.println(Messages.getString("Geco.UnrecognizedOptionWarning") + arg); //$NON-NLS-1$
    }
  }

  private static GecoStageLaunch initStageLauncher(String startDir) {
    GecoStageLaunch stageLaunch = new GecoStageLaunch();
    if( startDir!=null ) {
      if( !GecoResources.exists(startDir) ) {
        System.out.println(Messages.getString("Geco.NoPathWarning") + startDir); //$NON-NLS-1$
        System.exit(0);
      } else {
        stageLaunch.loadFromFileSystem(startDir);
      }
    } else {
      try {
        File historyFile = new File(GecoResources.getGecoSupportDirectory() + GecoResources.sep + "history");
        historyFile.createNewFile();
        BufferedReader reader = new BufferedReader(new FileReader(historyFile));
        String line;
        do {
          line = reader.readLine();
          if( StageBuilder.directoryHasData(line) ){
            history.addLast(new GecoStageLaunch().loadFromFileSystem(line));
          }
        } while( line != null );
      } catch (FileNotFoundException e) {
        System.out.println(e);
      } catch (IOException e) {
View Full Code Here

    System.gc();
  }

  @Override
  public IStageLaunch createStageLaunch() {
    return new GecoStageLaunch();
  }
View Full Code Here

    return mockGeco;
  }
 
  @Test
  public void gecoLauncherLoadProperties() throws ClassNotFoundException, InstantiationException, IllegalAccessException{
    GecoStageLaunch stageLaunch = new GecoStageLaunch();
    stageLaunch.loadFromFileSystem("testData/valid");
    Assert.assertEquals("testData/valid", stageLaunch.getStageDir());
    Assert.assertTrue(stageLaunch.getAppBuilder() instanceof OrientShowAppBuilder);
  }
View Full Code Here

TOP

Related Classes of net.geco.app.GecoStageLaunch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.