> -----Message d'origine-----
> De : David Delbecq [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 19 mars 2008 08:36
> À : Maven Users List
> Objet : Re: Convert SNAPSHOT timestamps from utc to local time
> 
> Just a stupid suggestion:
> 
> Wouldn't it be much easier to either
> 
> 1) Setup the local clock on snapshots generating server to 
> french time and have that server says that is "utc" time? 
> That's a quick and dirty, but it's not like you would have to change

I'm not admin on this server and it is used by lots of other people. So 
changing server time isn't an option :).

> 
> or
> 
> 3) Have people look, when they explore snapshot repository 
> using their web browser, at the "time" column that appear 
> next to file list, which is expressed in server local time afaik.

There's no column for this. However, it might be a feature request for Archiva, 
granted.

> 
> or even better
> 
> 2) Take 10 minute to teach your team members what UTC mean 
> (substract one hour from local time in winter, 2 hours in 
> summer)? It's not like it is difficult calculation to know utc time.

Agreed, though there's a lot of things that are not complex.
But as I said, nobody here ever use UTC (and there's very little chance we are 
going to ever need it). 
This would obviously be possible to teach our developer what UTC is, and how to 
shift the time by themselves.
But I really think this would be useless inside our company.

About the patch, I already got there. The last thing I'm unable to find is how 
to configure plexus to inject some system property.
My code already works using the boolean given by 
Boolean.parseBoolean(System.getProperty("useLocalTime")), apart from this the 
code is very very simple (maybe 5 or 10 lines of modified code maximum).

Btw, do you know what I should do so that plexus would inject the value given 
in -DuseLocalTime in the SnapshotTransformation class below:
    <component>
      <role>org.apache.maven.artifact.transform.ArtifactTransformation</role>
      <role-hint>snapshot</role-hint>
      
<implementation>org.apache.maven.artifact.transform.SnapshotTransformation</implementation>
      <requirements>
        <requirement>
          <role>org.apache.maven.artifact.manager.WagonManager</role>
        </requirement>
        <requirement>
          
<role>org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager</role>
        </requirement>
      </requirements>
    </component>
I tried adding a <configuration>...</configuration> block, but I guess I'm 
missing something and I have been unable to find the right documentation inside 
the plexus doc.

Cheers.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to