tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adrianocrest...@apache.org
Subject svn commit: r613372 - /incubator/tuscany/cpp/sdo/build.xml
Date Sat, 19 Jan 2008 06:37:43 GMT
Author: adrianocrestani
Date: Fri Jan 18 22:37:42 2008
New Revision: 613372

URL: http://svn.apache.org/viewvc?rev=613372&view=rev
Log:
-fixing a bug: a tar file was being generated on windows when packing the distribution

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

Modified: incubator/tuscany/cpp/sdo/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/build.xml?rev=613372&r1=613371&r2=613372&view=diff
==============================================================================
--- incubator/tuscany/cpp/sdo/build.xml (original)
+++ incubator/tuscany/cpp/sdo/build.xml Fri Jan 18 22:37:42 2008
@@ -92,13 +92,21 @@
 		<fileset dir="${distribution.bin.dir}" includes="**"/>
 	</copy>
 
-	<zip destfile="${pack.dir}/${tuscanySDO.release.file.name}bin.zip" level="9">
-		<fileset dir="${pack.dir}" includes="${tuscanySDO.release.file.name}bin/"/>
-	</zip>
+	<if>
+		<os family="windows"/>
+    		<then>
+			<zip destfile="${pack.dir}/${tuscanySDO.release.file.name}bin.zip" level="9">
+				<fileset dir="${pack.dir}" includes="${tuscanySDO.release.file.name}bin/"/>
+			</zip>
+		</then>
+		<else>
+			<tar destfile="${pack.dir}/${tuscanySDO.release.file.name}bin.tar.gz" compression="gzip"
longfile="gnu">
+				<fileset dir="${pack.dir}" includes="${tuscanySDO.release.file.name}bin/"/>
+			</tar>
+		</else>
+	</if>
 
-	<tar destfile="${pack.dir}/${tuscanySDO.release.file.name}bin.tar.gz" compression="gzip"
longfile="gnu">
-		<fileset dir="${pack.dir}" includes="${tuscanySDO.release.file.name}bin/"/>
-	</tar>
+	
 
 	<delete quiet="true" dir="${pack.dir}/${tuscanySDO.release.file.name}bin"/>
 



---------------------------------------------------------------------
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