[Building Sakai] CAS URLs in properties file

Steve Swinsburg steve.swinsburg at gmail.com
Thu Mar 11 13:39:47 PST 2010


Hi,

Yes you could still do this in the installer. Maven can accept properties on the command line which you could then use to replace the placeholder values in web.xml. So you could inject these properties from a GUI perhaps.

Hope this helps,
Steve



On 12/03/2010, at 12:32 AM, Santhanam V wrote:

> Dear Steve,
>  
>         Thanks for your quick reply.
>  
>         Our use case is that our University has four campuses at geographically different locations. We are planning to give customized Sakai as an installer package.
>  
>        Since we have separate CAS Servers for each of the campuses, we have to specify different CAS Server URLs in web.xml for respective campuses. So, we thought that if we have a way to specify the CAS server URL at the installation time in the installer and get it written to a .properties file, which can then be used by Sakai-login-tool's web.xml.
>  
>       As you said,  we can do with Maven also. But then, we need to create a separate installer for each campus. 
>  
>       Please kindly help us.
>  
>  
> Thank You
>  
> :-)
>  
> With Regards
> Santhanam
>  
> P.S:
>  
> Sorry for retransmission. Ii have clicked Reply instead of Reply all.
> ----- Original Message -----
> From: Steve Swinsburg
> To: Santhanam V
> Cc: sakai-dev at collab.sakaiproject.org
> Sent: Thursday, March 11, 2010 6:36 PM
> Subject: Re: [Building Sakai] CAS URLs in properties file
> 
> I'm not sure this is possible, the CAS integration is a servlet-filter so needs to be configured in web.xml for the servlet you want filtered, ie the login tool.
> 
> You could, however, add the properties files and use placeholder values in the web.xml in the source code and then tell Maven to replace the placeholders in web.xml with the real values. But it would still be done at build time.
> 
> What's your use case for this, there might be another way to achieve what you need.
> 
> cheers,
> Steve
> 
> On Thu, Mar 11, 2010 at 11:26 PM, Santhanam V <santhanam at aims.amrita.edu> wrote:
> Dear Friends,
> 
>         Is it possible to read CAS server URLs from a .properties file,
> instead of hard coding in the URLs in web.xml ?
> 
>        Please kindly help us.
> 
> 
> Thank You
> 
> :-)
> 
> With Regards
> Santhanam
> 
> 
> ---------------------------------------------------------------------
> Amrita Institute Of Medical Sciences & Research Centre, Cochin, India
> 
> 
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
> 
> 
> -----------------------------------------
> Amrita Institute Of Medical Sciences & Research Centre, Cochin, India 
> Amrita Institute of Medical Sciences & Research Center. Amrita Lane; AIMS Ponekkara P.O; Kochi-41. 
> Tel: +91 484 2801234,2851234,4001234 Fax: +91 484 2802020 Email: admin at aims.amrita.edu Web: www.aimshospital.org
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100312/25554aa5/attachment.html 


More information about the sakai-dev mailing list