Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to Automate Build Tasks Across Projects(How can I automate some build tasks across several projects?)
How to Automate Build Tasks Across Projects [message #765692] Wed, 14 December 2011 09:37 Go to next message
Mark Phillips is currently offline Mark Phillips
Messages: 6
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 11:49 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3136
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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
Previous Topic:Having problem creating SQL database.
Next Topic:change language
Goto Forum:
  


Current Time: Wed Jul 30 17:20:44 EDT 2014

Powered by FUDForum. Page generated in 0.02353 seconds