Search code examples
eclipsesvnanteclipse-pluginsvncommit

Customize Ant script and Subversion Commands and Scripts for automating a process


I want to do the following by customizing an Ant script or Ant XML and SVN commands. I have four projects in an Eclipse workspace. I'm using Eclipse Indigo and I'm using Java EE.

I have four projects a,b,c,d of Java web applications and Java web services. I want to automate the following process:

1.Get update from svn for All a,b,c,d project.
2.clean all four project.
3.Build all four project.
4.make jar of project d and export into lib of project b.
5.Build b project.
6.make jar of project c and export into lib of project a.
7.Build a project.
8.Make ab.war archive of project a and b and put into specified location(i.e. c:\xyz\)
9.Then I want to commit this ab.war archive to a particular svn location or tag it (for read-only).

How I can accomplish that?


Solution

  • First read this Ant tutorial. Then see my comments below...

    1.Get update from svn for All a,b,c,d project.

    9.Then I want to commit this ab.war archive to a particular svn location or tag it (for read-only).

    You can try SVNAnt or just make external calls with <exec>.

    2.clean all four project.

    <delete>

    3.Build all four project.

    5.Build b project.

    7.Build a project.

    <javac>

    4.make jar of project d and export into lib of project b.

    6.make jar of project c and export into lib of project a.

    <jar>, <copy>

    8.Make ab.war archive of project a and b and put into specified location(i.e. c:\xyz)

    <war>, <copy>