Skip to main content


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 14:37 Go to next message
Mark Phillips is currently offline Mark PhillipsFriend
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 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
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: Tue Apr 16 07:46:33 GMT 2024

Powered by FUDForum. Page generated in 0.44465 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top