[jboss-jira] [JBoss JIRA] Created: (JBVFS-167) Allow the temp directory to be set on the TempFileProvider

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Thu Oct 21 06:23:54 EDT 2010


Allow the temp directory to be set on the TempFileProvider
----------------------------------------------------------

                 Key: JBVFS-167
                 URL: https://jira.jboss.org/browse/JBVFS-167
             Project: JBoss VFS
          Issue Type: Task
      Security Level: Public (Everyone can see)
    Affects Versions: 3.0.0.CR5
            Reporter: Thomas Diesler
            Assignee: John Bailey


In OSGi we would like to store the VFS temp files that relate to bundle deployments in the persistent bundle storage area which is maintained by the Framework across Framework instances. 

Currently this can only be configured via system props

    static {
        String configTmpDir = System.getProperty(JBOSS_TMP_DIR_PROPERTY);
        if (configTmpDir == null)
            configTmpDir = System.getProperty(JVM_TMP_DIR_PROPERTY);
        try {
            TMP_ROOT = new File(configTmpDir, "vfs");
            TMP_ROOT.mkdirs();
        }
        catch (Exception e) {
            throw new RuntimeException("Can't set up temp file provider", e);
        }
    }


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list