10

Does "SVN" checkout put a build.xml file within the folder that is chosen?

Currently, I do not have permissions to the SVN repository. So I thought that I might just skip the SVN checkout step and proceed with the build. But I am getting an error that says Build.xml file does not exist. Is this build.xml file provided once the SVN checkout is performed?

1
  • 3
    Wow.. where to begin... build.xml should be part of the code. What are you building if you haven't done the checkout yet? Svn is just a Revision Control system. build.xml is the Ant build file.
    – Gus
    Commented Dec 27, 2012 at 17:30

2 Answers 2

14

svn checkout checks out (retrieves) a working copy of the repository into the specified folder. If you don't have access to the repository, and there's not already a current copy of the source in the folder, you can't possibly do a build.

If there is a current copy of the source there, it should include build.xml.

If you had access to the repository, svn checkout would only retrieve a copy of build.xml if there was one in the repository for the copy being checked out. In other words, it won't magically add a build.xml if one doesn't exist in the repository.

2
  • Hope it's not a problem to insert this question here, rather than ask new question. So I should use Checkout instead of Export to pull down a repository to my disk (even if I only intend on changing a small folder within that structure)? Commented Feb 24, 2015 at 22:18
  • @NealWalters: Yes, if you intend to check those changes back in later. (You should read the SVN book (Google it), which is free. It provides a lot of detail and some practical examples for most SVN activities and uses.)
    – Ken White
    Commented Feb 24, 2015 at 22:43
1

Ant is an XML based configuration tool that is used for build automation (Compiling sources and packaging binaries). Build.xml is the major control section that has the information of all the tasks that have to be done automatically in sequence. Build.bat or sh + Build properties is just a script file that prepares the system environment before build tasks are executed.

Now this whole thing along with the application sources are maintained in any version control system on a central server(SVN,CVS...)

When a developer wanted to build and package the applcication on his local system .. he should perform an SVN Checkout / SVN Update of the root folder that has sources and build scripts. Usually the latest version will be checkout.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.