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="Validate a Feed" default="validateFeed" basedir="../">
	<!-- TODO: set correct path to EMF plugins -->
 	<property name="EMF_HOME" value="../../eclipse-plugins-emf22/eclipse/plugins"/>
	<echo message="Using EMF_HOME = ${EMF_HOME}"/>

	<taskdef name="validateFeed" 
	  classname="org.eclipse.releng.util.rss.emf.RSSFeedValidatorDynamicTask">
		<classpath>
			<pathelement path="feedValidator.jar"/>
		     <fileset dir="${EMF_HOME}">
		        <include name="**/org.eclipse.emf.ecore_*.jar"/>
		        <include name="**/org.eclipse.emf.common_*.jar"/>
	    		<include name="**/org.eclipse.emf.ecore.xmi_*.jar"/>
		    	<include name="**/org.eclipse.xsd_*.jar"/>
		      </fileset>
		</classpath>
	</taskdef>

	<!-- debug: 0|1|2 -->
	<target name="validateFeed" description="verify if the feed is valid with respect to the schema">
		<validateFeed
			debug="2" 
			XSDFile="../schema/atom10_build.xsd" 
			XMLFile="../data/builds-emf.xml" >
		</validateFeed>
	</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.