summaryrefslogtreecommitdiff
path: root/qpid/java/build.xml
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2006-11-10 22:28:27 +0000
committerMartin Ritchie <ritchiem@apache.org>2006-11-10 22:28:27 +0000
commit29dac32c5cd65c8cd93927aa1c34629e0fd36466 (patch)
treed2150611f33f1356cbfd4f70efe30d305782d668 /qpid/java/build.xml
parentda1ef1df9e34077555db114832027b778f6daf37 (diff)
downloadqpid-python-29dac32c5cd65c8cd93927aa1c34629e0fd36466.tar.gz
Modified the generation of the root LICENSE.txt file to include references to all other license files in the project.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@473536 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/build.xml')
-rw-r--r--qpid/java/build.xml35
1 files changed, 34 insertions, 1 deletions
diff --git a/qpid/java/build.xml b/qpid/java/build.xml
index 90a02520a0..d0c77777f9 100644
--- a/qpid/java/build.xml
+++ b/qpid/java/build.xml
@@ -188,13 +188,46 @@
<include name="RELEASE_NOTES.txt"/>
</fileset>
<fileset dir="${project.root}">
- <include name="LICENSE.txt"/>
<include name="README.txt"/>
<include name="NOTICE.txt"/>
</fileset>
</copy>
+
+ <antcall target="createLicense">
+ <param name="fromdir" value="${todir}"/>
+ <param name="destdir" value="${todir}"/>
+ </antcall>
+
</target>
+ <target name="createLicense">
+
+ <!-- Copy our main License file-->
+ <copy file="LICENSE.txt" todir="${destdir}"/>
+
+ <!-- Find all the license files-->
+ <fileset dir="${fromdir}" id="license.files">
+ <include name="**/${lib.dir}/**/license*"/>
+ </fileset>
+
+ <!-- Path to use to remove from the start of the license file name -->
+ <path path="${todir}${file.separator}" id="release.prepare.dir.id" />
+
+ <!-- Convert this path to use the platform file separator \ or / -->
+ <pathconvert refid="release.prepare.dir.id" property="release.prepare.path" dirsep="${file.separator}"/>
+
+ <!-- For each of the license files remove the release prepare path-->
+ <pathconvert refid="license.files" id="licenses.convert.path.id" property="licenses.convert" pathsep="${line.separator}" >
+ <map from="${release.prepare.path}${file.separator}" to=''/>
+ </pathconvert>
+
+
+ <!-- Add the list of licence files to the end of the main license file.-->
+ <echo file="${destdir}/LICENSE.txt" append="yes">
+ ${line.separator}Additional license files can be found here:${line.separator}${licenses.convert}
+ </echo>
+
+ </target>
<target name="tgzandzip">
<tar compression="gzip" longfile="gnu"