This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes How to create automatic release with ant and subversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How to create automatic release with ant and subversion" Watch "How to create automatic release with ant and subversion" New topic
Author

How to create automatic release with ant and subversion

Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
Hi all,

I have jsp/servlet project and would like create a ant task for automatic release.

it will work (steps):

1. create zip file that contains all changed files until last release.
2. create a file changelog.
3. write the data of release.

I use Subversion and SvnTasks...

it is possible execute these steps by ant ?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32481
    
214

Alex,
Yes it is possible. What do you have so far?


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
Originally posted by Jeanne Boyarsky:
Alex,
Yes it is possible. What do you have so far?


ok, thanks.

I will try be more specifics:

the problem is I need automate my release process, today I make the process by hand all weeek.

basically I have do at normal release:

1. update an central repository.
2. make svn export (exclude .svn files).
3. exclude some files(folder images), but I send all files...
4. zip the folder
5. send by ftp to server
6. in the server I unzip the file and replace the folder

now I would like automate this process.

I already create some tasks but I have some questions...

this some targets...



<!-- RELEASE TARGET -->


My problem is that I not understand how I can create zip file with the diff from last release.

someone have any idea ?

thanks a lot.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to create automatic release with ant and subversion
 
jQuery in Action, 3rd edition