Skip to content

Commit 9e2a159

Browse files
committed
when building jars, place LICENSE.txt file into META-INF/ directory rather than the root of the jar. Should address the googlecode issue number 125.
1 parent 0383eb5 commit 9e2a159

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎build.xml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
<pathelement path="@{classpath}"/>
293293
</classpath>
294294
</javac>
295-
<copy file="LICENSE.txt" todir="build/temp/@{modulename}-${version}.jar.contents"/>
295+
<copy file="LICENSE.txt" todir="build/temp/@{modulename}-${version}.jar.contents/META-INF"/>
296296
<jar jarfile="build/@{modulename}-${version}.jar" manifest="build/temp/@{modulename}-${version}.jar.manifest/MANIFEST.MF">
297297
<fileset dir="build/temp/@{modulename}-${version}.jar.contents"/>
298298
</jar>
@@ -301,6 +301,7 @@
301301
<copy todir="build/temp/@{modulename}-${version}-sources.jar.contents">
302302
<fileset dir="@{srcdir}"/>
303303
</copy>
304+
<copy file="LICENSE.txt" todir="build/temp/@{modulename}-${version}-sources.jar.contents/META-INF"/>
304305
<jar jarfile="build/@{modulename}-${version}-sources.jar" manifest="build/temp/@{modulename}-${version}.jar.manifest/MANIFEST.MF">
305306
<fileset dir="build/temp/@{modulename}-${version}-sources.jar.contents"/>
306307
</jar>

0 commit comments

Comments
 (0)