File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
java/source/org/libreoffice/ide/eclipse/java Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 4
4
* #72 Fix running javamaker with spaces in project path
5
5
* Load description.xml editor even when locale is missing
6
6
* Remove crashreport service (Service no longer exists)
7
+ * Fix build with empty ` build ` directory
7
8
8
9
## 3.0.0
9
10
* Python support for extension development
Original file line number Diff line number Diff line change @@ -128,6 +128,13 @@ public IFile createLibrary(IUnoidlProject pUnoProject) throws Exception {
128
128
129
129
IFolder buildDir = pUnoProject .getFolder (pUnoProject .getBuildPath ());
130
130
buildDir .accept (visitor );
131
+
132
+ // Adding the source directory is not strictly necessary
133
+ // (and it has practically no impact on the generated jar).
134
+ // But if the build path is empty, the build fails.
135
+ // So the contract seems to be that setElements must be called with a non-empty list of files.
136
+ IFolder sourceDir = pUnoProject .getFolder (pUnoProject .getSourcePath ());
137
+ sourceDir .accept (visitor );
131
138
description .setElements (visitor .getFiles ());
132
139
133
140
// Create the Jar file
You can’t perform that action at this time.
0 commit comments