From: <jbo...@li...> - 2006-05-16 07:03:51
|
Author: mla...@jb... Date: 2006-05-16 03:03:47 -0400 (Tue, 16 May 2006) New Revision: 4244 Modified: labs/jbossweb/trunk/BUILDING.txt labs/jbossweb/trunk/build.properties.default labs/jbossweb/trunk/build.xml Log: Add download task for downloading a defined JBoss AS version directly from the sourceforge. Modified: labs/jbossweb/trunk/BUILDING.txt =================================================================== --- labs/jbossweb/trunk/BUILDING.txt 2006-05-16 06:46:58 UTC (rev 4243) +++ labs/jbossweb/trunk/BUILDING.txt 2006-05-16 07:03:47 UTC (rev 4244) @@ -3,4 +3,5 @@ - Install Ant 1.6.5 - put a JBoss AS binary distribution in the "jboss" folder (the version number must match what is in build.properties.default) +- Alternatively type "and download" to download the JBoss AS binary matching the build.properties.default defined version - type "ant"; the result is in "output/jbossweb-versionnumber" Modified: labs/jbossweb/trunk/build.properties.default =================================================================== --- labs/jbossweb/trunk/build.properties.default 2006-05-16 06:46:58 UTC (rev 4243) +++ labs/jbossweb/trunk/build.properties.default 2006-05-16 07:03:47 UTC (rev 4244) @@ -63,7 +63,7 @@ base-tomcat.loc=http://archive.apache.org/dist/tomcat # ----- Sourceforge files base location ----- -base-sf.loc=http://switch.dl.sourceforge.net/sourceforge -#base-sf.loc=http://heanet.dl.sourceforge.net/sourceforge +#base-sf.loc=http://switch.dl.sourceforge.net/sourceforge +base-sf.loc=http://heanet.dl.sourceforge.net/sourceforge #base-sf.loc=http://internap.dl.sourceforge.net/sourceforge Modified: labs/jbossweb/trunk/build.xml =================================================================== --- labs/jbossweb/trunk/build.xml 2006-05-16 06:46:58 UTC (rev 4243) +++ labs/jbossweb/trunk/build.xml 2006-05-16 07:03:47 UTC (rev 4244) @@ -12,7 +12,7 @@ <!-- Project Properties --> <property name="name" value="JBoss Web" /> - <property name="year" value="2005" /> + <property name="year" value="2006" /> <property name="version.major" value="4" /> <property name="version.minor" value="0" /> <property name="version.build" value="0" /> @@ -73,7 +73,30 @@ </target> + <!-- ===================== DEPLOY: Download JBoss ======================= --> + <target name="direxist"> + <echo message="Testing for ${destfile}"/> + <available file="${destfile}" type="dir" property="exist"/> + </target> + + <target name="downloadzip" unless="exist" depends="direxist"> + <!-- Download and extract the package --> + <get src="${sourcefile}" dest="${basedir}/file.zip" /> + <mkdir dir="${destdir}" /> + <unzip src="${basedir}/file.zip" dest="${destdir}"/> + <delete file="${basedir}/file.zip"/> + </target> + <target name="download" + description="Download binary packages" > + <antcall target="downloadzip"> + <param name="sourcefile" value="${base-sf.loc}/jboss/jboss-${jboss.version}.zip"/> + <param name="destfile" value="${jboss.build}"/> + <param name="destdir" value="${basedir}/jboss"/> + </antcall> + </target> + + <!-- ====================== DEPLOY: Copy Static Files =================== --> <target name="deploy-static" depends="init"> |