Author: olga Date: Wed Jul 2 12:10:05 2008 New Revision: 673469 URL: http://svn.apache.org/viewvc?rev=673469&view=rev Log: PIG-284: target for building source jar
Modified: incubator/pig/trunk/CHANGES.txt incubator/pig/trunk/build.xml Modified: incubator/pig/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/incubator/pig/trunk/CHANGES.txt?rev=673469&r1=673468&r2=673469&view=diff ============================================================================== --- incubator/pig/trunk/CHANGES.txt (original) +++ incubator/pig/trunk/CHANGES.txt Wed Jul 2 12:10:05 2008 @@ -333,3 +333,5 @@ PIG-271: added tutorial to SVN (olgan) PIG-235: memory management improvements (pkamath via olgan) + + PIG-284: target for building source jar (oae via olgan) Modified: incubator/pig/trunk/build.xml URL: http://svn.apache.org/viewvc/incubator/pig/trunk/build.xml?rev=673469&r1=673468&r2=673469&view=diff ============================================================================== --- incubator/pig/trunk/build.xml (original) +++ incubator/pig/trunk/build.xml Wed Jul 2 12:10:05 2008 @@ -47,6 +47,7 @@ <!-- jar names. TODO we might want to use the svn reversion name in the name in case it is a dev version --> <property name="output.jarfile" value="${build.dir}/${final.name}.jar" /> <property name="output.jarfile.core" value="${build.dir}/${final.name}-core.jar" /> + <property name="output.jarfile.sources" value="${build.dir}/${final.name}-sources.jar" /> <!-- Maintain old pig.jar in top level directory. --> <property name="output.jarfile.backcompat" value="${basedir}/${name}.jar" /> @@ -189,6 +190,21 @@ <!-- ================================================================== --> <target name="doc" depends="javadoc"> </target> + + <target name="source-jar" depends="cc-compile"> + <jar duplicate="preserve" jarfile="${output.jarfile.sources}" basedir="${src.dir}"> + <manifest> + <section name="org/apache/pig"> + <attribute name="Implementation-Vendor" value="Apache" /> + <attribute name="Implementation-Title" value="Pig" /> + <attribute name="Implementation-Version" value="${version}" /> + </section> + </manifest> + <fileset dir="${src.gen.dir}"/> + <fileset dir="${src.lib.dir}/shock"/> + <fileset dir="${src.lib.dir}/bzip2"/> + </jar> + </target> <!-- ================================================================== --> <!-- Make pig.jar -->