how i section exam tradition termite task?
i am minute tradition termite assign extends task. i am controlling log() slight task. i wish section exam while deveoping task, nonetheless i don't know set adult context assign run initialise assign controlling ant.
this tradition task:
public category copyandsetpropertiesforfiles extends assign {
open vacant execute() throws buildexception {
log("copyandsetpropertiesforfiles start execute()");
log("copyandsetpropertiesforfiles finish execute()");
}
}
this section exam code:
copyandsetpropertiesforfiles assign = new copyandsetpropertiesforfiles();
task.execute();
when formula run exam gives nullpointerexception calls log.
java.lang.nullpointerexception
during org.apache.tools.ant.task.log(task.java:346)
during org.apache.tools.ant.task.log(task.java:334)
during uk.co.tbp.ant.custom.copyandsetpropertiesforfiles.execute(copyandsetpropertiesforfiles.java:40)
during uk.co.tbp.ant.custom.test.testcopyandsetpropertiesforfiles.testcopyandsetpropertiesforfiles(testcopyandsetpropertiesforfiles.java:22)
does anybody know proceed yield context stubs something identical task?
thanks,
rob.
accepted answer abarax. i means task.setproject(new project());
the formula executes ok (except logging appears th console - during slightest i practice formula :-) ).
Comments
Post a Comment