Interested in a simplified build?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Interested in a simplified build?

Steve Swinsburg
Hi all,

Is anyone interested in a simplified build for DSpace?

Currently you need to build via Maven, then deploy via Ant, from a different directory. This wastes a lot of time. So I wrote an Ant script to bootstrap the build and deployment into one command which allows chaining. It's just one file and the current Ant commands work. It does not affect the current build process at all, its in addition, but we now use it exclusively as it saves us a lot of time.

For example:

help:
     [echo] 
     [echo] DSpace build helper
     [echo] -----------------------------------
     [echo] 
     [echo] Available targets are:
     [echo] 
     [echo] clean       --> Runs mvn clean
     [echo] package       --> Runs mvn package
     [echo] update         --> Update config, etc, lib and web applications without touching your data. This will call package if it needs to.
     [echo] update_webapps   --> Update web applications
     [echo] 
     [echo] fresh_install   --> Perform a fresh installation of the software, including the databases & config
     [echo] clean_database   --> Remove DSpace database tables, destroying data
     [echo] 


So if you are interested I'll file a Jira and send a pull request.

regards,
Steve

-- 
Steve Swinsburg
Java Team Leader
Information Technology Infrastructure
Information Technology Services
Building 3K
The Australian National University
Canberra ACT 0200

T: +61 2 6125 6608
F: +61 2 6125 0449


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
DSpace-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
Reply | Threaded
Open this post in threaded view
|

Re: Interested in a simplified build?

helix84
Hi Steve,

I'm sure this is a convenient feature for you. I just wanted to note
that the other developers were generally aiming to eliminate ant for
deployment and complete the transition to Maven, so I guess it would
make sense to try that instead (if it's possible).


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
DSpace-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
Reply | Threaded
Open this post in threaded view
|

Re: Interested in a simplified build?

Steve Swinsburg
Hi,

Yes, consolidating build tech would be a good step forward. Right now we are using 1.8 so had to work with what we have. It may be possible to do everything with the Maven Antrun plugin, though you are still going to need Ant build scripts to run the more complex things like populating the database etc, though these could still all be bootstrapped via Maven.

regards,
Steve

-- 
Steve Swinsburg
Java Team Leader
Information Technology Infrastructure
Information Technology Services
Building 3K
The Australian National University
Canberra ACT 0200

T: +61 2 6125 6608
F: +61 2 6125 0449

On 23/11/2012, at 11:01 AM, helix84 <[hidden email]> wrote:

Hi Steve,

I'm sure this is a convenient feature for you. I just wanted to note
that the other developers were generally aiming to eliminate ant for
deployment and complete the transition to Maven, so I guess it would
make sense to try that instead (if it's possible).


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
<a href="https://wiki.duraspace.org/display/DSPACE/Mailing&#43;List&#43;Etiquette">https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
DSpace-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
Reply | Threaded
Open this post in threaded view
|

Re: Interested in a simplified build?

Pottinger, Hardy J.-2
Hey, Steve, this sounds a bit like DS-921 (https://jira.duraspace.org/browse/DS-921). I agree with the notion that Maven is probably the tool we want to use for building and deploying, but I do find the idea of an instant dev environment, container and all, pretty appealing.

--Hardy

Sent from my iPad

On Nov 22, 2012, at 7:20 PM, "Steve Swinsburg" <[hidden email]> wrote:

Hi,

Yes, consolidating build tech would be a good step forward. Right now we are using 1.8 so had to work with what we have. It may be possible to do everything with the Maven Antrun plugin, though you are still going to need Ant build scripts to run the more complex things like populating the database etc, though these could still all be bootstrapped via Maven.

regards,
Steve

-- 
Steve Swinsburg
Java Team Leader
Information Technology Infrastructure
Information Technology Services
Building 3K
The Australian National University
Canberra ACT 0200

T: +61 2 6125 6608
F: +61 2 6125 0449

On 23/11/2012, at 11:01 AM, helix84 <[hidden email][hidden email]> wrote:

Hi Steve,

I'm sure this is a convenient feature for you. I just wanted to note
that the other developers were generally aiming to eliminate ant for
deployment and complete the transition to Maven, so I guess it would
make sense to try that instead (if it's possible).


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
<a href="https://wiki.duraspace.org/display/DSPACE/Mailing&#43;List&#43;Etiquette"><a href="https://wiki.duraspace.org/display/DSPACE/Mailing&#43;List&#43;Etiquette">https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
DSpace-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
DSpace-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
Reply | Threaded
Open this post in threaded view
|

Re: Interested in a simplified build?

Tim Donohue
Administrator
In reply to this post by Steve Swinsburg
Just a brief note..

I'd love to see what you've done via Ant as well & would encourage you
to post it somewhere (JIRA / GitHub). There are easy ways to embed Ant
as a dependency (so folks don't even know they are using Ant behind the
scenes) and using the Maven Antrun plugin.

So, I wouldn't disregard the work just cause it uses Ant to get things
done. The longer term installation goal is really just to simplify the
number of dependencies needed to install DSpace. But, as mentioned,
since Ant can be embedded we may be able to still use what you've come
up with so far.

- Tim

On 11/22/2012 7:03 PM, Steve Swinsburg wrote:

> Hi,
>
> Yes, consolidating build tech would be a good step forward. Right now we
> are using 1.8 so had to work with what we have. It may be possible to do
> everything with the Maven Antrun plugin, though you are still going to
> need Ant build scripts to run the more complex things like populating
> the database etc, though these could still all be bootstrapped via Maven.
>
> regards,
> Steve
>
> --
> Steve Swinsburg
> Java Team Leader
> Information Technology Infrastructure
> Information Technology Services
> Building 3K
> The Australian National University
> Canberra ACT 0200
>
> T: +61 2 6125 6608
> F: +61 2 6125 0449
>
> On 23/11/2012, at 11:01 AM, helix84 <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>> Hi Steve,
>>
>> I'm sure this is a convenient feature for you. I just wanted to note
>> that the other developers were generally aiming to eliminate ant for
>> deployment and complete the transition to Maven, so I guess it would
>> make sense to try that instead (if it's possible).
>>
>>
>> Regards,
>> ~~helix84
>>
>> Compulsory reading: DSpace Mailing List Etiquette
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
>
>
>
> _______________________________________________
> DSpace-tech mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
DSpace-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
Reply | Threaded
Open this post in threaded view
|

Re: Interested in a simplified build?

Mark H. Wood
In reply to this post by Steve Swinsburg
On Fri, Nov 23, 2012 at 01:03:27AM +0000, Steve Swinsburg wrote:
> Yes, consolidating build tech would be a good step forward. Right now we are using 1.8 so had to work with what we have. It may be possible to do everything with the Maven Antrun plugin, though you are still going to need Ant build scripts to run the more complex things like populating the database etc, though these could still all be bootstrapped via Maven.

Just to muddle things even more, I'd suggest that DSpace should just
load the DB schema, metadata schemas, document types, etc. at runtime
if it finds them absent.  A few tweaks to make the WARs
location-independent, and we can dispense with Ant for installation --
'unzip' can be our installer.  And Maven can stick to what it was
designed for: project building and documentation.

--
Mark H. Wood, Lead System Programmer   [hidden email]
I don't do "doorbusters".

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
DSpace-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

attachment0 (205 bytes) Download Attachment