core/src/main/java/org/apache/commons/vfs2/tasks/MkdirTask.java
/**
     * Executes the task.
     * @throws BuildException if an exception occurs.
     */
Executes the task.
@throws BuildException if an exception occurs.
Executes the task . @throws BuildException if an exception occurs .
@Override
    public void execute() throws BuildException
    {
        if (dirName == null)
        {
            final String message = Messages.getString("vfs.tasks/no-directory-specified.error");
            throw new BuildException(message);
        }
        try
        {
            final FileObject dir = resolveFile(dirName);
            final String message = Messages.getString("vfs.tasks/mkdir.create-folder.info", dir);
            log(message);
            dir.createFolder();
        }
        catch (final FileSystemException e)
        {
            throw new BuildException(e);
        }
    }
@ Override public void execute ( ) throws BuildException { if ( dirName == null ) { final String message = Messages . getString ( "vfs.tasks/no-directory-specified.error" ) ; throw new BuildException ( message ) ; } try { final FileObject dir = resolveFile ( dirName ) ; final String message = Messages . getString ( "vfs.tasks/mkdir.create-folder.info" , dir ) ; log ( message ) ; dir . createFolder ( ) ; } catch ( final FileSystemException e ) { throw new BuildException ( e ) ; } }
Executes the task.
Executes the task .