private void writePkgInfo() throws BuildException {
  File pkgInfo=new File(mContentsDir,"PkgInfo");
  PrintWriter writer=null;
  try {
    writer=new PrintWriter(new BufferedWriter(new FileWriter(pkgInfo)));
    writer.print(bundleProperties.getCFBundlePackageType());
    writer.println(bundleProperties.getCFBundleSignature());
    writer.flush();
  }
 catch (  IOException ex) {
    throw new BuildException("Cannot create PkgInfo file: " + ex);
  }
 finally {
    mFileUtils.close(writer);
  }
}

private void writePkgInfo ( ) throws BuildException { File pkgInfo = new File ( mContentsDir , "PkgInfo" ) ; PrintWriter writer = null ; try { writer = new PrintWriter ( new BufferedWriter ( new FileWriter ( pkgInfo ) ) ) ; writer . print ( bundleProperties . getCFBundlePackageType ( ) ) ; writer . println ( bundleProperties . getCFBundleSignature ( ) ) ; writer . flush ( ) ; } catch ( IOException ex ) { throw new BuildException ( "Cannot create PkgInfo file: " + ex ) ; } finally { mFileUtils . close ( writer ) ; } }
write the pkginfo file into the application bundle
