Author: olga Date: Wed Jul 2 15:11:01 2008 New Revision: 673523 URL: http://svn.apache.org/viewvc?rev=673523&view=rev Log: PIG-284: target for building source jar
Modified: incubator/pig/branches/types/CHANGES.txt incubator/pig/branches/types/build.xml Modified: incubator/pig/branches/types/CHANGES.txt URL: http://svn.apache.org/viewvc/incubator/pig/branches/types/CHANGES.txt?rev=673523&r1=673522&r2=673523&view=diff ============================================================================== --- incubator/pig/branches/types/CHANGES.txt (original) +++ incubator/pig/branches/types/CHANGES.txt Wed Jul 2 15:11:01 2008 @@ -133,3 +133,5 @@ PIG-213: Remove non-static references to logger from data bags and tuples, as it causes significant overhead (vgeschel via gates). + + PIG-284: target for building source jar (oae via olgan) Modified: incubator/pig/branches/types/build.xml URL: http://svn.apache.org/viewvc/incubator/pig/branches/types/build.xml?rev=673523&r1=673522&r2=673523&view=diff ============================================================================== --- incubator/pig/branches/types/build.xml (original) +++ incubator/pig/branches/types/build.xml Wed Jul 2 15:11:01 2008 @@ -40,6 +40,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" /> @@ -197,6 +198,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 -->