Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Fix import of models with images on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsarrodie committed Jan 5, 2017
1 parent 2756926 commit d2ecb25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public class MyExporter implements IModelExporter {
static final String FOLDER_XML = "folder.xml";

// Name of folders for model and images
// /!\ IMAGES_FOLDER must match the prefix used in ArchiveManager.createArchiveImagePathname
static final String IMAGES_FOLDER = "images";
static final String MODEL_FOLDER = "model";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ private void loadImages(IArchimateModel fModel, File folder) throws IOException
for (File imageFile: folder.listFiles()) {
if (imageFile.isFile()) {
bytes = Files.readAllBytes(imageFile.toPath());
archiveManager.addByteContentEntry(folder.getName()+File.separator+imageFile.getName(), bytes);
// /!\ This must match the prefix used in ArchiveManager.createArchiveImagePathname
archiveManager.addByteContentEntry("images/" + imageFile.getName(), bytes);
}
}
}
Expand Down

0 comments on commit d2ecb25

Please sign in to comment.