Re: Command-Line execution of a third-party task

2012-03-24 Thread Andreas Krey
On Fri, 23 Mar 2012 19:06:38 +, Mike Van wrote: ... > So, I wrote a tool called the Sonar Code Quality Manager (SonarCQM), which > will probably be donated to sonarsource later on this year. That tool scans > a "conf" directory. In that directory, for each build Sonar is doing, there > is one

Re: Command-Line execution of a third-party task

2012-03-23 Thread Mike Van
Stefan, Thats great! I was trying to find a way to programmatically kick off an ant-build anyway. Doing it from the command-line was just a stepping stone. This will allow me to write an "AntInvoker" class for my projects that use ant builds in the same was as I have a MavenBuildInvoker that us

Re: Command-Line execution of a third-party task

2012-03-23 Thread Dominique Devienne
On Fri, Mar 23, 2012 at 2:28 PM, Andy Stevens wrote: > The way I read his original message, Mike just wants to run sonar > against a project with an existing build.xml and was asking about > direct use from the command line only because he isn't able/allowed to > change the build.xml. But I wasn't

Re: Command-Line execution of a third-party task

2012-03-23 Thread Dominique Devienne
On Fri, Mar 23, 2012 at 12:21 PM, Stefan Bodewig wrote: > http://janmaterne.wordpress.com/2008/11/07/ant-javafront-start-ant-tasks-from-the-command-line/ > http://janmaterne.wordpress.com/2008/11/11/ant-javafront-start-ant-tasks-from-the-command-line-2/ I stand corrected Stefan, thanks. And this

Re: Command-Line execution of a third-party task

2012-03-23 Thread Andy Stevens
Hi Dominique, The way I read his original message, Mike just wants to run sonar against a project with an existing build.xml and was asking about direct use from the command line only because he isn't able/allowed to change the build.xml. But I wasn't sure if that applied to just build.xml or was

Re: Command-Line execution of a third-party task

2012-03-23 Thread Stefan Bodewig
On 2012-03-23, Dominique Devienne wrote: > On Fri, Mar 23, 2012 at 3:44 AM, Mike Van wrote: >> How would you execute a third-party-task from the command-line? >> [...] >> Is there a similar mechanism that could be used to pass in a 3rd party >> ant-task as an argument for an ant build along with

Re: Command-Line execution of a third-party task

2012-03-23 Thread Dominique Devienne
On Fri, Mar 23, 2012 at 9:29 AM, Andy Stevens wrote: > Why not just create your own mybuild.xml and run that with ant -f ? > No need to alter the original build.xml, but you could always import it to > take advantage of any initialise targets etc. Note that Mike mentioned executing *tasks* from t

Re: Command-Line execution of a third-party task

2012-03-23 Thread Andy Stevens
Why not just create your own mybuild.xml and run that with ant -f ? No need to alter the original build.xml, but you could always import it to take advantage of any initialise targets etc. Andy. On 23 Mar 2012 02:50, "Mike Van" wrote: > How would you execute a third-party-task from the command-l

Re: Command-Line execution of a third-party task

2012-03-23 Thread Dominique Devienne
On Fri, Mar 23, 2012 at 3:44 AM, Mike Van wrote: > How would you execute a third-party-task from the command-line? > [...] > Is there a similar mechanism that could be used to pass in a 3rd party > ant-task as an argument for an ant build along with its required properties? I don't think there is

Re: Command-Line execution of a third-party task

2012-03-22 Thread Sahan Maldeniya
you can use ant taskdef tag to invoke other 3rd party tools. I have used ant taskdef to invoke hibernatetools once in my project i hope you can get an idea from these articles http://ant.apache.org/manual/Tasks/taskdef.html http://ant.apache.org/manual/develop.html regards. On Fri, Mar 23, 2012