alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<?xml version="1.0"?>

<project name="Create/Update + Publish Feed" default="publishFeed" basedir="..">
	<taskdef name="PublishFeed" classname="org.eclipse.releng.services.rss.RSSFeedPublisherTask"    classpath="./feedTools.jar"/>
	<taskdef name="AddEntry"    classname="org.eclipse.releng.generators.rss.RSSFeedAddEntryTask"   classpath="./feedTools.jar"/>
	<!-- to run from a shell, modify feedPublish.sh to suit your needs -->
	
	<target name="publishFeed">	
		<!-- TODO: include properties file here if not running from a shell script -->
		<property file="properties/feedPublish.emf.properties"/>
		<antcall target="addEntry"/>
		<antcall target="publishFeedToCVS"/>
		<antcall target="publishFeedWithSCP"/>
	</target>

	<target name="addEntry">
		<!-- 1. Add an entry (and create the feed if it doesn't already exist) -->
		<AddEntry 
			debug="${debug}" 
			file="${file}" 

			project="${project}"
			version="${version}"
			branch="${branch}"
			buildID="${buildID}"
			buildtype="${buildType}"
			feedURL="${feedURL}"
			buildURL="${buildURL}"

			buildAlias="${buildAlias}"
			
			buildDetailURL="${buildDetailURL}"
			buildConfigURL="${buildConfigURL}"
			buildLogURL="${buildLogURL}"
			buildMapURL="${buildMapURL}"
			
			dependencyURLs="${dependencyURLs}"
			releases="${Releases}"
			
			releaseNotesURL="${releaseNotesURL}"
			updateManagerURL="${updateManagerURL}"
			downloadsURL="${downloadsURL}"
			jarSigningStatus="${jarSigningStatus}"
			coordinatedStatus="${coordinatedStatus}"
			coordinatedDetails="${coordinatedDetails}"
			
			JUnitTestURL="${JUnitTestURL}"
			performanceTestURL="${performanceTestURL}"
			APITestURL="${APITestURL}"
			JUnitTestResults="${JUnitTestResults}"
			performanceTestResults="${performanceTestResults}"
			APITestResults="${APITestResults}"
		/>
	</target>

	<!-- 2. Publish feed: commit file into CVS - overwrite existing and add if necessary -->
	<target name="publishFeedToCVS">
		<PublishFeed 
			debug="${debug}" 
			file="${file}" 
			
			cvsExec="${cvsExec}"
			cvsRoot="${cvsRoot}"
			cvsPath="${cvsPath}"
			cvsTemp="${cvsTemp}"
		/>
		<delete dir="${cvsTemp}"/>
	</target>

	<!-- 3. Publish feed: SCP file to remote server, overwriting existing if exists -->
	<target name="publishFeedWithSCP">
		<PublishFeed 
			debug="${debug}" 
			file="${file}" 
			
			scpExec="${scpExec}"
			scpTarget="${scpTarget}"
			sshExec="${sshExec}"
		/>
	</target>	

</project>
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.