TS 71 SeparateCache

Separate cache directory Test Specification for "NetBeans 7.1"

Author: Vibhuti Pithwa
Version: 1.0
Introduction: You may now use --cachedir to specify an alternate location for the var/cache folder of the user directory (--userdir). If your userdir is on a slow or network filesystem, it is a good idea to use a cachedir on a fast local disk.

Soon the Windows launcher will be modified to use standard Windows locations for both the userdir and cachedir, which should behave well with networked profiles.
Comments:

Contents


Test suite: Creating your own cache directory

Purpose: In 7.1 a new command-line option "--cachedir" has been introduced to allow optional separate path for the cache part of user data previously stored in var/cache subfolder in userdir.
Setup: No special setup is needed.

  1. Running NetBeans 7.1 with --cachedir option in command prompt
    1. Go to command prompt and type netbeans.exe --cachedir <directory which you intend to use as the cache directory> for example C:\netbeans.exe --cachedir C:\mycache on Windows or ./netbeans --cachedir ~/netbeans/cache on Unix.
      1. On Windows: netbeans.exe --cachedir <desired-cache-dir>
      2. On Linux: ./netbeans --cachedir <desired-cache-dir>
      3. On Mac: /Applications/NetBeans/NetBeans\ Dev\ 201206050001.app/Contents/MacOS/netbeans --cachedir <desired-cache-dir>
    2. Press Enter to start NetBeans
    3. Invoke Help > About from main menu
    • EXPECTED RESULT: The description in the About dialog box should show: Cache directory: C:\mycache or Cache directory: /home/<your_username>/netbeans/cache
  2. Verifying creation of cache directory
    1. From your respective OS GUI go to the path where you wished to have your cache directory for NetBeans and verify that it is was really created
    • EXPECTED RESULT: The cache directory which you specified must be created if it did not exist before. If desired directory already existed then the same will be used by NetBeans as its cache directory.
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo