tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adrianocrest...@apache.org
Subject svn commit: r613374 - /incubator/tuscany/cpp/das/build.xml
Date Sat, 19 Jan 2008 06:54:54 GMT
Author: adrianocrestani
Date: Fri Jan 18 22:54:52 2008
New Revision: 613374

URL: http://svn.apache.org/viewvc?rev=613374&view=rev
Log:
only on windows when packing the DAS distribution, otherwise,
generate .tar file

Modified:
    incubator/tuscany/cpp/das/build.xml

Modified: incubator/tuscany/cpp/das/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/das/build.xml?rev=613374&r1=613373&r2=613374&view=diff
==============================================================================
--- incubator/tuscany/cpp/das/build.xml (original)
+++ incubator/tuscany/cpp/das/build.xml Fri Jan 18 22:54:52 2008
@@ -72,14 +72,22 @@
 		<fileset dir="${distribution.bin.dir}" includes="**"/>
 	</copy>
 
-	<zip destfile="${pack.dir}/${tuscanyDAS.release.file.name}bin.zip" level="9">
-		<fileset dir="${pack.dir}" includes="${tuscanyDAS.release.file.name}bin/"/>
-	</zip>
+	<if>
+		<os family="windows"/>
+    		<then>
+			<zip destfile="${pack.dir}/${tuscanyDAS.release.file.name}bin.zip" level="9">
+				<fileset dir="${pack.dir}" includes="${tuscanyDAS.release.file.name}bin/"/>
+			</zip>
+		</then>
+		<else>
 
 	<tar destfile="${pack.dir}/${tuscanyDAS.release.file.name}bin.tar.gz" compression="gzip"
longfile="gnu">
 		<fileset dir="${pack.dir}" includes="${tuscanyDAS.release.file.name}bin/"/>
 	</tar>
 
+		</else>
+	</if>
+
 	<delete quiet="true" dir="${pack.dir}/${tuscanyDAS.release.file.name}bin"/>
 
 	<!--Packs the src distribution-->	
@@ -88,27 +96,38 @@
 		<fileset dir="${distribution.src.dir}" includes="**"/>
 	</copy>
 
-	<zip destfile="${pack.dir}/${tuscanyDAS.release.file.name}src.zip" level="9">
-		<fileset dir="${pack.dir}" includes="${tuscanyDAS.release.file.name}src/"/>
-	</zip>
+	<if>
+		<os family="windows"/>
+    		<then>
+			<zip destfile="${pack.dir}/${tuscanyDAS.release.file.name}src.zip" level="9">
+				<fileset dir="${pack.dir}" includes="${tuscanyDAS.release.file.name}src/"/>
+			</zip>
+
+			<!--Generate the checksum files-->
+			<checksum forceOverwrite="yes" file="${pack.dir}/${tuscanyDAS.release.file.name}bin.zip"
fileext=".md5"/>
+			<checksum forceOverwrite="yes" file="${pack.dir}/${tuscanyDAS.release.file.name}src.zip"
fileext=".md5"/>
+
+			<signer asciiarmor="true" artefact="${pack.dir}/${tuscanyDAS.release.file.name}bin.zip"
secring="${secret.key.path}" pubring="${public.key.path}" password="${secret.key.password}"
keyid="${key.id}"/>
+			<signer asciiarmor="true" artefact="${pack.dir}/${tuscanyDAS.release.file.name}src.zip"
secring="${secret.key.path}" pubring="${public.key.path}" password="${secret.key.password}"
keyid="${key.id}"/>
+
+		</then>
+		<else>
+
+			<tar destfile="${pack.dir}/${tuscanyDAS.release.file.name}src.tar.gz" compression="gzip"
longfile="gnu">
+				<fileset dir="${pack.dir}" includes="${tuscanyDAS.release.file.name}src/"/>
+			</tar>
+
+			<!--Generate the checksum files-->
+			<checksum forceOverwrite="yes" file="${pack.dir}/${tuscanyDAS.release.file.name}bin.tar.gz"
fileext=".md5"/>
+			<checksum forceOverwrite="yes" file="${pack.dir}/${tuscanyDAS.release.file.name}src.tar.gz"
fileext=".md5"/>
+	
+			<signer asciiarmor="true" artefact="${pack.dir}/${tuscanyDAS.release.file.name}bin.tar.gz"
secring="${secret.key.path}" pubring="${public.key.path}" password="${secret.key.password}"
keyid="${key.id}"/>
+			<signer asciiarmor="true" artefact="${pack.dir}/${tuscanyDAS.release.file.name}src.tar.gz"
secring="${secret.key.path}" pubring="${public.key.path}" password="${secret.key.password}"
keyid="${key.id}"/>
 
-	<tar destfile="${pack.dir}/${tuscanyDAS.release.file.name}src.tar.gz" compression="gzip"
longfile="gnu">
-		<fileset dir="${pack.dir}" includes="${tuscanyDAS.release.file.name}src/"/>
-	</tar>
+		</else>
+	</if>
 
 	<delete quiet="true" dir="${pack.dir}/${tuscanyDAS.release.file.name}src"/>
-
-	<!--Generate the checksum files-->
-	<checksum forceOverwrite="yes" file="${pack.dir}/${tuscanyDAS.release.file.name}bin.zip"
fileext=".md5"/>
-	<checksum forceOverwrite="yes" file="${pack.dir}/${tuscanyDAS.release.file.name}src.zip"
fileext=".md5"/>
-	<checksum forceOverwrite="yes" file="${pack.dir}/${tuscanyDAS.release.file.name}bin.tar.gz"
fileext=".md5"/>
-	<checksum forceOverwrite="yes" file="${pack.dir}/${tuscanyDAS.release.file.name}src.tar.gz"
fileext=".md5"/>
-	
-	<signer asciiarmor="true" artefact="${pack.dir}/${tuscanyDAS.release.file.name}bin.zip"
secring="${secret.key.path}" pubring="${public.key.path}" password="${secret.key.password}"
keyid="${key.id}"/>
-	<signer asciiarmor="true" artefact="${pack.dir}/${tuscanyDAS.release.file.name}src.zip"
secring="${secret.key.path}" pubring="${public.key.path}" password="${secret.key.password}"
keyid="${key.id}"/>
-	<signer asciiarmor="true" artefact="${pack.dir}/${tuscanyDAS.release.file.name}bin.tar.gz"
secring="${secret.key.path}" pubring="${public.key.path}" password="${secret.key.password}"
keyid="${key.id}"/>
-	<signer asciiarmor="true" artefact="${pack.dir}/${tuscanyDAS.release.file.name}src.tar.gz"
secring="${secret.key.path}" pubring="${public.key.path}" password="${secret.key.password}"
keyid="${key.id}"/>
-
 
   </target>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message