You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (JIRA)" <ji...@apache.org> on 2018/06/22 09:02:00 UTC

[jira] [Created] (NETBEANS-975) Template Wizard does not create files on config FS

Svatopluk Dedic created NETBEANS-975:
----------------------------------------

             Summary: Template Wizard does not create files on config FS
                 Key: NETBEANS-975
                 URL: https://issues.apache.org/jira/browse/NETBEANS-975
             Project: NetBeans
          Issue Type: Bug
          Components: platform - Data Systems
            Reporter: Svatopluk Dedic
            Assignee: Svatopluk Dedic


I wanted to use the
{noformat}
o.o.loaders.TemplateWizard{noformat}
to create some files on config FS. I have vound that when the Wizard completes, the resulting FileObject is placed correctly, but comes from the underlying physical filesystem. Then checks like the following fail:

 
{code:java}
wizard.setTargetFolder(DataFolder.findFolder(FileUtil.getConfigFile("scripts"));
Set<DataObject> result = wizard.instantiate();
FileObject fo = result.iterator().next().getPrimaryFile();
FileObject cfRoot = FileUtil.getConfigRoot(); 
if (FileUtil.isParentOf(cfRoot, fo)) {
  // never reached
}
{code}
 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists