Package java.io

Examples of java.io.File.mkdir()


  private static File getImageFile(long id) {
    IPath path = new Path(Activator.getDefault().getStateLocation().toOSString());
    path = path.append(ICONS_FOLDER);
    File root = new File(path.toOSString());
    if (!root.exists())
      root.mkdir();

    path = path.append(id + ".ico");

    return new File(path.toOSString());
  }
View Full Code Here


  private static File getImageFile(long id) {
    IPath path = new Path(Activator.getDefault().getStateLocation().toOSString());
    path = path.append(ICONS_FOLDER);
    File root = new File(path.toOSString());
    if (!root.exists())
      root.mkdir();

    path = path.append(id + ".ico");

    return new File(path.toOSString());
  }
View Full Code Here

  private void backupSubscriptions() {
    IPath rootPath = Platform.getLocation();
    File root = rootPath.toFile();
    if (!root.exists())
      root.mkdir();

    IPath dailyBackupPath = rootPath.append(DAILY_BACKUP);
    IPath backupTmpPath = rootPath.append(BACKUP_TMP);
    IPath weeklyBackupPath = rootPath.append(WEEKLY_BACKUP);
View Full Code Here

    File corpus1Folder = new File(fPluginLocation.resolve("data/performance/corpus_10-03-07"));
    File corpus2Folder = new File(fPluginLocation.resolve("data/performance/corpus_10-06-07"));
    File corpus3Folder = new File(fPluginLocation.resolve("data/performance/corpus_10-09-07"));
    File tmpFolder = new File(System.getProperty("java.io.tmpdir"));
    File feedFolder = new File(tmpFolder.getAbsolutePath(), "rssowlfeeds");
    feedFolder.mkdir();
    feedFolder.deleteOnExit();

    /* Copy Feeds of corpus_10-03-07 to temp location */
    copyFeedFilesToTempLocation(corpus1Folder, feedFolder);

View Full Code Here

    File corpus1Folder = new File(fPluginLocation.resolve("data/performance/corpus_10-03-07"));
    File corpus2Folder = new File(fPluginLocation.resolve("data/performance/corpus_10-06-07"));
    File corpus3Folder = new File(fPluginLocation.resolve("data/performance/corpus_10-09-07"));
    File tmpFolder = new File(System.getProperty("java.io.tmpdir"));
    File feedFolder = new File(tmpFolder.getAbsolutePath(), "rssowlfeeds");
    feedFolder.mkdir();
    feedFolder.deleteOnExit();

    /* Copy Feeds of corpus_10-03-07 to temp location */
    copyFeedFilesToTempLocation(corpus1Folder, feedFolder);
    List<ITask> tasks = getRealWorldReloadTasks(feedFolder.getAbsolutePath());
View Full Code Here

     * @throws Exception
     */
    public void testGenerateRequestResponseClasses() throws Exception {
        File outDir = new File(scriptsDirUrl.getFile() + FS + "wsprovide-basic-out");
        if (!outDir.exists()) {
            outDir.mkdir();
        }
        String command = "wsprovide";
        String options = "-c " + classesDirUrl.getFile() + " -o " + outDir.getAbsolutePath();
        String args = "org.jboss.test.scripts.support.HelloJavaBean";
        String[] shellCommand = getShellCommand(command, options, args);
View Full Code Here

     * @throws Exception
     */
    public void testGenerateWSDL() throws Exception {
        File outDir = new File(scriptsDirUrl.getFile() + FS + "wsprovide-wsdl-out");
        if (!outDir.exists()) {
            outDir.mkdir();
        }
        String command = "wsprovide";
        String options = "-w -c " + classesDirUrl.getFile() + " -o " + outDir.getAbsolutePath();
        String args = "org.jboss.test.scripts.support.HelloJavaBean";
        String[] shellCommand = getShellCommand(command, options, args);
View Full Code Here

     * @throws Exception
     */
    public void testGenerateWSDLWithExtension() throws Exception {
        File outDir = new File(scriptsDirUrl.getFile() + FS + "wsprovide-wsdl-ext-out");
        if (!outDir.exists()) {
            outDir.mkdir();
        }
        String command = "wsprovide";
        String options = "-w -e -c " + classesDirUrl.getFile() + " -o " + outDir.getAbsolutePath();
        String args = "org.jboss.test.scripts.support.HelloJavaBean";
        String[] shellCommand = getShellCommand(command, options, args);
View Full Code Here

     * @throws Exception
     */
    public void testKeepSources() throws Exception {
        File outDir = new File(scriptsDirUrl.getFile() + FS + "wsprovide-keep-sources-out");
        if (!outDir.exists()) {
            outDir.mkdir();
        }
        String command = "wsprovide";
        String options = "-k -c " + classesDirUrl.getFile() + " -o " + outDir.getAbsolutePath();
        String args = "org.jboss.test.scripts.support.HelloJavaBean";
        String[] shellCommand = getShellCommand(command, options, args);
View Full Code Here

        }
        if (!outSourcesDir.exists()) {
            outSourcesDir.mkdir();
        }
        if (!outResourcesDir.exists()) {
            outResourcesDir.mkdir();
        }

        String command = "wsprovide";
        String options = "-k -w -c " + classesDirUrl.getFile()
                + " -o " + outClassesDir.getAbsolutePath()
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.