[英]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. 我想通过定制Ant脚本或Ant XML和SVN命令来执行以下操作。 I have four projects in an Eclipse workspace. 我在Eclipse工作区中有四个项目。 I'm using Eclipse Indigo and I'm using Java EE. 我正在使用Eclipse Indigo和Java EE。
I have four projects a,b,c,d of Java web applications and Java web services. 我有四个Java Web应用程序和Java Web服务项目a,b,c,d。 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? 我该如何做到?
First read this Ant tutorial . 首先阅读此Ant教程 。 Then see my comments below... 然后在下面看到我的评论...
1.Get update from svn for All a,b,c,d project. 1.从svn获取所有a,b,c,d项目的更新。
9.Then I want to commit this ab.war archive to a particular svn location or tag it (for read-only). 9,然后我要将这个ab.war归档提交到特定的svn位置或对其进行标记(只读)。
You can try SVNAnt or just make external calls with <exec>
. 您可以尝试SVNAnt或仅使用<exec>
进行外部调用。
2.clean all four project. 2.清理所有四个项目。
3.Build all four project. 3.构建所有四个项目。
5.Build b project. 5,建立b项目
7.Build a project. 7.构建一个项目。
4.make jar of project d and export into lib of project b. 4.制作项目d的jar并导出到项目b的lib中。
6.make jar of project c and export into lib of project a. 6.制作项目c的jar并导出到项目a的lib中。
8.Make ab.war archive of project a and b and put into specified location(ie c:\\xyz) 8.制作项目a和b的ab.war档案,并放入指定位置(即c:\\ xyz)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.