diff --git a/specifications/build.xml b/specifications/build.xml index ce048bb79c9b6f0a1437c8a129ecb65b954d4019..2c2a096ea5ba4e70e6ea077d57fdc7097f33b853 100644 --- a/specifications/build.xml +++ b/specifications/build.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <project name="DIS Utilities" default="" basedir="."> - <target name="all" depends="clean.specifications,download.IeeeDisStandards,download.SISO"/> + <target name="all" depends="clean.specifications,download.IeeeDisStandards,download.SISO,rename.IeeeDisStandards"/> <target name="clean.specifications"> <echo message="ensure all files are closed before deleting..."/> @@ -16,6 +16,22 @@ <!-- =============================================== --> + <target name="rename.IeeeDisStandards" 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.6595010.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"> <echo message="Warning: due to cookie restrictions, you must download IEEE specifications manually via links on README.DIS.md"/>