Commits

Anonymous committed db5b681

distribute source jar files too

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@641e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (2)

         <jar destfile="${build}/${name}-tiger-${version}.jar">
             <fileset dir="tiger/build/java"/>
         </jar>
-    </target>
 
-    <target name="jar" depends="common.jar">
-        <jar basedir="${src.java}" jarfile="${build}/${name}-${version}-src.jar">
-            <manifest>
-                <attribute name="Implementation-Title" value="${fullname}"/>
-                <attribute name="Implementation-Version" value="${version}"/>
-            </manifest>
+        <jar destfile="${build}/${name}-tiger-${version}-src.jar">
+            <fileset dir="tiger/src/java"/>
         </jar>
     </target>
 
                 <attribute name="Implementation-Vendor" value="OpenSymphony"/>
             </manifest>
         </jar>
-        <!--        <jar basedir="${src.java}" jarfile="${build}/${name}-${version}-src.jar">
-           <manifest>
-               <attribute name="Implementation-Title" value="${fullname}" />
-               <attribute name="Implementation-Version" value="${version}" />
-               <attribute name="Implementation-Vendor" value="OpenSymphony" />
-           </manifest>
-       </jar> -->
+        <jar basedir="${src.java}" jarfile="${build}/${name}-${version}-src.jar">
+            <manifest>
+                <attribute name="Implementation-Title" value="${fullname}"/>
+                <attribute name="Implementation-Version" value="${version}"/>
+                <attribute name="Implementation-Vendor" value="OpenSymphony"/>
+            </manifest>
+        </jar>
     </target>
 
     <target name="src-jar" depends="init" description="build a jar of the project source code">
             <arg line="${files}"/>
         </exec>
 
-        <!-- copy over the new build -->
+        <!-- copy over the new build and source -->
         <copy file="${build}/${name}-${version}.jar"
               tofile="${ivyrep.path}/opensymphony/${name}/${name}-${version}-${TIME}.jar"/>
+        <copy file="${build}/${name}-${version}-src.jar"
+              tofile="${ivyrep.path}/opensymphony/${name}/${name}-${version}-${TIME}-src.jar"/>
         <echo>svn add (jar)</echo>
         <exec executable="svn">
             <arg value="add"/>
             <arg value="${ivyrep.path}/opensymphony/${name}/${name}-${version}-${TIME}.jar"/>
         </exec>
+        <exec executable="svn">
+            <arg value="add"/>
+            <arg value="${ivyrep.path}/opensymphony/${name}/${name}-${version}-${TIME}-src.jar"/>
+        </exec>
 
         <antcall target="ivyrep.copy-ivy"/>
         <exec executable="svn">