forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRake.java
More file actions
24 lines (18 loc) · 664 Bytes
/
Copy pathRake.java
File metadata and controls
24 lines (18 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.jruby.ant;
import java.util.List;
import org.apache.tools.ant.BuildException;
public class Rake extends RakeTaskBase {
private String taskname; // A list?
@Override
public void execute() throws BuildException {
super.execute();
List args = handleFilenameArgument();
if (taskname != null) args.add(taskname);
rakeMethod("execute", args.toArray(new Object[args.size()]));
}
// FIXME?: Allow list of tasks to be executed
public void setTask(String taskname) {
this.taskname = taskname;
}
// FIXME: Add flag to allow registering all defined ant tasks in Rake dependency tree?
}