Skip to content

Commit

Permalink
Fix #58 Build fails without idl/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
smehrbrodt committed Jul 11, 2017
1 parent 6acd9c7 commit bd115eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ public static void buildIdl(IUnoidlProject pProject, IProgressMonitor pMonitor)

// compile each idl file
IFolder idlFolder = pProject.getFolder(pProject.getIdlPath());
idlFolder.accept(new IdlcBuildVisitor(pMonitor));
if (idlFolder.exists())
idlFolder.accept(new IdlcBuildVisitor(pMonitor));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ public static UnoPackage createMinimalUnoPackage(IUnoidlProject pPrj, File pDest
File prjFile = SystemHelper.getFile(pPrj);

// Add content to the package
unoPackage.addTypelibraryFile(UnoPackage.getPathRelativeToBase(libFile, prjFile), libFile); //$NON-NLS-1$
if (libFile.exists())
unoPackage.addTypelibraryFile(UnoPackage.getPathRelativeToBase(libFile, prjFile), libFile); //$NON-NLS-1$
pPrj.getLanguage().getLanguageBuidler().fillUnoPackage(unoPackage, pPrj);

return unoPackage;
Expand Down

0 comments on commit bd115eb

Please sign in to comment.