Building
To build a project you need to have at least 3 things, an ivy repository, the build project and the project you want to build.
Building
If you want to build ano-util for example, you need to checkout the 3 projects:
cd <projecthome> svn co svn://svn.anotheria.net/opensource/ivy-shared-repository svn co svn://svn.anotheria.net/opensource/build/trunk build svn co svn://{user.name}@svn.anotheria.net/opensource/ano-util/trunk ano-util cd ano-util ant dist
Publishing
In order to make your changes in the repository visible to all you have to publish it to the repository.
The publish tags does it for you.
ant publish
In order for the publishing to work you need to submit a valid svn account. There are multiple possibilities to do it:
Properties
You can specify your username and password, as well as a commit message via java property:
ant -Dsvn.username=username -Dsvn.password=password -Dsvn.publish.message="Custom publish message" publish
Configuration.
Alternatively you can specify your username and password in the file private.xml in the config folder of the build project:
<project name="private"> <!-- Change following properties to commit in your name, but DO NOT commit the file --> <property name="svn.username" value="username"/> <property name="svn.password" value="password/> </project>
Please DO NOT COMMIT this file, because the default checkout shouldn't contain any valid usernames.
Local testing
If you want to test a jar in another project you can do it by publishing it locally, to the ivy-local-repository.
ant publish.local
Note this is yet untested
Do's and Don'ts
- Please do not commit lib, dist, build orders.
- If you are creating a new project, you will need to manually add by using svn add it to the svn repository after initial publish (ant publish only commits existing projects).
- Please do not leave your luggage unattended at any time.