* Build: Put Implementation-Version in manifests

This commit is contained in:
zzz
2012-01-15 16:36:17 +00:00
parent 9e068b3926
commit 7213ff0c76
14 changed files with 24 additions and 5 deletions

View File

@ -55,6 +55,7 @@
<property name="workspace.changes" value="" /> <property name="workspace.changes" value="" />
<manifest> <manifest>
<attribute name="Main-Class" value="addressbook.Daemon"/> <attribute name="Main-Class" value="addressbook.Daemon"/>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes}" /> <attribute name="Workspace-Changes" value="${workspace.changes}" />
@ -73,6 +74,7 @@
<property name="workspace.changes.tr" value="" /> <property name="workspace.changes.tr" value="" />
<war basedir="${dist}/tmp" webxml="web.xml" destfile="${dist}/${war}"> <war basedir="${dist}/tmp" webxml="web.xml" destfile="${dist}/${war}">
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />

View File

@ -60,6 +60,7 @@
<manifest> <manifest>
<attribute name="Main-Class" value="org.klomp.snark.Snark" /> <attribute name="Main-Class" value="org.klomp.snark.Snark" />
<attribute name="Class-Path" value="i2p.jar mstreaming.jar streaming.jar" /> <attribute name="Class-Path" value="i2p.jar mstreaming.jar streaming.jar" />
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
@ -98,6 +99,7 @@
<!-- include only the web stuff, as of 0.7.12 the router will add i2psnark.jar to the classpath for the war --> <!-- include only the web stuff, as of 0.7.12 the router will add i2psnark.jar to the classpath for the war -->
<classes dir="./build/obj" includes="**/web/*.class" /> <classes dir="./build/obj" includes="**/web/*.class" />
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />

View File

@ -62,6 +62,7 @@
<manifest> <manifest>
<attribute name="Main-Class" value="net.i2p.i2ptunnel.I2PTunnel" /> <attribute name="Main-Class" value="net.i2p.i2ptunnel.I2PTunnel" />
<attribute name="Class-Path" value="i2p.jar mstreaming.jar" /> <attribute name="Class-Path" value="i2p.jar mstreaming.jar" />
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.j.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.j.tr}" />
@ -134,6 +135,7 @@
<war destfile="build/i2ptunnel.war" webxml="../jsp/web-out.xml" <war destfile="build/i2ptunnel.war" webxml="../jsp/web-out.xml"
basedir="../jsp/" excludes="web.xml, web-fragment.xml, web-out.xml, **/*.java, *.jsp"> basedir="../jsp/" excludes="web.xml, web-fragment.xml, web-out.xml, **/*.java, *.jsp">
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.w.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.w.tr}" />

View File

@ -50,6 +50,7 @@
<property name="workspace.changes.tr" value="" /> <property name="workspace.changes.tr" value="" />
<jar destfile="./build/mstreaming.jar" basedir="./build/obj" includes="**/*.class" > <jar destfile="./build/mstreaming.jar" basedir="./build/obj" includes="**/*.class" >
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />

View File

@ -90,6 +90,7 @@
<!-- top level installer will rename to jrobin.jar --> <!-- top level installer will rename to jrobin.jar -->
<!-- DTG added in 0.8.4, not in the classpath for very old installs, before we changed wrapper.config to specify * --> <!-- DTG added in 0.8.4, not in the classpath for very old installs, before we changed wrapper.config to specify * -->
<attribute name="Class-Path" value="i2p.jar router.jar jrobin.jar desktopgui.jar" /> <attribute name="Class-Path" value="i2p.jar router.jar jrobin.jar desktopgui.jar" />
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.j.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.j.tr}" />
@ -169,6 +170,7 @@
<war destfile="build/routerconsole.war" webxml="../jsp/web-out.xml" <war destfile="build/routerconsole.war" webxml="../jsp/web-out.xml"
basedir="../jsp/" excludes="web.xml, *.css, **/*.java, *.jsp, *.jsi, web-fragment.xml, web-out.xml"> basedir="../jsp/" excludes="web.xml, *.css, **/*.java, *.jsp, *.jsi, web-fragment.xml, web-out.xml">
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.w.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.w.tr}" />

View File

@ -113,17 +113,18 @@ public class FileDumpHelper extends HelperBase {
if (att == null) if (att == null)
att = new Attributes(); att = new Attributes();
buf.append("<td align=\"center\">"); buf.append("<td align=\"center\">");
String iv = getAtt(att, "Implementation-Version");
if (iv != null)
buf.append("<b>").append(iv).append("</b>");
String s = getAtt(att, "Base-Revision"); String s = getAtt(att, "Base-Revision");
if (s != null && s.length() > 20) { if (s != null && s.length() > 20) {
if (iv != null)
buf.append("<br>");
buf.append("<a href=\"http://stats.i2p/cgi-bin/viewmtn/revision/info/").append(s) buf.append("<a href=\"http://stats.i2p/cgi-bin/viewmtn/revision/info/").append(s)
.append("\">" + .append("\">" +
"<tt>").append(s.substring(0, 20)).append("</tt>" + "<tt>").append(s.substring(0, 20)).append("</tt>" +
"<br>" + "<br>" +
"<tt>").append(s.substring(20)).append("</tt></a>"); "<tt>").append(s.substring(20)).append("</tt></a>");
} else {
s = getAtt(att, "Implementation-Version");
if (s != null)
buf.append("<b>").append(s).append("</b>");
} }
buf.append("</td><td>"); buf.append("</td><td>");
s = getAtt(att, "Created-By"); s = getAtt(att, "Created-By");

View File

@ -66,6 +66,7 @@
<manifest> <manifest>
<attribute name="Main-Class" value="net.i2p.sam.SAMBridge" /> <attribute name="Main-Class" value="net.i2p.sam.SAMBridge" />
<attribute name="Class-Path" value="i2p.jar mstreaming.jar streaming.jar" /> <attribute name="Class-Path" value="i2p.jar mstreaming.jar streaming.jar" />
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />

View File

@ -63,6 +63,7 @@
<property name="workspace.changes.tr" value="" /> <property name="workspace.changes.tr" value="" />
<jar destfile="./build/streaming.jar" basedir="./build/obj" includes="**/*.class" > <jar destfile="./build/streaming.jar" basedir="./build/obj" includes="**/*.class" >
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />

View File

@ -97,6 +97,7 @@
<include name="WEB-INF/classes/${project}.properties"/> <include name="WEB-INF/classes/${project}.properties"/>
</fileset> </fileset>
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />

View File

@ -45,6 +45,7 @@
<war destfile="susimail.war" webxml="src/WEB-INF/web.xml" <war destfile="susimail.war" webxml="src/WEB-INF/web.xml"
basedir="src/" excludes="WEB-INF/web.xml LICENSE src/**/*"> basedir="src/" excludes="WEB-INF/web.xml LICENSE src/**/*">
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />

View File

@ -44,6 +44,7 @@
<manifest> <manifest>
<attribute name="Main-Class" value="net.i2p.apps.systray.SysTray" /> <attribute name="Main-Class" value="net.i2p.apps.systray.SysTray" />
<attribute name="Class-Path" value="systray4j.jar" /> <attribute name="Class-Path" value="systray4j.jar" />
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />

View File

@ -182,12 +182,14 @@
</exec> </exec>
</target> </target>
<target name="buildProperties" depends="getMtnRev" > <target name="buildProperties" depends="getMtnRev, getReleaseNumber, getBuildNumber" >
<!-- default if not set above --> <!-- default if not set above -->
<property name="workspace.version" value="unknown" /> <property name="workspace.version" value="unknown" />
<tstamp> <tstamp>
<format property="build.timestamp" pattern="yyyy-MM-dd HH:mm:ss z" timezone="UTC" locale="en" /> <format property="build.timestamp" pattern="yyyy-MM-dd HH:mm:ss z" timezone="UTC" locale="en" />
</tstamp> </tstamp>
<property name="full.version" value="${release.number}-${build.number}${build.extra}" />
<echo message="Building version ${full.version}" />
</target> </target>
<!-- end of sub-build.xml targets --> <!-- end of sub-build.xml targets -->

View File

@ -58,6 +58,7 @@
<property name="workspace.changes.tr" value="" /> <property name="workspace.changes.tr" value="" />
<jar destfile="./build/i2p.jar" basedir="./build/obj" includes="**/*.class" > <jar destfile="./build/i2p.jar" basedir="./build/obj" includes="**/*.class" >
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />

View File

@ -72,6 +72,7 @@
<property name="workspace.changes.tr" value="" /> <property name="workspace.changes.tr" value="" />
<jar destfile="./build/router.jar" basedir="./build/obj" includes="**/*.class" > <jar destfile="./build/router.jar" basedir="./build/obj" includes="**/*.class" >
<manifest> <manifest>
<attribute name="Implementation-Version" value="${full.version}" />
<attribute name="Build-Date" value="${build.timestamp}" /> <attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" /> <attribute name="Base-Revision" value="${workspace.version}" />
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />