Examples of Util


Examples of com.sun.enterprise.security.common.Util

                if (is != null) {
                    is.close();
                }
            }
        } else {
            Util util = Util.getInstance();
            assert (util != null);
            msgconfigs = (List<MessageSecurityConfig>) util.getAppClientMsgSecConfigs();
        }
        this.initialize(msgconfigs);
        //this.initialize(config);
    }
View Full Code Here

Examples of com.sun.enterprise.security.common.Util

                msgconfigs = cc.getMessageSecurityConfig();
            } catch (JAXBException ex) {
                _logger.log(Level.SEVERE, null, ex);
            }
        } else {
            Util util = Util.getInstance();
            assert (util != null);
            msgconfigs = (List<MessageSecurityConfig>) util.getAppClientMsgSecConfigs();
        }
        this.initialize(msgconfigs);
        //this.initialize(config);
    }
View Full Code Here

Examples of com.tuenti.supernanny.Util

      @Override
      protected void configure() {
        CliParser p = new CliParser();
        p.depfile = depFile;
        Util util = new SuperNannyUtil();
        util.setRoot(new File(root));

        bind(CliParser.class).toInstance(p);
        bind(Util.class).toInstance(util);
      }
    });
View Full Code Here

Examples of com.tuenti.supernanny.Util

  }

  @Override
  public void execute() throws BuildException {
    Injector injector = Guice.createInjector(new SuperNannyModule());
    Util util = injector.getInstance(Util.class);
    DepFetcher fetcher = injector.getInstance(DepFetcher.class);
    if (this.skip) {
      return;
    }
    try {
      CliParser p = new CliParser();
      p.depfile = this.depFile;
      p.skipCleanup = this.skipCleanup;
      util.setRoot(new File(root));
      fetcher.resolve(new File(root), p);
    } catch (IOException e) {
      log("Errors resolving dependencies for project in " + root);
      throw new BuildException(e);
    }
View Full Code Here

Examples of de.matrixweb.smaller.clients.common.Util

   * @see org.apache.tools.ant.Task#execute()
   */
  @Override
  public void execute() {
    try {
      final Util util = new Util(new AntLogger(), this.debug);

      final File temp = File.createTempFile("smaller-ant", ".dir");
      try {
        temp.delete();
        temp.mkdirs();

        log("Reading config-file: " + this.configFilePath);
        if (!this.configFilePath.exists()) {
          throw new RuntimeException(this.configFilePath.toString());
        }
        final ConfigFile configFile = ConfigFile.read(this.configFilePath);

        final List<String> includedFiles = new ArrayList<String>();
        for (final String envName : configFile.getBuildServer()
            .getEnvironments()) {
          final Environment env = configFile.getEnvironments().get(envName);
          for (final String dir : env.getFiles().getFolder()) {
            copyFirstInputFile(env, dir, temp);

            final String base = new File(this.configFilePath.getParentFile(),
                dir).getAbsolutePath();
            final String[] included = scanIncludedFiles(base, env.getFiles()
                .getIncludes(), env.getFiles().getExcludes());

            for (final String include : included) {
              FileUtils.copyFile(new File(base, include), new File(temp,
                  include));
              includedFiles.add(include);
            }
          }
        }

        util.unzip(this.target, util.send(this.host, this.port, this.proxyhost,
            this.proxyport, util.zip(temp, includedFiles, configFile)));
      } finally {
        FileUtils.deleteDirectory(temp);
      }
    } catch (final IOException e) {
      log(Util.formatException(e), Project.MSG_ERR);
View Full Code Here

Examples of de.matrixweb.smaller.clients.common.Util

  protected void executeSmaller(final File base,
      final List<String> includedFiles, final File target, final String host,
      final String port, final String proxyhost, final String proxyport,
      final ConfigFile configFile) throws ExecutionException {
    final Util util = new Util(new MavenLogger());
    util.unzip(
        target,
        util.send(host, port, proxyhost, proxyport,
            util.zip(base, includedFiles, configFile)));
  }
View Full Code Here

Examples of de.matrixweb.smaller.clients.common.Util

            .println("\tThe input is read from stdin the output is written to stdout");
        System.exit(1);
      }
    }

    final Util util = new Util(new Logger() {
      public void debug(final String message) {
        System.err.println(message);
      }
    });
    // IOUtils.write(IOUtils.toByteArray(System.in), System.out);
    // System.exit(1);
    System.err.println(String.format("Connect to %s:%s", host, port));
    IOUtils.write(util.send(host, port, IOUtils.toByteArray(System.in)),
        System.out);
  }
View Full Code Here

Examples of de.pdf_scrutinizer.API.Util

                //set up API
                App app = new App(scrutinizer, doc);

                ScriptableObject.putProperty(scope, "app", Context.javaToJS(app, scope));
                ScriptableObject.putProperty(scope, "Collab", Context.javaToJS(new Collab(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "util", Context.javaToJS(new Util(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "event", Context.javaToJS(new Event(scrutinizer, doc), scope));
                ScriptableObject.putProperty(scope, "media", Context.javaToJS(new Media(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "XMLData", Context.javaToJS(new XMLData(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "display", Context.javaToJS(new display(), scope));
                ScriptableObject.putProperty(scope, "console", Context.javaToJS(doc.console, scope));
View Full Code Here

Examples of de.tuhrig.thofu.Util

    if(file.exists()) {
     
      try {

        String content = new Util().read(file);
       
        area.setText(content);
      }
      catch (Exception e) {
View Full Code Here

Examples of de.tuhrig.thofu.Util

    about.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent arg0) {

        String content = new Util().read(getClass(), "README.md");

        new HtmlViewer(content)
      }
    });
   
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.