File tree 3 files changed +17
-3
lines changed
asciidoctorj-api/src/main/java/org/asciidoctor
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ Improvement::
21
21
* Upgrade to asciidoctorj-diagram 2.2.4 (#1140)
22
22
* Upgrade to jruby 9.3.10.0 (#1138) (@alexlevinfr)
23
23
24
+ Bug Fixes::
25
+ * Fix destinationDir not having effect. Deprecate destinationDir in favour of toDir (@abelsromero) (#853, #941)
26
+
24
27
Build / Infrastructure::
25
28
26
29
* Replace use of deprecated 'numbered' attribute by 'sectnums' (#1127) (@abelsromero)
Original file line number Diff line number Diff line change 1
1
package org .asciidoctor ;
2
2
3
+ import java .io .File ;
3
4
import java .io .OutputStream ;
4
5
import java .util .ArrayList ;
5
6
import java .util .Arrays ;
@@ -171,6 +172,14 @@ public void setCompact(boolean compact) {
171
172
this .options .put (COMPACT , compact );
172
173
}
173
174
175
+ /**
176
+ * Destination output directory.
177
+ *
178
+ * @param destinationDir
179
+ * destination directory.
180
+ * @deprecated Use {@link #setToDir(String)} instead.
181
+ */
182
+ @ Deprecated
174
183
public void setDestinationDir (String destinationDir ) {
175
184
this .options .put (DESTINATION_DIR , destinationDir );
176
185
}
Original file line number Diff line number Diff line change @@ -305,13 +305,15 @@ public OptionsBuilder parseHeaderOnly(boolean parseHeaderOnly) {
305
305
306
306
/**
307
307
* Destination output directory.
308
- *
308
+ *
309
309
* @param destinationDir
310
- * destination directory.
310
+ * destination directory.
311
311
* @return this instance.
312
+ * @deprecated Use {@link #toDir(File)} instead.
312
313
*/
314
+ @ Deprecated
313
315
public OptionsBuilder destinationDir (File destinationDir ) {
314
- this .options .setDestinationDir (destinationDir .getAbsolutePath ());
316
+ this .options .setToDir (destinationDir .getAbsolutePath ());
315
317
return this ;
316
318
}
317
319
You can’t perform that action at this time.
0 commit comments