We do need to publish and we don't have the HTTP/HTTPS ports open so I'm
afraid your cron solution won't work for us. I have made quite a bit of
progress coding a SVN Resolver and related classes using the pure Java
SVN Kit library (http://svnkit.com/). I am struggling with what methods
I should implement and what they do, Ivy doesn't seem to be too well
documented in this regard. My classes are getting called with the path
to a file to download with the full SVN URL in a SvnRepository class I
have created via the method
public void get(String source, File destination)
I retrieve the file from SVN and write the file to the destination and
check the file length and it is indeed written, this is a temporary
location though, I'm not sure what happens to it next. Can somebody give
me advice on what classes/methods I should be looking at to get this all
working nicely from within Ivy?
Regards,
Adrian
Matthew Inger wrote:
Adrian,
Do you have a need to publish to the repository?
Do you have the SSH or HTTP/HTTPS port open?
If your answers are no and then yes, you could do the following:
1. Create your SVN repository
2. Checkout a working copy on a machine that will house the ivy repository.
3. Add a cron job (scheduled task if using windows) to do an svn update
on a periodic basis (we do every 5 minutes).
4. Use the built in ssh resolver, or put an apache in front of it, and use
http/https.
----
[EMAIL PROTECTED]
"Once you start down the dark path, forever will it
dominate your destiny. Consume you it will " - Yoda
----- Original Message ----
From: Adrian Woodhead <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, October 1, 2007 11:48:44 AM
Subject: SvnResolver?
Hey Ivy devs,
We are looking at using Ivy to manage dependencies and would like to set
up our own repository but have issues with firewalls where the only port
open between most machines is for Subversion. So ideally we would like a
resolver that uses a Subversion repository so we have everything in one
place. I saw this mentioned on the wiki:
http://wiki.apache.org/ivy/SvnResolver
But as pointed out, it hasn't been updated for 2 years. It doesn't work
with the latest Alpha release of Ivy either (the API seems to have
changed). So I was thinking of writing a new Svn Resolver that uses the
new API but before I start I'd like to make sure nobody else is working
on this? Does anyone have any advice or tips for me? I'd be happy to
donate the code when done.
Regards,
Adrian
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433