]
Barry LaFond resolved TEIIDDES-2356.
------------------------------------
Resolution: Done
converted selected IFile to Java FILE before setting file path text field
Import DDL file from workspace location does not work. File not
found
---------------------------------------------------------------------
Key: TEIIDDES-2356
URL:
https://issues.jboss.org/browse/TEIIDDES-2356
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export, Patch Release
Affects Versions: 8.6
Reporter: Barry LaFond
Assignee: Barry LaFond
Fix For: 8.7, 8.6.1
Trying to import a DDL file from a workspace location cannot find the designated file.
The workspace relative path is shown and stored in the DdlImporter and combo-box text,
however, the importer expects an existing Java File location.
Need to convert the selected IResource/IFile to a file and use that path instead:
>>> final File realFile = choice.getLocation().toFile();