Revision 51910994

View differences:

trustedintents/custom_rules.xml
59 59
         manifest="MANIFEST.MF"
60 60
         basedir="${javadoc.dir}">
61 61
    </jar>
62
    <delete file="${javadoc.jar}.asc"/>
63
    <exec executable="gpg" failonerror="false">
64
      <arg value="--armor" />
65
      <arg value="--detach-sign" />
66
      <arg value="${javadoc.jar}" />
67
    </exec>
68 62
  </target>
69 63

  
70 64
  <target name="source" description="Generate Javadocs" depends="-build-setup,-getgitdetails">
......
74 68
         includes="info/**"
75 69
         basedir="${source.dir}">
76 70
    </jar>
77
    <delete file="${source.jar}.asc"/>
78
    <exec executable="gpg" failonerror="false">
79
      <arg value="--armor" />
80
      <arg value="--detach-sign" />
81
      <arg value="${source.jar}" />
82
    </exec>
83 71
  </target>
84 72

  
85 73
  <target name="pom" description="Generate maven .pom" depends="-build-setup,-getgitdetails">
......
89 77
                   match="&lt;version&gt;.*&lt;/version&gt;"
90 78
                   replace="&lt;version&gt;${git.describe}&lt;/version&gt;"
91 79
                   byline="true" />
92

  
93
    <delete file="${pom.file}.asc" />
94
    <exec executable="gpg" failonerror="false">
95
      <arg value="--armor" />
96
      <arg value="--detach-sign" />
97
      <arg value="${pom.file}" />
98
    </exec>
99 80
  </target>
100 81

  
101 82
  <target name="-post-build" depends="-getgitdetails">
......
118 99
         excludes="info/guardianproject/trustedintents/BuildConfig.*"
119 100
         basedir="${out.classes.absolute.dir}">
120 101
    </jar>
121
    <if condition="${build.is.debug}">
122
      <else>
123
        <delete file="${release.jar}.asc"/>
124
        <exec executable="gpg" failonerror="false">
125
          <arg value="--armor" />
126
          <arg value="--detach-sign" />
127
          <arg value="${release.jar}" />
128
        </exec>
129
      </else>
130
    </if>
131 102
  </target>
132 103

  
133 104
  <target name="release-all" depends="clean,release,javadoc,source,pom" />

Also available in: Unified diff