Re: Executing java code during build

2006-07-17 Thread Alexander Rau
Yeah, in principle you are absolutely right. However I just need to execute the main method of a specific class without any additional arguments. That's a pretty generic functionality and the exec plugin proposed by Tim Kettler does the job. I tried to write my own plugin and so far it could

Re: Executing java code during build

2006-07-17 Thread Alexander Rau
Tnx for the hint ! That's what I need. Regards, Alex Tim Kettler wrote: Hi, perhaps the exec-maven-plugin [1] is what you want? -Tim [1] http://mojo.codehaus.org/exec-maven-plugin/ Alexander Rau schrieb: Hi all, I need to run a custom java class for generating some stubs. How can I

Re: Executing java code during build

2006-07-17 Thread Kenney Westerhof
On Mon, 17 Jul 2006, Alexander Rau wrote: Yeah, in principle you are absolutely right. However I just need to execute the main method of a specific class without any additional arguments. That's a pretty generic functionality and the exec plugin proposed by Tim Kettler does the job. Ah ok..

Re: Executing java code during build

2006-07-16 Thread Kenney Westerhof
On Sat, 15 Jul 2006, Tim Kettler wrote: Hi, This is exactly what plugins are for. I suggest you write a small plugin - a simple Mojo that calls your custom java code should do the trick. See http://maven.apache.org/guides/plugin/guide-java-plugin-development.html -- Kenney Hi, perhaps the

Executing java code during build

2006-07-15 Thread Alexander Rau
Hi all, I need to run a custom java class for generating some stubs. How can I integrate something like that into a pom.xml ? This should be similar to the antrun plugin except that it's java code I want to execute. I've seen that it could be possible by using antrun itself, however a more

Re: Executing java code during build

2006-07-15 Thread Tim Kettler
Hi, perhaps the exec-maven-plugin [1] is what you want? -Tim [1] http://mojo.codehaus.org/exec-maven-plugin/ Alexander Rau schrieb: Hi all, I need to run a custom java class for generating some stubs. How can I integrate something like that into a pom.xml ? This should be similar to the