[
https://jira.duraspace.org/browse/DS-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25692#comment-25692
]
Steve Swinsburg commented on DS-1208:
-------------------------------------
I agree with Mark D. We use Maven for our builds and Ant simply to deploy. I'd
go as far as saying the manual ant processes should be removed and replaced
with Maven, possibly using the ant plugin to execute deploy scripts as
necessary. Mixing these just adds complexity. Maven has first class support for
build time filtering. Manually adjusting properties files is not an option when
you have multiple environments and automated builds, you need to have some sort
of automatic process and Maven does this out of the box.
In addition there are already deployment specific concerns in the pom files
(which db to use) which ends up in the space.cfg so this patch rationalises it.
> Build time filtering to allow multi developer/environment builds
> ----------------------------------------------------------------
>
> Key: DS-1208
> URL: https://jira.duraspace.org/browse/DS-1208
> Project: DSpace
> Issue Type: Bug
> Reporter: Steve Swinsburg
> Assignee: Robin Taylor
>
> 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:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel