You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Schuerig <mi...@schuerig.de> on 2005/01/17 21:37:25 UTC

Automatically generating download links

I'd like to put a section with download links on the generated site's 
index page. For the time being, I only need a link to the latest 
snapshot. Preferrably in a form that remains valid over time. What I 
have in mind is a link to mycomponent-latest.jar (or something) which 
gets redirected to, say, mycomponent-20050117.200534.jar.

My current non-solution is that I have a file 
xdocs/mycomponent-latest.html containing the redirection stuff with a 
placeholder (@DSTAMP@) tag. The file gets copied to the right place by 
Maven, but I still have to manually change the placeholder to the 
actual value. Is there a way to automate this task or achieve my goal 
in another way?

Michael

-- 
Michael Schuerig                            This is not a false alarm
mailto:michael@schuerig.de                         This is not a test
http://www.schuerig.de/michael/                      --Rush, Red Tide

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


Re: Automatically generating download links

Posted by Michael Schuerig <mi...@schuerig.de>.
On Monday 17 January 2005 23:32, Brett Porter wrote:
> You'd need to set a filter using the snapshot's version (I'm not sure
> if that property is even exposed though), and copy with filtering
> turned on before publishing the site.

Thanks, I'll have a look. If nothing helps, I can always fall back to 
ant.

> Here's another thought: why not SSI/IFRAME the *-snapshot-version
> file directly from the repository? site does not need republishing to
> be up to date then.

The project is not yet ready to be put in an official repository. It's 
just a collection of my utility classes and its undergoing frequent and 
sometimes rampant changes. I'll see if I can set up a repository on my 
own site.

> Or another one: why do you need to know the version at all? Why not
> just use the SNAPSHOT indicator?

I want versions to be identifiable by the name of the jar.

Thanks for your suggestions.

Michael

-- 
Michael Schuerig                            This is not a false alarm
mailto:michael@schuerig.de                         This is not a test
http://www.schuerig.de/michael/                      --Rush, Red Tide

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


Re: Automatically generating download links

Posted by Brett Porter <br...@gmail.com>.
You'd need to set a filter using the snapshot's version (I'm not sure
if that property is even exposed though), and copy with filtering
turned on before publishing the site.

Here's another thought: why not SSI/IFRAME the *-snapshot-version file
directly from the repository? site does not need republishing to be up
to date then.

Or another one: why do you need to know the version at all? Why not
just use the SNAPSHOT indicator?

- Brett


On Mon, 17 Jan 2005 21:37:25 +0100, Michael Schuerig
<mi...@schuerig.de> wrote:
> 
> I'd like to put a section with download links on the generated site's
> index page. For the time being, I only need a link to the latest
> snapshot. Preferrably in a form that remains valid over time. What I
> have in mind is a link to mycomponent-latest.jar (or something) which
> gets redirected to, say, mycomponent-20050117.200534.jar.
> 
> My current non-solution is that I have a file
> xdocs/mycomponent-latest.html containing the redirection stuff with a
> placeholder (@DSTAMP@) tag. The file gets copied to the right place by
> Maven, but I still have to manually change the placeholder to the
> actual value. Is there a way to automate this task or achieve my goal
> in another way?
> 
> Michael
> 
> --
> Michael Schuerig                            This is not a false alarm
> mailto:michael@schuerig.de                         This is not a test
> http://www.schuerig.de/michael/                      --Rush, Red Tide
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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