Examples of FileUtils


Examples of com.google.code.maven_replacer_plugin.file.FileUtils

  @Before
  public void setUp() {
    mojo = mock(ReplacerMojo.class);
    when(mojo.getBasedir()).thenReturn(BASE_DIR);
   
    fileUtils = new FileUtils();
    builder = new OutputFilenameBuilder();
  }
View Full Code Here

Examples of com.neophob.sematrix.core.glue.FileUtils

  /**
   *
   */
  public PixelControllerCli() {
    LOG.log(Level.INFO, "\n\nPixelController "+getVersion()+" - http://www.pixelinvaders.ch\n\n");               
    fileUtils = new FileUtils();
    applicationConfig = InitApplication.loadConfiguration(fileUtils);

    LOG.log(Level.INFO, "Create Collector");
    this.collector = Collector.getInstance();

View Full Code Here

Examples of com.xmultra.util.FileUtils

        // Create new Logger object.
        logger = new Logger(initMapHolder, managerNode, this);

        // Create FileUtils and store in InitMapHolder.

        fileUtils = new FileUtils(logger, xmultraRootDir);
        initMapHolder.setEntry(this, InitMapHolder.FILE_UTILS, fileUtils);

        // Get the XmlPaser object and store in InitMapHolder.
        xmlParseUtils = new XmlParseUtils(logger, fileUtils);
        initMapHolder.setEntry(this, InitMapHolder.XML_PARSE_UTILS,
View Full Code Here

Examples of net.sf.minuteProject.utils.io.FileUtils

    writeTemplateResult(baseStructure, template);
  }
 
  protected void putStandardContextObject(VelocityContext context) {
    super.putStandardContextObject(context);
    FileUtils fileUtils = new FileUtils();
    context.put("file", file);
    context.put("fileUtils", new FileUtils());
    context.put("lines", fileUtils.getLines( file, implicitstructureHolder.getBaseStructure().getSeparator()));
  }
View Full Code Here

Examples of org.apache.openejb.loader.FileUtils

    private static void configureInternal() throws IOException {

        System.setProperty("openjpa.Log", "log4j");
        SystemInstance system = SystemInstance.get();
        FileUtils base = system.getBase();
        File confDir = base.getDirectory("conf");
        File loggingPropertiesFile = new File(confDir, LOGGING_PROPERTIES_FILE);
        if (confDir.exists()) {
            if (loggingPropertiesFile.exists()) {
                BufferedInputStream bis = new BufferedInputStream(new FileInputStream(loggingPropertiesFile));
                Properties props = new Properties();
View Full Code Here

Examples of org.apache.openejb.loader.FileUtils

            configureEmbedded();
        }
    }

    private static void preprocessProperties(Properties properties) {
        FileUtils base = SystemInstance.get().getBase();
        File confDir = new File(base.getDirectory(), "conf");
        File baseDir = base.getDirectory();
        File userDir = new File("foo").getParentFile();

        File[] paths = {confDir, baseDir, userDir};

        List missing = new ArrayList();
View Full Code Here

Examples of org.apache.openejb.loader.FileUtils

    public static File install(URL resource, String name, boolean overwrite) throws IOException {
        if (resource == null) return null;

        SystemInstance system = SystemInstance.get();
        FileUtils base = system.getBase();
        File conf = base.getDirectory("conf");

        if (!conf.exists()) return null;

        File file = new File(conf, name);
View Full Code Here

Examples of org.apache.openejb.loader.FileUtils

        daemons = (ServerService[]) enabledServers.toArray(new ServerService[]{});
    }

    private void overrideProperties(String serviceName, Properties serviceProperties) throws IOException {
        FileUtils base = SystemInstance.get().getBase();

        // Override with file from conf dir
        File conf = base.getDirectory("conf");
        if (conf.exists()) {
            File serviceConfig = new File(conf, serviceName + ".properties");
            if (serviceConfig.exists()) {
                FileInputStream in = new FileInputStream(serviceConfig);
                try {
View Full Code Here

Examples of org.apache.openejb.loader.FileUtils

        // make a copy of the list because we update it
        deployments = new ArrayList<Deployments>(deployments);

        // resolve jar locations //////////////////////////////////////  BEGIN  ///////

        FileUtils base = SystemInstance.get().getBase();

        List<String> declaredApps = new ArrayList<String>(deployments.size());
        try {
            for (Deployments deployment : deployments) {
                DeploymentsResolver.loadFrom(deployment, base, declaredApps);
View Full Code Here

Examples of org.apache.openejb.loader.FileUtils

            addBeansXmls(appModule);

            // Persistence Units
            final Properties p = new Properties();
            p.put(appModule.getModuleId(), appModule.getJarLocation());
            final FileUtils base = new FileUtils(appModule.getModuleId(), appModule.getModuleId(), p);
            final List<URL> filteredUrls = new ArrayList<URL>();
            DeploymentsResolver.loadFromClasspath(base, filteredUrls, appModule.getClassLoader());
            addPersistenceUnits(appModule, filteredUrls.toArray(new URL[filteredUrls.size()]));

            return appModule;
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.