[Contrib: Evaluation System] EVALSYS APP VERSION in admin page footer
David Horwitz
david.horwitz at uct.ac.za
Thu Jun 2 10:42:24 PDT 2011
This is the entry in the kernel component-manager pom that writes the
kernel version:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<tasks>
<echo message="version.kernel=${project.version}${line.separator}"
file="${project.build.outputDirectory}/org/sakaiproject/config/version.properties"
/>
<tstamp>
<format property="timestamp" pattern="dd/MM/yyyy HH:mm:ss Z" />
</tstamp>
<echo message="buildTime.kernel=${timestamp}"
file="${project.build.outputDirectory}/org/sakaiproject/config/version.properties"
append="true" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
On 06/02/2011 07:30 PM, Matthew Jones wrote:
> They *used* to use a shell script added in
> (https://jira.sakaiproject.org/browse/GRBK-394)
>
> Now they're just using a static file "VERSION.txt"
> (https://jira.sakaiproject.org/browse/GRBK-710)
>
> Though I'd supported the ant task that took care of the shell script
> and the versioning (https://jira.sakaiproject.org/browse/GRBK-521)
>
> This has to be set somehow while maven is running though, because this
> information is lost afterward. It would be nice to do it automatically
> though.
>
> On Thu, Jun 2, 2011 at 1:14 PM, Jim Eng <jimeng at umich.edu
> <mailto:jimeng at umich.edu>> wrote:
>
> GB2 uses an ant-task in their build process to move a file
> containing the version info into a place where it can be accessed
> by the class loader.
>
> Jim
>
>
> On Jun 2, 2011, at 12:57 PM, Jim Eng wrote:
>
>> Three items are shown in the footer:
>> EvalConstants.APP_VERSION, EvalConstants.SVN_REVISION and EvalConstants.SVN_LAST_UPDATE.
>>
>>
>> The values
>> of EvalConstants.SVN_REVISION and EvalConstants.SVN_LAST_UPDATE
>> come from the svn metadata. The value
>> of EvalConstants.APP_VERSION is hard-coded. We could
>> change EvalConstants.APP_VERSION to show the svn URL, which
>> includes the "version number" if it's a tag or branch, and the
>> word "trunk" if it's trunk. Or the value could be set dynamically
>> by parsing it out of that URL. I will look to see if there's
>> some other way of getting the app version from some reliable source.
>>
>> Jim
>> _______________________________________________
>> evaluation mailing list
>> evaluation at collab.sakaiproject.org
>> <mailto:evaluation at collab.sakaiproject.org>
>> http://collab.sakaiproject.org/mailman/listinfo/evaluation
>>
>> TO UNSUBSCRIBE: send email to
>> evaluation-unsubscribe at collab.sakaiproject.org
>> <mailto:evaluation-unsubscribe at collab.sakaiproject.org> with a
>> subject of "unsubscribe"
>
>
> _______________________________________________
> evaluation mailing list
> evaluation at collab.sakaiproject.org
> <mailto:evaluation at collab.sakaiproject.org>
> http://collab.sakaiproject.org/mailman/listinfo/evaluation
>
> TO UNSUBSCRIBE: send email to
> evaluation-unsubscribe at collab.sakaiproject.org
> <mailto:evaluation-unsubscribe at collab.sakaiproject.org> with a
> subject of "unsubscribe"
>
>
>
> _______________________________________________
> evaluation mailing list
> evaluation at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/evaluation
>
> TO UNSUBSCRIBE: send email to evaluation-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/evaluation/attachments/20110602/58daaaa1/attachment.html
More information about the evaluation
mailing list