How to Automate Build Tasks Across Projects [message #765692] |
Wed, 14 December 2011 14:37 |
Mark Phillips Messages: 8 Registered: November 2011 |
Junior Member |
|
|
Is there a way to capture key strokes in eclipse and run them as a script?
I have three eclipse projects that interact, and I need to clean, build, etc the projects in a certain order. How can I automate this so I click one button and the steps are run?
My tasks;
1. Clean projects A, B, C
2. Build project A
3. Run "java myporgram.main input.txt" in project B (depends on build of A) to create output files in B
4. Build project B (depends on build of project A)
5. Create jar of project B
6. Clean project A
7. Build project A (depends on B.jar)
8. Build project C
9. Run Junit tests in project C
I googled for some answers, and found references to Monkey, which is no longer available, and Ant. However, I am not sure if Ant is what I need, and I have not found a good tutorial that helps with this problem.
Thanks,
Mark
|
|
|
Re: How to Automate Build Tasks Across Projects [message #765772 is a reply to message #765692] |
Wed, 14 December 2011 16:49 |
|
On 14-Dec-11 07:37, Mark Phillips wrote:
> Is there a way to capture key strokes in eclipse and run them as a script?
> I have three eclipse projects that interact, and I need to clean, build,
> etc the projects in a certain order. How can I automate this so I click
> one button and the steps are run?
>
> My tasks;
> 1. Clean projects A, B, C
> 2. Build project A
> 3. Run "java myporgram.main input.txt" in project B (depends on build of
> A) to create output files in B
> 4. Build project B (depends on build of project A)
> 5. Create jar of project B
> 6. Clean project A
> 7. Build project A (depends on B.jar)
> 8. Build project C
> 9. Run Junit tests in project C
>
> I googled for some answers, and found references to Monkey, which is no
> longer available, and Ant. However, I am not sure if Ant is what I need,
> and I have not found a good tutorial that helps with this problem.
>
> Thanks,
>
> Mark
There are a number of approaches, and sometimes religion is involved.
Ant is one of them. I would suggest doing Lars Vogel's tutorial on your
way to deciding.
http://www.vogella.de/articles/ApacheAnt/article.html
I also have a page of rather jumbled personal notes on this topic.
http://www.javahotchocolate.com/tutorials/apache-ant.html
|
|
|
Powered by
FUDForum. Page generated in 0.07856 seconds