Skip to content

Commit 3924d59

Browse files
committed
add manifest version/title/vendor info to build.xml jar target
1 parent 23a9e1b commit 3924d59

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

build.xml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
$JUNIT_HOME/junit.jar
1212
</description>
1313

14+
<!-- versioning/manifest properties -->
15+
<property name="implementation.vendor" value="wolfSSL Inc." />
16+
<property name="implementation.title" value="wolfSSL JNI/JSSE" />
17+
<property name="implementation.version" value="1.10" />
18+
1419
<!-- set properties for this build -->
1520
<property name="src.dir" value="src/java/"/>
1621
<property name="native.dir" value="native"/>
@@ -157,6 +162,14 @@
157162

158163
<target name="jar">
159164
<jar jarfile="${lib.dir}/wolfssl.jar">
165+
<manifest>
166+
<attribute name="Implementation-Title"
167+
value="${implementation.title}" />
168+
<attribute name="Implementation-Version"
169+
value="${implementation.version}" />
170+
<attribute name="Implementation-Vendor"
171+
value="${implementation.vendor}" />
172+
</manifest>
160173
<fileset dir="${build.dir}">
161174
<include name="com/wolfssl/*.class"/>
162175
<include name="com/wolfssl/wolfcrypt/*.class"/>
@@ -165,7 +178,16 @@
165178
</target>
166179

167180
<target name="jar-jsse">
168-
<jar jarfile="${lib.dir}/wolfssl-jsse.jar" basedir="${build.dir}"></jar>
181+
<jar jarfile="${lib.dir}/wolfssl-jsse.jar" basedir="${build.dir}">
182+
<manifest>
183+
<attribute name="Implementation-Title"
184+
value="${implementation.title}" />
185+
<attribute name="Implementation-Version"
186+
value="${implementation.version}" />
187+
<attribute name="Implementation-Vendor"
188+
value="${implementation.vendor}" />
189+
</manifest>
190+
</jar>
169191
</target>
170192

171193
<target name="javadoc" description="generate documentation">

0 commit comments

Comments
 (0)