Package org.apache.juddi.util

Examples of org.apache.juddi.util.Loader


        }
      }
      //Adding this to make maven happy, what maven wants, maven gets.
      if (is==null) {
          log.debug("Trying the classloader of the class itself. (workaround for maven2)");
          Loader loader = new Loader();
          is = loader.getResourceAsStreamFromClass(propFile);
      }
     
      if (is != null)
      {
        log.debug("Resources loaded from: "+propFile);
View Full Code Here


  public void executeSql(String resource, Connection conn, String tablePrefix) throws Exception
  {
        InputStream is = Loader.getResourceAsStream(resource);
        if (is == null) {
            log.debug("Trying the classloader of the class itself. (workaround for maven2)");
            Loader loader = new Loader();
            is = loader.getResourceAsStreamFromClass(resource);
        }
        String sql = getString(is);
        sql = sql.replaceAll("(?m)^--([^\n]+)?$", ""); // Remove all commented lines
        sql = sql.replaceAll("\\$\\{prefix}", tablePrefix);
        is.close();
View Full Code Here

  public void executeSql(String resource, Connection conn, String tablePrefix) throws Exception
  {
        InputStream is = Loader.getResourceAsStream(resource);
        if (is == null) {
            log.debug("Trying the classloader of the class itself. (workaround for maven2)");
            Loader loader = new Loader();
            is = loader.getResourceAsStreamFromClass(resource);
        }
        String sql = getString(is);
        sql = sql.replaceAll("(?m)^--([^\n]+)?$", ""); // Remove all commented lines
        sql = sql.replaceAll("\\$\\{prefix}", tablePrefix);
        is.close();
View Full Code Here

TOP

Related Classes of org.apache.juddi.util.Loader

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.