[ 
https://jira.duraspace.org/browse/DS-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26766#comment-26766
 ] 

Tim Donohue commented on DS-1208:
---------------------------------

Just wanted to note that I've proposed a fix to this feature which adds a 
"-Denv" (environment) flag, so that developers can specify a different 
*.properties file which is NOT under source control (since the main 
build.properties file is under source control).

See: https://github.com/DSpace/DSpace/pull/123
                
> Build time filtering to allow multi developer/environment builds
> ----------------------------------------------------------------
>
>                 Key: DS-1208
>                 URL: https://jira.duraspace.org/browse/DS-1208
>             Project: DSpace
>          Issue Type: Improvement
>            Reporter: Steve Swinsburg
>            Assignee: Robin Taylor
>             Fix For: 3.0
>
>
> The addition of properly placeholders in dspace.cfg goes some of the way to 
> allowing multiple developers/environments to use the same source tree, 
> however not enough properties have been externalised.
> For example,if I had 5 servers, how would I customise this property for each?
> dspace.baseUrl = http://localhost:8080
> In addition, the current setup requires the build to activate a maven 
> profile, and supply properties either at build time or from a pom.xml, which 
> are then hardcoded. 
> This isn't as flexible as it could be, for example by putting all 
> configurable properties into a build.properties/filter.properties file and 
> keeping that out of source control.
> Then each developer simply customises the properties file with the values for 
> their environment, and the build inserts the properties into the relevant 
> source files at build time.
> This is a standard maven filtering approach in use by many other projects. 
> Note that any number of files can be filtered using this approach.
> References:
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to