[
https://jira.duraspace.org/browse/DS-921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=23920#comment-23920
]
Gareth Waller commented on DS-921:
----------------------------------
Hi Tim,
The point of the build script is not to replace the functionality provided by
an IDE. It was developed to allow multiple developers to work on the same code
base, maintain their own custom config and isolate the modified DSpace files
from the 'golden' DSpace source tree. It was also developed to allow continuous
integration as a nightly build was used to build, deploy and test the code
(mainly via selenium tests).
The script now also supports a simple process to install DSpace. You can
download, build and install DSpace with a single command (assuming you have a
properties file configured and the Postgres database setup).
I should also clarify that this is not a single build script, rather a few
different scripts and a mandatory directory structure (convention over
configuration approach).
I have tar gzipped up the framework and attached it to the issue.
To get started, simply untar it, create a properties file similar to the
examples in the etc director and run:
ant -DPROPS=<path to props file> build_dspace
That will go off download the source, and build the code slotting in your
custom config.
You can manually invoke targets on the main DSpace ant file by:
ant -DPROPS=<path to props file> -DT=<target> dspace_ant
e.g.
ant -DPROPS=mac.properties -DT=help dspace_ant
To download the source, build and install in one go (assuming you have postgres
setup and the DB is created but no tables) you could issue:
ant -DPROPS=mac.properties -DT=fresh_install dspace_ant
You could then run DSpace in Jetty with:
ant -DPROPS=<path to props file> deploy jetty
Any questions let me know - more info can be found at:
http://developer.edina.ac.uk/projects/jorumdspace/wiki/Build_Framework
Gareth
> Build script supporting multi-developer config, automatic container launching
> and code coverage
> -----------------------------------------------------------------------------------------------
>
> Key: DS-921
> URL: https://jira.duraspace.org/browse/DS-921
> Project: DSpace
> Issue Type: New Feature
> Reporter: Gareth Waller
> Attachments: dspace_buildframework_180112.tar.gz
>
>
> The current DSpace configuration and build process makes modification
> difficult in a multiple developer environment e.g. a project with a couple of
> engineers.
> Consider the following scenario:
> - A project wishes to make significant modifications to the DSpace codebase
> - The project consists of multiple developers (potentially on different OS's
> and varying install paths for binaries e.g. maven)
> - Each developer wants their DSpace to be stored in potentially a different
> location to another developer e.g. their home dir
> - Each developer wanted a one step process to build, deploy and launch DSpace
> within a container (to make development and testing quicker)
> - Code coverage analysis was required to see how effective system tests were
> - The project doesn't want to commit their entire DSpace codebase to their
> own internal source code management system e.g. svn
> - The project needs to know exactly at any point in time which DSpace files
> were modified (and what those modifications were)
> - An easy way to generate a patch is required in order to raise a Jira and
> submit the code back to DSpace
> - An easy way to perform automated web testing was required for a nightly
> build
> The scenario described above was encountered on the UK Jorum project and we
> created a build script to facilitate the above.
> See http://developer.edina.ac.uk/projects/jorumdspace/wiki/Build_Framework
> The build script used in the Jorum project might be a useful AddOn to DSpace.
--
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
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel