You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Laszlo Kishalmi (JIRA)" <ji...@apache.org> on 2018/09/29 02:07:00 UTC
[jira] [Resolved] (NETBEANS-975) Template Wizard does not create
files on config FS
[ https://issues.apache.org/jira/browse/NETBEANS-975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Laszlo Kishalmi resolved NETBEANS-975.
--------------------------------------
Resolution: Fixed
Fix Version/s: 10.0
Resolved as the corresponding PR has been merged.
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 10.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> 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