Home | History | Annotate | Download | only in scripts_rss
      1 <?xml version="1.0"?>
      2 
      3 <project name="Create/Update + Publish Feed" default="publishFeed" basedir="..">
      4 	<taskdef name="PublishFeed" classname="org.eclipse.releng.services.rss.RSSFeedPublisherTask"    classpath="./feedTools.jar"/>
      5 	<taskdef name="AddEntry"    classname="org.eclipse.releng.generators.rss.RSSFeedAddEntryTask"   classpath="./feedTools.jar"/>
      6 	<!-- to run from a shell, modify feedPublish.sh to suit your needs -->
      7 	
      8 	<target name="publishFeed">	
      9 		<!-- TODO: include properties file here if not running from a shell script -->
     10 		<property file="properties/feedPublish.emf.properties"/>
     11 		<antcall target="addEntry"/>
     12 		<antcall target="publishFeedToCVS"/>
     13 		<antcall target="publishFeedWithSCP"/>
     14 	</target>
     15 
     16 	<target name="addEntry">
     17 		<!-- 1. Add an entry (and create the feed if it doesn't already exist) -->
     18 		<AddEntry 
     19 			debug="${debug}" 
     20 			file="${file}" 
     21 
     22 			project="${project}"
     23 			version="${version}"
     24 			branch="${branch}"
     25 			buildID="${buildID}"
     26 			buildtype="${buildType}"
     27 			feedURL="${feedURL}"
     28 			buildURL="${buildURL}"
     29 
     30 			buildAlias="${buildAlias}"
     31 			
     32 			buildDetailURL="${buildDetailURL}"
     33 			buildConfigURL="${buildConfigURL}"
     34 			buildLogURL="${buildLogURL}"
     35 			buildMapURL="${buildMapURL}"
     36 			
     37 			dependencyURLs="${dependencyURLs}"
     38 			releases="${Releases}"
     39 			
     40 			releaseNotesURL="${releaseNotesURL}"
     41 			updateManagerURL="${updateManagerURL}"
     42 			downloadsURL="${downloadsURL}"
     43 			jarSigningStatus="${jarSigningStatus}"
     44 			coordinatedStatus="${coordinatedStatus}"
     45 			coordinatedDetails="${coordinatedDetails}"
     46 			
     47 			JUnitTestURL="${JUnitTestURL}"
     48 			performanceTestURL="${performanceTestURL}"
     49 			APITestURL="${APITestURL}"
     50 			JUnitTestResults="${JUnitTestResults}"
     51 			performanceTestResults="${performanceTestResults}"
     52 			APITestResults="${APITestResults}"
     53 		/>
     54 	</target>
     55 
     56 	<!-- 2. Publish feed: commit file into CVS - overwrite existing and add if necessary -->
     57 	<target name="publishFeedToCVS">
     58 		<PublishFeed 
     59 			debug="${debug}" 
     60 			file="${file}" 
     61 			
     62 			cvsExec="${cvsExec}"
     63 			cvsRoot="${cvsRoot}"
     64 			cvsPath="${cvsPath}"
     65 			cvsTemp="${cvsTemp}"
     66 		/>
     67 		<delete dir="${cvsTemp}"/>
     68 	</target>
     69 
     70 	<!-- 3. Publish feed: SCP file to remote server, overwriting existing if exists -->
     71 	<target name="publishFeedWithSCP">
     72 		<PublishFeed 
     73 			debug="${debug}" 
     74 			file="${file}" 
     75 			
     76 			scpExec="${scpExec}"
     77 			scpTarget="${scpTarget}"
     78 			sshExec="${sshExec}"
     79 		/>
     80 	</target>	
     81 
     82 </project>
     83