Task #11608 (closed)
Opened 6 years ago
Closed 6 years ago
Bug: No redistributable source release is created
| Reported by: | rleigh | Owned by: | rleigh |
|---|---|---|---|
| Priority: | major | Milestone: | 5.0.0-rc1 |
| Component: | Bio-Formats | Version: | 5.0.0-beta1 |
| Keywords: | n.a. | Cc: | mlinkert |
| Resources: | n.a. | Referenced By: | 11594 |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
The Bio-Formats build isn't capable of creating a source release zip/tar file. This is a major defect--it's not possible for third parties to download and build the *actual release*.
Add a release-src or equivalent target to create a source release.
Change History (3)
comment:1 Changed 6 years ago by rleigh
- Cc mlinkert added
comment:2 Changed 6 years ago by rleigh
comment:3 Changed 6 years ago by rleigh
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
The following creates a versioned source release. However, I'm not sure including all of ant/common.xml is a good idea. Could we factor the versioning stuff out into a separate ant/version.xml that just deals with versioning?
diff --git a/ant/toplevel.xml b/ant/toplevel.xml index ee3370b..93e1877 100644 --- a/ant/toplevel.xml +++ b/ant/toplevel.xml @@ -9,6 +9,7 @@ Type "ant -p" for a list of targets. <project> <property name="root.dir" location="${basedir}"/> <import file="${root.dir}/ant/global.xml"/> + <import file="${root.dir}/ant/common.xml"/> <property file="${root.dir}/ant/toplevel.properties"/> <!-- Global build targets --> @@ -1042,4 +1043,16 @@ Type "ant -p" for a list of targets. <target name="init"/> + <!-- Source release --> + <target name="release" description="Zip the git release as bioformats-${release.version}.zip" depends="init-version"> + <exec executable="git" outputproperty="release-archive-command" failifexecutionfails="true"> + <arg value="archive"/> + <arg value="--format=zip"/> + <arg value="HEAD"/> + <arg value="-o"/> + <arg value="bioformats-${release.version}.zip"/> + </exec> + </target> + +