Task #584 (closed)
Opened 17 years ago
Closed 15 years ago
Add conditional builds for tools
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-Beta4 |
Component: | Tools | Version: | 3.0-RC1 |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Currently the build system is hard-coded to build the only tool/ extension under licences/ (admin/ falls into another category -- GUIs). One should be able to control what is built under tools/ via a command-line property:
java omero -DTOOLS=admin,licenses install
May need to use the iterator task from ant-contrib:
<!-- http://www.jguru.com/faq/view.jsp?EID=1099123 --> <!-- Import AntContrib --> <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> <target name="main"> <!-- Load the properties --> <property file="my.properties"/> <!-- Iterate over the list 'names.list' --> <!-- the 'inheritall' is important because otherwise --> <!-- the loaded properties are not accessible by 'doName' --> <foreach list="${name.list}" delimiter="," param="name" target="doName" inheritall="true"/> </target> <target name="doName"> <!-- Get the properties ${name}.* --> <propertycopy name="prop-1" from="${name}.prop-1" silent="true"/> <propertycopy name="prop-2" from="${name}.prop-2" silent="true"/> <!-- Set default values --> <property name="prop-1" value="default-1"/> <property name="prop-2" value="default-2"/> <!-- Use the values --> <echo> Derived values for ${name} </echo> <echo> prop-1 = ${prop-1} </echo> <echo> prop-2 = ${prop-2} </echo>
Change History (2)
comment:1 Changed 15 years ago by jmoore
- Milestone changed from Future to OMERO-Beta4
comment:2 Changed 15 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
(just forgot to click close.)
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
With Ivy fixes, build has improved beyond this. Closing.