<project name="csm-policy-updated" default="usage">

	<property environment="env"/>
	<property name="war.name" value="caaers"/>
	<property name="dataFile" value="src/test/resources/gov/nih/nci/cabig/caaers/security/testdata/CSM_policy.xml"/>
	
	<path id="cp">
		<fileset dir="${env.CATALINA_HOME}/webapps/${war.name}/WEB-INF/lib">
			<include name="*.jar"/>
		</fileset>
	</path>
	<target name="insert">
		<antcall target="run">
			<param name="operation" value="insert"/>
		</antcall>
	</target>
	<target name="delete">
		<antcall target="run">
			<param name="operation" value="delete"/>
		</antcall>
	</target>
	<target name="run">
		<property name="operation" value="insert"/>
		<java classname="gov.nih.nci.cabig.caaers.tools.CSMPolicyUpdater" classpathref="cp">
			<arg value="${operation}"/>
			<arg value="${dataFile}"/>
		</java>	
	</target>
	<target name="usage">
		<echo>Usage: insert|delete &lt;path_to_data_file&gt;</echo>
	</target>

</project>
<project name="csm-policy-updated" default="usage">

	<property environment="env"/>
	<property name="war.name" value="caaers"/>
	<property name="dataFile" value="CSM_policy.xml"/>
	
	<path id="cp">
		<fileset dir="${env.CATALINA_HOME}/webapps/${war.name}/WEB-INF/lib">
			<include name="*.jar"/>
		</fileset>
	</path>
	<target name="insert">
		<antcall target="run">
			<param name="operation" value="insert"/>
		</antcall>
	</target>
	<target name="delete">
		<antcall target="run">
			<param name="operation" value="delete"/>
		</antcall>
	</target>
	<target name="run">
		<property name="operation" value="insert"/>
		<java classname="gov.nih.nci.cabig.caaers.tools.CSMPolicyUpdater" classpathref="cp">
			<arg value="${operation}"/>
			<arg value="${dataFile}"/>
		</java>	
	</target>
	<target name="usage">
		<echo>Usage: insert|delete &lt;path_to_data_file&gt;</echo>
	</target>

</project>

Change dataFile default to look in current directory.
Change dataFile default to look in current directory.

SVN-Revision: 1305
