[jbosstools-commits] JBoss Tools SVN: r41726 - trunk/build/publish.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Jun 5 16:57:26 EDT 2012


Author: nickboldt
Date: 2012-06-05 16:57:25 -0400 (Tue, 05 Jun 2012)
New Revision: 41726

Modified:
   trunk/build/publish/publish.sh
Log:
JBDS-2197 put new sources zip into installer/ folder for now

Modified: trunk/build/publish/publish.sh
===================================================================
--- trunk/build/publish/publish.sh	2012-06-05 20:56:42 UTC (rev 41725)
+++ trunk/build/publish/publish.sh	2012-06-05 20:57:25 UTC (rev 41726)
@@ -167,19 +167,29 @@
 	done
 fi
 
-# create sources zip
-pushd ${WORKSPACE}/sources
-mkdir -p ${STAGINGDIR}/all
-if [[ ${JOB_NAME/.aggregate} != ${JOB_NAME} ]] && [[ -d ${WORKSPACE}/sources/aggregate/site/zips ]]; then
-	srczipname=${SRCSNAME/-Sources-/-Additional-Sources-}
+productSourcesZip="$(find ${WORKSPACE}/sources/product/sources/target -type f -name "jbdevstudio-product-sources-*.zip")"
+if [[ $productSourcesZip ]]; then
+	# for now, but the JBDS sources into the /installer/ folder
+	for z in $productSourcesZip; do
+		mkdir -p ${STAGINGDIR}/installer/
+		rsync -aq $z ${STAGINGDIR}/installer/
+		for m in $(md5sum ${z}); do if [[ $m != ${z} ]]; then echo $m > ${z}.MD5; fi; done
+	done
 else
-	srczipname=${SRCSNAME}
+	# create sources zip
+	pushd ${WORKSPACE}/sources
+	mkdir -p ${STAGINGDIR}/all
+	if [[ ${JOB_NAME/.aggregate} != ${JOB_NAME} ]] && [[ -d ${WORKSPACE}/sources/aggregate/site/zips ]]; then
+		srczipname=${SRCSNAME/-Sources-/-Additional-Sources-}
+	else
+		srczipname=${SRCSNAME}
+	fi
+	zip ${STAGINGDIR}/all/${srczipname} -q -r * -x hudson_workspace\* -x documentation\* -x download.jboss.org\* -x requirements\* \
+	  -x workingset\* -x labs\* -x build\* -x \*test\* -x \*target\* -x \*.class -x \*.svn\* -x \*classes\* -x \*bin\* -x \*.zip \
+	  -x \*docs\* -x \*reference\* -x \*releng\* -x \*.git\* -x \*/lib/\*.jar
+	popd
+	z=${STAGINGDIR}/all/${srczipname}; for m in $(md5sum ${z}); do if [[ $m != ${z} ]]; then echo $m > ${z}.MD5; fi; done
 fi
-zip ${STAGINGDIR}/all/${srczipname} -q -r * -x hudson_workspace\* -x documentation\* -x download.jboss.org\* -x requirements\* \
-  -x workingset\* -x labs\* -x build\* -x \*test\* -x \*target\* -x \*.class -x \*.svn\* -x \*classes\* -x \*bin\* -x \*.zip \
-  -x \*docs\* -x \*reference\* -x \*releng\* -x \*.git\* -x \*/lib/\*.jar
-popd
-z=${STAGINGDIR}/all/${srczipname}; for m in $(md5sum ${z}); do if [[ $m != ${z} ]]; then echo $m > ${z}.MD5; fi; done
 
 mkdir -p ${STAGINGDIR}/logs
 



More information about the jbosstools-commits mailing list