You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow to set an alternative source directory (for editing)
Always check if a file is existing before returning true for isEditable
and non-null for getDoxiaSourcePath()/getDoxiaSourcePath(String)
This closes#277
Copy file name to clipboardExpand all lines: doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -198,12 +198,11 @@ public Map<String, DocumentRenderer> locateDocumentFiles(SiteRenderingContext si
198
198
199
199
addModuleFiles(
200
200
siteRenderingContext.getRootDirectory(),
201
+
siteDirectory,
201
202
moduleBasedir,
202
203
module,
203
204
excludes,
204
-
files,
205
-
siteDirectory.isEditable(),
206
-
siteDirectory.isSkipDuplicates());
205
+
files);
207
206
}
208
207
}
209
208
}
@@ -228,32 +227,27 @@ private List<String> filterExtensionIgnoreCase(List<String> fileNames, String ex
228
227
* Populates the files map with {@link DocumentRenderer}s per output name in parameter {@code files} for all files in the moduleBasedir matching the module extensions,
229
228
* taking care of duplicates if needed.
230
229
*
231
-
* @param rootDir
230
+
* @param siteRootDirectory
231
+
* @param siteDirectory
232
232
* @param moduleBasedir
233
233
* @param module
234
234
* @param excludes
235
235
* @param files
236
-
* @param editable
237
-
* @param skipDuplicates
238
236
* @throws IOException
239
237
* @throws RendererException
240
238
*/
241
239
privatevoidaddModuleFiles(
242
-
FilerootDir,
240
+
FilesiteRootDirectory,
241
+
SiteDirectorysiteDirectory,
243
242
FilemoduleBasedir,
244
243
ParserModulemodule,
245
244
Stringexcludes,
246
-
Map<String, DocumentRenderer> files,
247
-
booleaneditable,
248
-
booleanskipDuplicates)
245
+
Map<String, DocumentRenderer> files)
249
246
throwsIOException, RendererException {
250
247
if (!moduleBasedir.exists() || ArrayUtils.isEmpty(module.getExtensions())) {
0 commit comments