Skip to content
Snippets Groups Projects
Forked from Savage / NetworkedGraphicsMV3500
3578 commits behind the upstream repository.
build.xml 10.10 KiB
<?xml version="1.0" encoding="UTF-8"?>
<project name="Download IEEE and SISO Specifications" default="download.all" basedir=".">
		
	<target name="download.all" depends="download.clean.specifications,download.SISO,download.IeeeDisStandards.instructions"/>
	
	<target name="download.clean.specifications">
		<echo message="ensure all files are closed before deleting..."/>
		<delete verbose="true" failonerror="false">
			<fileset dir="." includes="**/*.pdf"/>
			<fileset dir="." includes="**/*.pdf"/>
			<fileset dir="." includes="**/*.doc"/>
			<fileset dir="." includes="**/*.htm"/>
            <fileset dir="." includes="**/*.xml">
                <exclude name="**/build.xml"/>
            </fileset>
			<fileset dir="." includes="**/*.xsd"/>
			<fileset dir="." includes="**/*.xsl"/>
			<fileset dir="." includes="**/Makefile"/>
			<fileset dir="." includes="**/README.txt"/>
			<fileset dir="." includes="**/SISO-REF-010-2019*/*"/>
		</delete>
		<delete verbose="true" failonerror="false" dir="SISO-REF-010-2019 Enumerations v26_files"/>
	</target>
	
	<!-- =============================================== -->
		
	<target name="download.IeeeDisStandards.rename" description="rename saved DIS specification files to readable filenames">
		<move file="6387564.pdf" tofile="IEEE1278.1-2012.DistributedInteractiveSimulation.ApplicationProtocols.6387564.pdf"   verbose="true" quiet="true" failonerror="false"/>
		<move file="7459689.pdf" tofile="IEEE1278.2-2015.DistributedInteractiveSimulation.CommunicationsServices.7459689.pdf" verbose="true" quiet="true" failonerror="false"/>
		<move file= "587529.pdf" tofile="IEEE1278.3-2015.DistributedInteractiveSimulation.CommunicationsServices.587529.pdf"  verbose="true" quiet="true" failonerror="false"/>
		<move file="6595010.pdf" tofile="IEEE1278.4-2013.DistributedInteractiveSimulation.VV+A.8685803.pdf"                   verbose="true" quiet="true" failonerror="false"/>
	
		<echo message="*.pdf directory contents:"/>
		<!-- https://stackoverflow.com/questions/10528032/listing-all-files-and-subdirectories-using-ant -->
		<fileset          id="dist.contents" dir="." includes="*.pdf"/> 
		<property  name="prop.dist.contents" refid="dist.contents"/>
		<!-- https://stackoverflow.com/questions/7102793/how-to-put-a-newline-in-ant-property -->
		<echo message="${prop.dist.contents}"/>
	</target>

	<!-- =============================================== -->
		
	<target name="download.IeeeDisStandards.instructions">
	
		<property name="ieeeExploreUrl"  value="https://ieeexplore.ieee.org" description="home page for users"/>
		<property name="ieeeBasePageUrl" value="https://ieeexplore.ieee.org/document/"/>
		<property name="ieeeBaseLinkUrl" value="https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&amp;arnumber="/>
		
		<echo message="Warning: due to cookie restrictions, you must download IEEE specifications manually via links found in README.md"/>
        <echo message="TODO? University students/faculty can first login with permissions to the IEEE Explore page, then use target download.IeeeDisStandards.retrieve"/>
        <echo message="IEEE Explore: ${ieeeExploreUrl}"/>
        
		<!-- ======================== -->
		<property name="DIS.1.document" value="6387564"/>
		<property name="DIS.1.rename"   value="IEEE1278.1-2012.DistributedInteractiveSimulation.ApplicationProtocols.${DIS.1.document}.pdf"/>
		<echo message="see ${ieeeBasePageUrl}${DIS.1.document}"/>
        <echo message="get ${ieeeBaseLinkUrl}${DIS.1.document}"/>
        <echo message="as  ${DIS.1.rename}"/>
        <!-- 
		<get     src="${ieeeBaseLinkUrl}${DIS.1.document}"
                dest="${DIS.1.rename}" verbose="true"/> -->
        <property name="warningMessage" value="Restriction: cookie restrictions prevent automated download.&#10;&#10;You must manually download this file while within NPS campus or firewall.&#10;&#10;For "/>
        <echo message="${warningMessage}IEEE1278.1 retrieval to this location, use your browser to save&#10;&#10;   ${ieeeBaseLinkUrl}${DIS.1.document}"
                 file="${DIS.1.rename}.SAVEME"/>
		
		<!-- ======================== -->
		<property name="DIS.2.document" value="7459689"/>
		<property name="DIS.2.rename"   value="IEEE1278.2-2015.DistributedInteractiveSimulation.CommunicationsServices.${DIS.2.document}.pdf.SAVEME"/>
		<echo message="see ${ieeeBasePageUrl}${DIS.2.document}"/>
        <echo message="get ${ieeeBaseLinkUrl}${DIS.2.document}"/>
        <echo message="as  ${DIS.2.rename}"/>
        <!-- 
        <get     src="${ieeeBaseLinkUrl}${DIS.2.document}"
                dest="${DIS.2.rename}" verbose="true"/> -->
        <echo message="${warningMessage}IEEE1278.2 retrieval to this location, use your browser to save&#10;&#10;   ${ieeeBaseLinkUrl}${DIS.2.document}"
                 file="${DIS.2.rename}"/>
		
		<!-- ======================== -->
		<property name="DIS.3.document" value="587529"/>
		<property name="DIS.3.rename"   value="IEEE1278.3-2015.DistributedInteractiveSimulation.CommunicationsServices.${DIS.3.document}.pdf.SAVEME"/>
		<echo message="see ${ieeeBasePageUrl}${DIS.3.document}"/>
        <echo message="get ${ieeeBaseLinkUrl}${DIS.3.document}"/>
        <echo message="as  ${DIS.3.rename}"/>
        <!-- 
        <get     src="${ieeeBaseLinkUrl}${DIS.3.document}"
                dest="${DIS.3.rename}" verbose="true"/> -->
        <echo message="${warningMessage}IEEE1278.3 retrieval to this location, use your browser to save&#10;&#10;   ${ieeeBaseLinkUrl}${DIS.3.document}"
                 file="${DIS.3.rename}"/>
		
		<!-- ======================== -->
		<property name="DIS.4.document" value="8685803"/>
		<property name="DIS.4.rename"   value="IEEE1278.4-2013.DistributedInteractiveSimulation.VV+A.${DIS.4.document}.pdf.SAVEME"/>
		<echo message="see ${ieeeBasePageUrl}${DIS.4.document}"/>
        <echo message="get ${ieeeBaseLinkUrl}${DIS.4.document}"/>
        <echo message="as  ${DIS.4.rename}"/>
        <!-- 
        <get     src="${ieeeBaseLinkUrl}${DIS.4.document}"
                dest="${DIS.4.rename}" verbose="true"/> -->
        <echo message="${warningMessage}IEEE1278.4 retrieval to this location, use your browser to save&#10;&#10;   ${ieeeBaseLinkUrl}${DIS.4.document}"
                 file="${DIS.4.rename}"/>
	</target>
    
	<target name="download.IeeeDisStandards.retrieve">
        <!-- TODO does this work inside NPS firewall? -->
	
		<property name="ieeeExploreUrl"  value="https://ieeexplore.ieee.org" description="home page for users"/>
		<property name="ieeeBasePageUrl" value="https://ieeexplore.ieee.org/document/"/>
		<property name="ieeeBaseLinkUrl" value="https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&amp;arnumber="/>
		
		<echo message="Warning: due to cookie restrictions, you must download IEEE specifications manually via links found in README.md"/>
        <echo message="University students/faculty can first login with permissions to the IEEE Explore page, then use target download.IeeeDisStandards"/>
        <echo message="IEEE Explore: ${ieeeExploreUrl}"/>
        
		<!-- ======================== -->
		<property name="DIS.1.document" value="6387564"/>
		<property name="DIS.1.rename"   value="IEEE1278.1-2012.DistributedInteractiveSimulation.ApplicationProtocols.${DIS.1.document}.pdf"/>
		<echo message="see ${ieeeBasePageUrl}${DIS.1.document}"/>
        <echo message="get ${ieeeBaseLinkUrl}${DIS.1.document}"/>
        <echo message="as  ${DIS.1.rename}"/>
		<get     src="${ieeeBaseLinkUrl}${DIS.1.document}"
                dest="${DIS.1.rename}" verbose="true"/>
	
		<!-- ======================== -->
		<property name="DIS.2.document" value="7459689"/>
		<property name="DIS.2.rename"   value="IEEE1278.2-2015.DistributedInteractiveSimulation.CommunicationsServices.${DIS.2.document}.pdf"/>
		<echo message="see ${ieeeBasePageUrl}${DIS.2.document}"/>
        <echo message="get ${ieeeBaseLinkUrl}${DIS.2.document}"/>
        <echo message="as  ${DIS.2.rename}"/>
        <get     src="${ieeeBaseLinkUrl}${DIS.2.document}"
                dest="${DIS.2.rename}" verbose="true"/>
		
		<!-- ======================== -->
		<property name="DIS.3.document" value="587529"/>
		<property name="DIS.3.rename"   value="IEEE1278.3-2015.DistributedInteractiveSimulation.CommunicationsServices.${DIS.3.document}.pdf"/>
		<echo message="see ${ieeeBasePageUrl}${DIS.3.document}"/>
        <echo message="get ${ieeeBaseLinkUrl}${DIS.3.document}"/>
        <echo message="as  ${DIS.3.rename}"/>
        <get     src="${ieeeBaseLinkUrl}${DIS.3.document}"
                dest="${DIS.3.rename}" verbose="true"/> 
		
		<!-- ======================== -->
		<property name="DIS.4.document" value="8685803"/>
		<property name="DIS.4.rename"   value="IEEE1278.4-2013.DistributedInteractiveSimulation.VV+A.${DIS.4.document}.pdf"/>
		<echo message="see ${ieeeBasePageUrl}${DIS.4.document}"/>
        <echo message="get ${ieeeBaseLinkUrl}${DIS.4.document}"/>
        <echo message="as  ${DIS.4.rename}"/>
        <get     src="${ieeeBaseLinkUrl}${DIS.4.document}"
                dest="${DIS.4.rename}" verbose="true"/>
	</target>
	
	<!-- =============================================== -->
	
    <property name="sisoBaseUrl" value="https://www.sisostds.org/DigitalLibrary.aspx?Command=Core_Download&amp;EntryId="/>
	
	<target name="download.SISO">
		
		<property name="SISO-REF-010" value="SISO-REF-010-v26.zip"/>
		<echo message="get ${SISO-REF-010}"/>
        <get     src="${sisoBaseUrl}46171"
                dest="${SISO-REF-010}" verbose="true"/>
		<unzip   src="${SISO-REF-010}"
		        dest="" overwrite="true"/>
		<delete file="${SISO-REF-010}"/>
        
		<!-- duplicative, already contained in preceding zip
		<property name="SISO-REF-010.1" value="SISO-REF-010.1-2019 Operations Manual for EWG V08.pdf"/>
		<echo message="get ${SISO-REF-010.1}"/>
        <get     src="${sisoBaseUrl}46173"
                dest="${SISO-REF-010.1}" verbose="true"/>
        -->

	</target>
    
    <target name="view.gitlab.specifications.README" description="view gitlab MV3500 examples in web browser (via Netbeans only)">
        <echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/specifications/README.md"/>
        <nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/specifications/README.md"/>
    </target>

</project>