Ant task support (Feature #176)


Added by Sujit Kamthe over 4 years ago. Updated over 3 years ago.


Status:Feedback Start date:08/25/2012
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Build Process Spent time: -
Target version:1.9

Description

There is no support for ANT builder task.
It will be very handy if ANT builder support is added.

Currently I am using ant script through batch files and calling the batch file using exec task.
This will help developers working in ant environment.


AntTask.cs (18.3 kB) Kevin Fernandes, 01/09/2014 07:25 pm


History

Updated by Ruben Willems over 4 years ago

wouldn't CruiseControl not be better in that case?
laying some kind of reference to a JAVA runtime from .Net seems weird to me

I do not have any Ant knowledge, but if you can provide a task for it, we can look into incorporating it
tasks and publishers have the same base class
for more info look at DevInfo_MakingPlugins, at the bottom of the page are links to detailed examples

  • Status changed from New to Feedback

Updated by Sujit Kamthe over 4 years ago

I will try to write the ANT task. :)

Updated by Kevin Fernandes over 3 years ago

Has there been any update on this request? I could really use this as well. We have .Net products that call into Java code (as separate processes) and so I need to be able to build both .Net and Java code, having the builds done by one server would be ideal. I currently use a Powershell script to do this but full integration would be much nicer.

There are two main differences that I can see so far between the NAnt task and what would be an "Ant" task. First, the command line does not support ":" between the flag and the argument - I can get around this by specifying the complete set of arguments in the "buildArgs" property of the NAnt task. The second issue is the logger and the listener, Ant wants a Java based logger and listener, which obviously is not built into CCNet. I can get around this by specifying empty parameters for these two properties. The final hurdle though is the hard coded "logfile" parameter - this I cannot workaround at the moment.

Updated by Kevin Fernandes over 3 years ago

Kevin Fernandes wrote:

Has there been any update on this request? I could really use this as well. We have .Net products that call into Java code (as separate processes) and so I need to be able to build both .Net and Java code, having the builds done by one server would be ideal. I currently use a Powershell script to do this but full integration would be much nicer.

There are two main differences that I can see so far between the NAnt task and what would be an "Ant" task. First, the command line does not support ":" between the flag and the argument - I can get around this by specifying the complete set of arguments in the "buildArgs" property of the NAnt task. The second issue is the logger and the listener, Ant wants a Java based logger and listener, which obviously is not built into CCNet. I can get around this by specifying empty parameters for these two properties. The final hurdle though is the hard coded "logfile" parameter - this I cannot workaround at the moment.

EDIT: (Attached) I created this class based on the NAnt task. It works but I had to make several modifications to original NAnt code, so it does not work exactly like the NAnt task. Maybe someone might find it useful.

Also available in: Atom PDF