Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6756117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:29:10+00:00 2026-05-26T13:29:10+00:00

I’ve built a set of generic deployment scripts which work great for the majority

  • 0

I’ve built a set of generic deployment scripts which work great for the majority of our stuff. We’ve just however introduced our largest project to the setup and we’re now finding times are far too varied and long for our liking.

The project size as it stands is 33,226files at a size of 400Mb plus. Times are currently taking between 13mins & 55mins (the last deployments time) depending on certain decisions made by ANT ( more below ).

In terms of the steps we currently do the following on x2 servers:-

1) ANT exports the project from SVN to both servers (made up of 3 parts).

2) It begins to shutdown the Web Services on Server #1.
This was the workaround we put in to stop Windows (2003) file locking failing the deployment.

3) ANT runs a “move” task on the current version (all parts) into temporary folders & moves the exported new version into its place.

4) Customised deployment code is run – one part being to move permanant features from the temporary folder into the new (i.e system files / Web Server Admin tools).

5) Delete the temporary folder.

6) Bring the Web Services back online

… rinse and repeat for the 2nd server steps 2 -> 6.

7) Save the ANT logs.

The main issue I’m having is that the ANT move task seems to make one of two decisions. It either:

a) Very simply swaps the versions over and moves on – taking a minute or two to handling it or
b) Goes through some kind of integrity check that it moves every file and folder from one place to the other. This floods the logs and takes a fair length of time to complete. Hence the 40+ minutes extra added on.

I can’t find anything online that explains what causes ANT/OS to make that decision. Option A would be the ideal full-time situation.

I’ve tried copy, delete separately. I’ve tried the sync task. All seem to have this slow performance.

So really I’m asking what others with more experienced than me do with deployments of this scale. Do you have any hints / tips on how I could improve / speed this process up? Any ideas what the move is doing and if there is maybe a better way of doing all this?

Thanks a lot,
James

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:29:11+00:00Added an answer on May 26, 2026 at 1:29 pm

    Thanks for the input all.

    Just to add an answer to this one I’ve made the following changes which seem to have knocked a few minutes of it.

    The first one was I’ve changed how the swapping happens off the back of the comment I mentioned before. It seems that ANT will try and do the following :-

    “If the target directory does not already exist, Ant will do a rename of the directory. But if the target directory exists, it instead does a copy into the directory and delete from the source directory instead.”

    I think what’s happened is ANT is trying to put the new version in before the old version has been completely removed. So instead of trying to rename the old I’ve now moved it into a temporary folder and deleted this at the end of the build. That seems to have stabled things on that front.


    A few other things I’ve added to make ANT a bit smart 🙂

    1) I’ve set it up so ANT will not deploy any part of the build that is the same as what currently exists. So if part 1 is selected and that’s on the Test environment already then it’s removed from the build and SVN exports.

    2) With the service shutdown / startup I’ve got ANT reading the response that comes back. If a service tells it that it’s already started when calls, as sometimes happens if a service relies on others Windows automatically boots them up, then I’ve told ANT to hang around and move onto the next one.


    Little steps like that seem to have improved things by a fair bit. I’d like to still try and get more out of them but these certaintly have given them a big step.

    Thanks again,
    James

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have an autohotkey script which looks up a word in a bilingual dictionary
I have an array which has BIG numbers and small numbers in it. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.