From c884c4fc000eba3782f805813a9a45f2bcc26774 Mon Sep 17 00:00:00 2001
From: brutzman <brutzman@nps.edu>
Date: Wed, 5 Sep 2018 16:20:18 -0700
Subject: [PATCH] add target rename.IeeeDisStandards

---
 specifications/build.xml | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/specifications/build.xml b/specifications/build.xml
index ce048bb79c..2c2a096ea5 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"/>
-- 
GitLab