Examples of mkdir()


Examples of java.io.File.mkdir()

        }
       
        File targetDir = new File(targetDirectory.getAbsolutePath() + File.separatorChar + sourceDirectory.getName());
        if (includeSourceRoot) {
            // copy source directory
            targetDir.mkdir();
        } else {
            // copy only source directory contents
            targetDir = new File(targetDirectory.getAbsolutePath() + File.separatorChar);
        }
        File[] sourceFiles = sourceDirectory.listFiles();
View Full Code Here

Examples of java.io.File.mkdir()

        if(dataCluster == null) {
            throw new IllegalStateException("Initialization seems to be not called before");
        }
        File clusterDir = new File(dataCluster);
        if(!clusterDir.exists()) {
            boolean created = clusterDir.mkdir();
            if(!created) {
                throw new IllegalStateException("Creation of the cluster data '" + dataCluster
                        + "' is failed");
            }
        }
View Full Code Here

Examples of java.io.File.mkdir()

        System.out.println("[KnowledgeFlow] Saving user components....");
        File sFile = new File(WekaPackageManager.WEKA_HOME.getPath()
            + File.separator + "knowledgeFlow");

        if (!sFile.exists()) {
          if (!sFile.mkdir()) {
            System.err.println("[KnowledgeFlow] Unable to create \""
                + sFile.getPath() + "\" directory");
          }
        }
        try {
View Full Code Here

Examples of java.io.File.mkdir()

          JOptionPane.YES_NO_OPTION);
        if (confirm != JOptionPane.YES_OPTION) return;
      }
    } else {
      if (circuits.size() > 1) {
        boolean created = dest.mkdir();
        if (!created) {
          JOptionPane.showMessageDialog(proj.getFrame(),
              Strings.get("exportNewDirectoryErrorMessage"),
              Strings.get("exportNewDirectoryErrorTitle"),
              JOptionPane.YES_NO_OPTION);
View Full Code Here

Examples of java.io.File.mkdir()

         } else if (cacheloaderClass.equals(FileCacheLoader.class.getName()))
         {
            String tmpLocation = getTempLocation(cacheID);
            File file = new File(tmpLocation);
            cleanFile(file);
            file.mkdir();
            tmpLocation = escapeWindowsPath(tmpLocation);
            String props = "location = " + tmpLocation + "\n";
            c.setCacheLoaderConfig(UnitTestConfigurationFactory.buildSingleCacheLoaderConfig(false, "", cacheloaderClass,
                  props, async, fetchPersistentState, false, false, false));
         }
View Full Code Here

Examples of java.io.File.mkdir()

    public void clearDirectory() throws IOException{
       
        File dirname = new File(Plugin.getPluginManager().getTvBrowserSettings().getTvBrowserUserHome() + File.separator + "CaptureDevices");
       
        if (!dirname.exists()) {
            dirname.mkdir();
        }
       
        File[] fileList = dirname.listFiles();
        if ((fileList != null) && (fileList.length > 0)) {
            for (File file : fileList) {
View Full Code Here

Examples of java.io.File.mkdir()

    //@SuppressWarnings("unused")
    //PrimaryDataManager manager =
    new PrimaryDataManager(new File("test"));

    // Create the prepared data
    prepDir.mkdir();

    // Create a dummy mirrorlist.txt with an invalid mirror
    FileOutputStream stream = null;
    try {
      stream = new FileOutputStream(new File(prepDir, "mirrorlist.txt"));
View Full Code Here

Examples of java.io.File.mkdir()

    setDebugging(Boolean.parseBoolean(System.getProperty(SYSPROP_DEBUG, "false")));

    try {
      File resourceManager = new File(getStateLocation().toFile(), "resourceManager");
      if (!resourceManager.exists()) {
        resourceManager.mkdir();
      }
      _resourceIndexManager = new ResourceIndexManager(resourceManager);
     
     
View Full Code Here

Examples of java.io.File.mkdir()

      _resourceManager.init(getBundleFile(Platform.getBundle(PLUGIN_ID)), getStateLocation().toFile());
     
      // init BeanListStore for Remoteservers
      File settings = new File(getStateLocation().toFile(), "settings");
      if(!settings.exists()){
        settings.mkdir();
      }     
      _wgaRemoteServerStore = new BeanListStore<WGARemoteServer>(settings,STORAGE_KEY_WGA_REMOTESERVERS, WGARemoteServer.class.getClassLoader());

      Bundle bundle = Platform.getBundle(PLUGIN_ID);      
      Path path = new Path("resources/tomcat");
View Full Code Here

Examples of java.io.File.mkdir()

     
      File orgCatalinaBase = runtime.getCatalinaBase().getLocation().toFile();
      // create new temp catalinabase  directory
      File catalinaBase = new File(WGADesignerPlugin.getDefault().getStateLocation().toFile(), "tomcat_current");
      if (!catalinaBase.exists()) {
        catalinaBase.mkdir();
      }
      WGUtils.delTree(catalinaBase, false);     
      // copy current conf from workspace
      File tmpConf = new File(catalinaBase, "conf");
      WGUtils.copyDirContent(new File(orgCatalinaBase, "conf"), tmpConf);
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.