コード例 #1
0
 /** Updates root, jad and jar paths to suite info object. */
 private void updateSuitePaths(InstallBall aBall) {
   aBall.iSuite.setRootDir(
       FileUtils.getAppsRoot() + FileUtils.getAppRootPath(aBall.iSuite.getUid()));
   if (aBall.iJadFilename != null) {
     if (aBall.iPreinstallation) {
       // In preinstallation case use file without copying it to
       // suite root dir.
       aBall.iSuite.setJadPath(aBall.iJadFilename);
     } else {
       // Set jar path to point under suite root dir.
       aBall.iSuite.setJadPath(aBall.iSuite.getRootDir() + FileUtils.getName(aBall.iJadFilename));
     }
   }
   if (aBall.iJarFilename != null) {
     if (aBall.iPreinstallation) {
       // In preinstallation case use file without copying it to
       // suite root dir.
       aBall.iSuite.setJarPath(aBall.iJarFilename);
     } else {
       // Set jar path to point under suite root dir.
       aBall.iSuite.setJarPath(aBall.iSuite.getRootDir() + FileUtils.getName(aBall.iJarFilename));
     }
   }
 }