Author: sanka
Date: Sat Mar  4 21:15:26 2006
New Revision: 383281

URL: http://svn.apache.org/viewcvs?rev=383281&view=rev
Log:
adding dist-bin target to maven.xml

Modified:
    webservices/commons/modules/policy/maven.xml

Modified: webservices/commons/modules/policy/maven.xml
URL: 
http://svn.apache.org/viewcvs/webservices/commons/modules/policy/maven.xml?rev=383281&r1=383280&r2=383281&view=diff
==============================================================================
--- webservices/commons/modules/policy/maven.xml (original)
+++ webservices/commons/modules/policy/maven.xml Sat Mar  4 21:15:26 2006
@@ -29,7 +29,18 @@
     >
 
     <j:set var="dist.name" value="${pom.artifactId}-${pom.currentVersion}"/>
-    <ant:property name="build.dist.dir" value="${maven.build.dir}/dist"/>
+    
+    <ant:property name="build.dist.dir" value="${maven.build.dir}/dist" />
+    
+    <ant:property name="jar.file" value="${dist.name}.jar" />
+    
+    <ant:property name="license.file" value="LICENSE" />
+    
+    <ant:property name="readme.file" value="README" />
+    
+    <ant:property name="authors.file" value="AUTHORS" />
+    
+    <ant:property name="release.note.file" value="RELEASE-NOTE"/>
     
     <!-- ==================== -->
     <!-- Default Global Goals -->
@@ -53,7 +64,7 @@
     <!-- ================================================================ -->
     
     <goal name="dist-src">
-        <ant:property name="dist.src.root.file" value="${build.dist.dir}/tmp"/>
+        <ant:property name="dist.src.root.file" 
value="${build.dist.dir}/dist-src"/>
        
        <ant:property name="dist.src.file" 
value="${dist.src.root.file}/${dist.name}-src" />
        
@@ -90,81 +101,51 @@
      
      <goal name="dist-bin" prereqs="default,javadoc">
             
-        <property name="dist.bin.tmp.dir" value="${build.dist.dir}/tmp" />
+            
+        <property name="dist.bin.root.file" value="${build.dist.dir}/dist-bin" 
/>
        
-       <mkdir dir="${build.dist.dir}" />
+       <property name="dist.bin.file" 
value="${dist.bin.root.file}/${dist.name}-bin"/>
        
+       <mkdir dir="${dist.bin.file}" />
        
-       <property name="dir.temp.dist.bin" 
value="${build.temp.dir}/dist-bin/${dist.name}-bin" />
-            
-            <ant:mkdir dir="${dir.temp.dist.bin}"/>
-            <ant:mkdir dir="${dir.temp.dist.bin}/docs"/>
-            <ant:mkdir dir="${dir.temp.dist.bin}/samples"/>
-            <ant:mkdir dir="${dir.temp.dist.bin}/samples/clients"/>
-            <ant:mkdir dir="${dir.temp.dist.bin}/samples/clients/services"/>
-            <ant:mkdir dir="${dir.temp.dist.bin}/samples/clients/modules"/>
-            <ant:mkdir dir="${dir.temp.dist.bin}/samples/clients/lib"/>
-            <ant:mkdir dir="${dir.temp.dist.bin}/samples/services"/>
-            <ant:mkdir dir="${dir.temp.dist.bin}/docs/api"/>
-            -->
-            
-            <ant:copy file="${dir.config}/axis2.xml" 
todir="${dir.temp.dist.bin}/samples/clients" />
-            
-            <ant:copy todir="${dir.temp.dist.bin}/docs/api">
-                    <ant:fileset dir="target/docs/apidocs/">
-                            <ant:include name="**"/>
-                    </ant:fileset>
-            </ant:copy>
-            
-            <ant:copy todir="${dir.temp.dist.bin}/docs/api">
-                    <ant:fileset dir="target/docs/apidocs/">
-                            <ant:include name="**"/>
-                    </ant:fileset>
-            </ant:copy>
-            
-            <ant:copy todir="${dir.temp.dist.bin}/docs">
-                    <ant:fileset dir="xdocs">
-                            <ant:include name="**"/>
-                    </ant:fileset>
-            </ant:copy>
-            
-            <!--  <ant:copy todir="${dir.temp.dist.bin}/lib" flatten="true">
-                    <ant:fileset dir="target/lib">
-                            <ant:include name="*.jar"/>
-                    </ant:fileset>
-            </ant:copy> -->
-            
-            <ant:copy file="target/${jar.name}" todir="${dir.temp.dist.bin}" />
-            <ant:copy file="target/${mar.name}" todir="${dir.temp.dist.bin}" />
-            <ant:copy file="${dir.config}/sandesha2.properties" 
todir="${dir.temp.dist.bin}" />
-            <ant:copy file="${apache.license.file}" 
todir="${dir.temp.dist.bin}" />
-            <ant:copy file="${release.notes.file}" 
todir="${dir.temp.dist.bin}" />
-            <ant:copy file="${readme.file}" todir="${dir.temp.dist.bin}" />
-            
-            <ant:copy todir="${dir.temp.dist.bin}/samples">
-                    <ant:fileset dir="${build.samples.dir}">
-                            <ant:include name="classes/**/*.class" />
-                            <ant:include name="clients/*.jar" />
-                            <ant:include name="clients/*.bat"/>
-                            <ant:include name="clients/*.sh"/>
-                            <ant:include name="clients/*.xml"/>
-                    </ant:fileset>
-            </ant:copy>
-            
-            <ant:copy todir="${dir.temp.dist.bin}/samples/services">
-                    <ant:fileset dir="${build.repo.dir}/server/services">
-                            <ant:include name="*.aar" />
-                    </ant:fileset>
-            </ant:copy>
-            
-            
-            <mkdir dir="${build.dist.dir}" />
-            
-            <ant:zip file="${build.dist.dir}/${dist.name}-bin.zip" 
basedir="${dir.temp.dist.bin.parent}" />
-            <ant:tar tarfile="${build.dist.dir}/${dist.name}-bin.tar" 
basedir="${dir.temp.dist.bin.parent}" />
-            <gzip src="${build.dist.dir}/${dist.name}-bin.tar" 
zipfile="${build.dist.dir}/${dist.name}-bin.tar.gz" />
-            
-            <ant:delete file="${build.dist.dir}/${dist.name}-bin.tar" />
+       <mkdir dir="${dist.bin.file}/docs" />
+       
+       <mkdir dir="${dist.bin.file}/docs/apidocs"/>
+       
+       <mkdir dir="${dist.bin.file}/lib"/>
+       
+       <ant:copy todir="${dist.bin.file}/docs">
+           <ant:fileset dir="docs">
+               <ant:include name="**"/>
+           </ant:fileset>
+       </ant:copy>
+       
+       <ant:copy todir="${dist.bin.file}/docs/apidocs">
+           <ant:fileset dir="target/docs/apidocs/">
+               <ant:include name="**"/>
+           </ant:fileset>
+        </ant:copy>
+       
+       <ant:copy file="target/${jar.file}" todir="${dist.bin.file}/lib" />
+       
+       
+       <ant:copy file="${license.file}" todir="${dist.bin.file}" />
+       
+       <ant:copy file="${readme.file}" todir="${dist.bin.file}" />
+       
+       <ant:copy file="${authors.file}" todir="${dist.bin.file}" />
+        
+       <ant:copy file="${release.note.file}" todir="${dist.bin.file}" />
+       
+       <ant:zip destfile="${build.dist.dir}/${dist.name}-bin.zip" 
basedir="${dist.bin.root.file}"/>
+       
+       <ant:tar tarfile="${build.dist.dir}/${dist.name}-bin.tar" 
basedir="${dist.bin.root.file}"/>
+       
+       <ant:gzip src="${build.dist.dir}/${dist.name}-bin.tar" 
zipfile="${build.dist.dir}/${dist.name}-bin.tar.gz"/>
+       
+       <ant:delete file="${build.dist.dir}/${dist.name}-bin.tar"/>
+       
+       <ant:delete dir = "${dist.bin.root.file}"/>
             
     </goal>
  


Reply via email to