Code example for File

Methods: toURI

0
description.setLocation( null );
        } 
        else 
        { 
            description.setLocationURI( projectDir.toURI() );
        } 
 
        newProject.create( description, monitor );
        newProject.open( monitor );
    } 
 
    private static void updateProjectContents( File projectDir, NewLiferayAndroidProjectOp op )
        throws FileNotFoundException, IOException 
    { 
        File dotProject = new File( projectDir, ".project" );
 
        FileUtil.searchAndReplace( dotProject, "<name>sample-android-app</name>", "<name>" +
            op.getProjectName().content() + "</name>" );
 
        File androidManfest = new File( projectDir, "AndroidManifest.xml" );