Examples of addDirectory()


Examples of org.hibernate.cfg.Configuration.addDirectory()

          if (!file.isDirectory()) {
            throw new IllegalArgumentException(
                "Mapping directory location [" + this.mappingDirectoryLocations[i] +
                "] does not denote a directory");
          }
          config.addDirectory(file);
        }
      }

      // Tell Hibernate to eagerly compile the mappings that we registered,
      // for availability of the mapping information in further processing.
View Full Code Here

Examples of org.hibernate.cfg.Configuration.addDirectory()

          if (!file.isDirectory()) {
            throw new IllegalArgumentException(
                "Mapping directory location [" + this.mappingDirectoryLocations[i] +
                "] does not denote a directory");
          }
          config.addDirectory(file);
        }
      }

      if (this.entityCacheStrategies != null) {
        // Register cache strategies for mapped entities.
View Full Code Here

Examples of org.jboss.ejb3.embedded.sub.vfs.VirtualFileAssembly.addDirectory()

               archive.addModule(d);
            server.deploy(archive);
            */
            VirtualFileAssembly assembly = new VirtualFileAssembly(appName + ".ear");
            // make sure we don't have class loader isolation (else CCE in the user class)
            assembly.addDirectory("META-INF"); // make sure this is visible as a child
            assembly.add("META-INF/jboss-classloading.xml", createJBossClassLoadingXML());
            for(File d : deployments)
            {
               // if it's already a file it must not be mounted twice (see AbstractVFSArchiveStructureDeployer#determineStructure)
               if(d.isFile())
View Full Code Here

Examples of org.jdesktop.wonderland.common.modules.utils.ModuleJarWriter.addDirectory()

            ModuleJarWriter mjw = new ModuleJarWriter();
            File[] dirs = tmpDir.listFiles();
            if (dirs != null) {
                for (File f : dirs) {
                    if (f.isDirectory()) {
                        mjw.addDirectory(f);
                    }
                }
            }
            ModuleInfo mi =
                    new ModuleInfo(moduleName, 1, 0, 0, descriptionTF.getText());
View Full Code Here

Examples of org.jnode.fs.FSDirectory.addDirectory()

        fs = new HfsPlusFileSystemType().create(device, false);
        fs.read();
        fs.createRootEntry();
        FSDirectory root = fs.getRootEntry().getDirectory();
        Assert.assertFalse("Must be empty", root.iterator().hasNext());
        root.addDirectory("test");
        fs.flush();
        fs.close();
        fs = new HfsPlusFileSystemType().create(device, false);
        fs.read();
        Assert.assertEquals(1, fs.getVolumeHeader().getFolderCount());
View Full Code Here

Examples of org.jnode.fs.FSDirectory.addDirectory()

        FSDirectory directory = getParentDirectoryEntry(file);
        if (directory == null) {
            return false;
        }
        // Ok, add the dir
        entry = directory.addDirectory(getName(file));
        return true;
    }

    /**
     * Make a file
View Full Code Here

Examples of org.jnode.fs.FSDirectory.addDirectory()

    public void testFSTree() throws IOException, Exception {
        if (!config.isReadOnly()) {
            setUp();

            FSDirectory rootDir = getFs().getRootEntry().getDirectory();
            FSEntry dir1 = rootDir.addDirectory("dir1");
            assertNotNull("dir1 not added", rootDir.getEntry("dir1"));

            /*FSEntry dir11=*/
            dir1.getDirectory().addDirectory("dir1.1");
            assertNotNull("dir11 not added", dir1.getDirectory().getEntry("dir1.1"));
View Full Code Here

Examples of org.jnode.fs.FSDirectory.addDirectory()

            setUp();

            FSDirectory rootDir = getFs().getRootEntry().getDirectory();
            log.debug("### testFSTreeWithRemount: rootDir=\n" + FSUtils.toString(rootDir, true));

            FSEntry dir1 = rootDir.addDirectory(fileName);
            assertNotNull("'" + fileName + "' not added", rootDir.getEntry(fileName));

            log.debug("### testFSTreeWithRemount: before remountFS");
            remountFS(config, getFs().isReadOnly());
            log.debug("### testFSTreeWithRemount: after remountFS");
View Full Code Here

Examples of org.jnode.fs.FSDirectory.addDirectory()

        log.debug("Root dir before testAddDirectory :");
        TestUtils.listEntries(rootDir.iterator());
        if (config.isReadOnly()) {
            try {
                rootDir.addDirectory(dirName);
                fail("addDirectory must fail in readOnly mode");
            } catch (ReadOnlyFileSystemException e) {
                // success
            }
            assertContainsOnly("must be empty", rootDir.iterator(), getEmptyDirNames(config, true));
View Full Code Here

Examples of org.jnode.fs.FSDirectory.addDirectory()

                // success
            }
            assertContainsOnly("must be empty", rootDir.iterator(), getEmptyDirNames(config, true));
        } else {
            try {
                FSEntry entry = rootDir.addDirectory(dirName);
                // success
                log.debug("added directory entry=" + FSUtils.toString(entry, true));
            } catch (ReadOnlyFileSystemException e) {
                fail("addDirectory must succeed in read/write mode");
            }
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.