equal
deleted
inserted
replaced
101 this.classpath = Arrays.asList(classpath); |
101 this.classpath = Arrays.asList(classpath); |
102 return this; |
102 return this; |
103 } |
103 } |
104 |
104 |
105 /** |
105 /** |
|
106 * Sets the classpath. |
|
107 * @param classpath the classpath |
|
108 * @return this task object |
|
109 */ |
|
110 public JavacTask classpath(List<Path> classpath) { |
|
111 this.classpath = classpath; |
|
112 return this; |
|
113 } |
|
114 |
|
115 /** |
106 * Sets the sourcepath. |
116 * Sets the sourcepath. |
107 * @param sourcepath the sourcepath |
117 * @param sourcepath the sourcepath |
108 * @return this task object |
118 * @return this task object |
109 */ |
119 */ |
110 public JavacTask sourcepath(String sourcepath) { |
120 public JavacTask sourcepath(String sourcepath) { |
124 this.sourcepath = Arrays.asList(sourcepath); |
134 this.sourcepath = Arrays.asList(sourcepath); |
125 return this; |
135 return this; |
126 } |
136 } |
127 |
137 |
128 /** |
138 /** |
|
139 * Sets the sourcepath. |
|
140 * @param sourcepath the sourcepath |
|
141 * @return this task object |
|
142 */ |
|
143 public JavacTask sourcepath(List<Path> sourcepath) { |
|
144 this.sourcepath = sourcepath; |
|
145 return this; |
|
146 } |
|
147 |
|
148 /** |
129 * Sets the output directory. |
149 * Sets the output directory. |
130 * @param outdir the output directory |
150 * @param outdir the output directory |
131 * @return this task object |
151 * @return this task object |
132 */ |
152 */ |
133 public JavacTask outdir(String outdir) { |
153 public JavacTask outdir(String outdir) { |
180 * @param files the files |
200 * @param files the files |
181 * @return this task object |
201 * @return this task object |
182 */ |
202 */ |
183 public JavacTask files(Path... files) { |
203 public JavacTask files(Path... files) { |
184 this.files = Stream.of(files) |
204 this.files = Stream.of(files) |
|
205 .map(Path::toString) |
|
206 .collect(Collectors.toList()); |
|
207 return this; |
|
208 } |
|
209 |
|
210 /** |
|
211 * Sets the files to be compiled or analyzed. |
|
212 * @param files the files |
|
213 * @return this task object |
|
214 */ |
|
215 public JavacTask files(List<Path> files) { |
|
216 this.files = files.stream() |
185 .map(Path::toString) |
217 .map(Path::toString) |
186 .collect(Collectors.toList()); |
218 .collect(Collectors.toList()); |
187 return this; |
219 return this; |
188 } |
220 } |
189 |
221 |