Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #11608 (closed)

Opened 11 years ago

Closed 11 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 11 years ago by rleigh

  • Cc mlinkert added

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>
+
+

comment:3 Changed 11 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.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.67708 sec.)

We're Hiring!