Okay, here's a somewhat manual solution:

Before doing anything else, create a "site" branch in your subversion 
repository and check it out into a directory outside your project's directory, 
say "myproject-site".

Set the auto-props in your subversion config file to set *.html, *.css, *.png, 
*.gif, and *.jpeg files (at least) to their appropriate mime types.

For each release, generate your site docs and then rsync them to the 
"myproject-site" directory. This should be committable in a reasonable time 
frame. Doing an rsync where files get deleted should make sure that the files 
in the svn repo are always clean.

The biggest disadvantage I see to this is that Google Code doesn't display the 
index.html file in a directory when you browse to the directory, and why should 
it? It's a subversion repo, not a web page server. So you have to add the 
"/index.html" to your site docs in references to directories, including the 
top-level directory.

I've deployed this the first time and it seemed to work. I haven't tried 
changes yet.

It looks as if GitHub has a nicer built-in solution, though it has some 
issues...

Anyway, there's no reason an svn wagon couldn't do something like this. But the 
one on java.net took forever. It looked as if each file was a separate commit.

I did my initial commit via Eclipse, and while it took quite a bit longer than 
using the ssh wagon, it was just a few minutes. Not hours, as with the svn 
wagon.

Any comments? Given the number of code hosting sites without ssh access, this 
seems like an area for further development.

-K

On Mar 24, 2010, at 4:59 PM, Kathryn Huxtable wrote:

> Yes, there's that, but I was willing to write something that set those after 
> the fact. -K
> 
> On Mar 24, 2010, at 4:56 PM, lukewpatterson wrote:
> 
>> 
>> 
>> justinedelson wrote:
>>> 
>>> Did you look at wagon-svn?
>>> 
>> 
>> wagon-svn would be great but it doesn't support mime-type auto-props, which
>> is crucial for site deployment
>> 
>> https://wagon-svn.dev.java.net/issues/show_bug.cgi?id=4
>> -- 
>> View this message in context: 
>> http://old.nabble.com/Deploying-site-to-svn-repo-%28google-code%29-tp28020109p28021955.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to