|
From: Markus B. <mba...@us...> - 2005-03-26 06:42:49
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.build/bootstrap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3939/bootstrap Modified Files: customTargets.xml Log Message: added replacements in postfetch, added targets for update-site Index: customTargets.xml =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.build/bootstrap/customTargets.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** customTargets.xml 27 Feb 2005 19:07:09 -0000 1.5 --- customTargets.xml 26 Mar 2005 06:42:40 -0000 1.6 *************** *** 92,95 **** --- 92,108 ---- <!-- ===================================================================== --> <target name="postFetch"> + <replace file="${buildDirectory}/features/org.rubypeople.rdt/feature.xml"> + <replacefilter token="CLOSE_XML_COMMENT" value="-->" /> + <replacefilter token="START_XML_COMMENT" value="<!--" /> + </replace> + + <replace file="${buildDirectory}/features/org.rubypeople.rdt/build.properties"> + <replacefilter token="#generate.feature" value="generate.feature" /> + </replace> + + <replace dir="${buildDirectory}/plugins"> + <include name="org.rubypeople.rdt.*/plugin.xml"/> + <replacefilter token="${featureVersion}" value="0.5.503260628" /> + </replace> </target> *************** *** 136,140 **** <!-- ===================================================================== --> <target name="postBuild"> ! <antcall target="test"></antcall> </target> --- 149,156 ---- <!-- ===================================================================== --> <target name="postBuild"> ! <antcall target="test"/> ! <property name="UpdateSiteStagingLocation" value="${buildDirectory}/updateSite"/> ! <property name="sitePackagePrefix" value="org.rubypeople.updatesite"/> ! <antcall target="generateUpdateSite"/> </target> *************** *** 158,161 **** --- 174,217 ---- </target> + <!--======================================================--> + <!-- UpdateSite Export target --> + <!-- ==================================================== --> + <target name="updateSiteExport"> + <ant antfile="build.xml" dir="${buildDirectory}/features/${id}/" target="build.update.jar"> + <property name="feature.destination" value="${UpdateSiteStagingLocation}/features"/> + <property name="plugin.destination" value="${UpdateSiteStagingLocation}/plugins"/> + </ant> + </target> + + + <target name="generateUpdateSite"> + <!-- Create the directory structure --> + <mkdir dir="${UpdateSiteStagingLocation}"/> + <mkdir dir="${UpdateSiteStagingLocation}/features"/> + <mkdir dir="${UpdateSiteStagingLocation}/plugins"/> + + <!-- Build the jar files --> + <antcall target="allElements"> + <param name="genericTargets" value="${builder}/customTargets.xml"/> + <param name="target" value="updateSiteExport"/> + </antcall> + + <!-- Grab the rest of the site out of CVS --> + <mkdir dir="${buildDirectory}/temp.updatesite"/> + <property name="cvsRoot" value=":ext:cvs.sf.net:/cvsroot/rubyeclipse" /> + + <cvs cvsRoot="${cvsRoot}" + package="${sitePackagePrefix}" + dest="${buildDirectory}/temp.updatesite" + tag="HEAD"/> + + <!-- Copy to staging area --> + <copy todir="${UpdateSiteStagingLocation}"> + <fileset file="${buildDirectory}/temp.updatesite/${sitePackagePrefix}/site.xml"/> + </copy> + + <delete dir="${buildDirectory}/temp.updatesite"/> + </target> + <!-- ===================================================================== --> <!-- Steps to do to publish the build results --> |