Examples of Settings


Examples of net.sf.redmine_mylyn.api.model.Settings

  }

  static Configuration buildConfiguration() {
    try {
      Configuration cfg = new Configuration();
      cfg.setSettings(new Settings());
     
      buildCustomFields(cfg.getCustomFields());
//    cfg.getIssueCategories()
//    cfg.getIssuePriorities()
//    cfg.getIssueStatuses()
View Full Code Here

Examples of net.timewalker.ffmq3.utils.Settings

          {
            PropertyConfigurator.configure(testSettings);
            log4jConfigured = true;
          }
 
          Settings settings = new Settings(testSettings);
         
          if (listener != null)
          {
              listener.stop();
              listener = null;
          }
      
          try
          {
              FFMQEngine.getDeployedInstance(TestUtils.LOCAL_ENGINE_NAME).undeploy();
          }
          catch (JMSException e)
          {
              // Ignore
          }
         
          engine = new FFMQEngine(TestUtils.LOCAL_ENGINE_NAME,settings,null);
          engine.deploy();
         
//          engine.deleteQueue("TEST1");
//          engine.deleteQueue("TEST2");
//          engine.deleteTopic("TEST1");
//          engine.deleteTopic("TEST2");
         
          queue1 = engine.getLocalQueue("TEST1");
          queue2 = engine.getLocalQueue("TEST2");
          topic1 = engine.getLocalTopic("TEST1");
          topic2 = engine.getLocalTopic("TEST2");
         
          ((LocalQueue)queue1).purge(null);
          ((LocalQueue)queue2).purge(null);
          ((LocalTopic)topic1).resetStats();
          //topic2.resetStats();
         
          if (isRemote())
          {
            boolean useNIO = settings.getBooleanProperty("listener.tcp.useNIO",false);
            if (useNIO)
            {
              listener = new NIOTcpListener(engine,
                                                FFMQConstants.DEFAULT_SERVER_HOST,
                                                TestUtils.TEST_SERVER_PORT,
View Full Code Here

Examples of nfc.sample.nfctransaction.Settings

        MultiStateButtonField btn = (MultiStateButtonField) context;
        if(btn.getMsbState() == Constants.BTN_SELECT_OFF) {
            Utilities.log("XXXX " + Thread.currentThread().getName() + " ISO 7816-4 command exiting because button is in OFF state");
            return;
        }
        Settings settings = Settings.getInstance();
        NfcTransScreen screen = NfcTransScreen.getInstance();
        Utilities.log("XXXX " + Thread.currentThread().getName() + " selecting applet");
        APDUConnection apduConn = null;
        // this is an example and completely proprietary APDU included solely to demonstrate the basic use of JSR-177
        // Decode:
        // 0x80 : CLASS = proprietary
        // 0x01 : INS   = invented command! Interpretation will require the selected applet to understand this command
        // 0x00 : P1    = null
        // 0x00 : P1    = null
        byte[] command = settings.getAPDU();
        try {
            // Open an APDUConnection to our applet. This results in an ISO 7816-4 SELECT command being sent by the JSR-177 API
            String connection_string = Utilities.makeApduConnectionString(settings.getRegisteredAIDAsString());
            Utilities.log("XXXX " + Thread.currentThread().getName() + " ISO 7816-4 command: opening APDUConnection to " + connection_string);
            apduConn = (APDUConnection) Connector.open(connection_string);
            Utilities.log("XXXX " + Thread.currentThread().getName() + " ISO 7816-4 command: APDUConnection opened");
            screen.setUserMessage("Selected AID OK");
            // Send the APDU and wait for a response - expect an error here unless your applet supports the command that was sent
View Full Code Here

Examples of oculus.Settings

  PrintWriter out;
 
  @Before
  public void setUp() throws NumberFormatException, UnknownHostException {
    System.out.println(getClass().toString());
    Settings settings = Settings.getReference();
      if(Settings.settingsfile != null)
        if(Settings.settingsfile.contains("null"))
          fail("no settings file found");
     
    try {
      socket = new Socket("127.0.0.1", settings.getInteger(ManualSettings.commandport));
    } catch (IOException e) {
      fail("can NOT connect");
    }
   
    if(socket != null){
      stdin = new BufferedReader(new InputStreamReader(System.in));
      try {
        out = new PrintWriter(new BufferedWriter(
            new OutputStreamWriter(socket.getOutputStream())), true);
      } catch (IOException e) {
        fail("can NOT connect to output socket");
      }
     
     
      // login on connect
      String user = settings.readSetting("user0");
      String pass = settings.readSetting("pass0");
      out.println(user + ":" + pass);
     
      // read feedback
      new Thread(new Runnable() {
        @Override
View Full Code Here

Examples of org.apache.cocoon.configuration.Settings

    /**
     * Get the current settings object for java script.
     */
    public Scriptable jsGet_settings() {
        final Settings s = this.getSettings();
        return org.mozilla.javascript.Context.toObject(s, getParentScope());
    }
View Full Code Here

Examples of org.apache.cocoon.util.Settings

     * @exception ConfigurationException if an error occurs
     * @exception ContextException if an error occurs
     */
    public void configure(ExcaliburComponentManager startupManager) throws ConfigurationException, ContextException {
        SAXParser p = null;
        Settings settings = SettingsHelper.getSettings(this.context);

        Configuration roles = null;
        try {
            p = (SAXParser) startupManager.lookup(SAXParser.ROLE);
            SAXConfigurationHandler b = new PropertyAwareSAXConfigurationHandler(settings, this.getLogger());
View Full Code Here

Examples of org.apache.maven.bootstrap.settings.Settings

    {
        File settingsXml = new File( parser.getArgumentValue( "--settings" ) );

        System.out.println( "Using settings from " + settingsXml );

        Settings settings = Settings.read( USER_HOME, settingsXml );

        // TODO: have an alternative implementation of ArtifactResolver for source compiles
        //      - if building from source, checkout and build then resolve to built jar (still download POM?)
        resolver = setupRepositories( settings );
    }
View Full Code Here

Examples of org.apache.maven.scm.providers.clearcase.settings.Settings

        command.setExecutable( "cleartool" );
        command.createArg().setValue( "lshistory" );

        command.setWorkingDirectory( workingDirectory.getAbsolutePath() );

        Settings settings = ClearCaseUtil.getSettings();
        String userFormat =
            StringUtils.isEmpty( settings.getChangelogUserFormat() ) ? "" : settings.getChangelogUserFormat();

        StringBuilder format = new StringBuilder();
        format.append( "NAME:%En\\n" );
        format.append( "DATE:%Nd\\n" );
        format.append( "COMM:%-12.12o - %o - %c - Activity: %[activity]p\\n" );
View Full Code Here

Examples of org.apache.maven.scm.providers.cvslib.settings.Settings

                System.err.println( message );
            }
        }

        return new Settings();
    }
View Full Code Here

Examples of org.apache.maven.scm.providers.gitlib.settings.Settings

    }

    public static Commandline getBaseCommand( String commandName, GitScmProviderRepository repo, ScmFileSet fileSet,
                                              String options )
    {
        Settings settings = GitUtil.getSettings();

        Commandline cl = new Commandline();

        cl.setExecutable( "git" );

        cl.setWorkingDirectory( fileSet.getBasedir().getAbsolutePath() );

        if ( settings.getTraceGitCommand() != null )
        {
            cl.addEnvironment( "GIT_TRACE", settings.getTraceGitCommand() );
        }

        cl.createArg().setLine( options );
        cl.createArg().setValue( commandName );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.