From 162a2058f0ec28232e1058694adfa161d2510af9 Mon Sep 17 00:00:00 2001
From: brutzman <brutzman@DESKTOP-2S09UKA>
Date: Thu, 8 Oct 2020 00:37:46 -0700
Subject: [PATCH] revised SISO REF 010 magic number, new version SISO REF 010
 silently published, copying update to open-dis7-source generator

---
 specifications/build.xml | 56 +++++++++++++++++++++++++++-------------
 1 file changed, 38 insertions(+), 18 deletions(-)

diff --git a/specifications/build.xml b/specifications/build.xml
index d4910393bb..0c9d87fa23 100644
--- a/specifications/build.xml
+++ b/specifications/build.xml
@@ -168,30 +168,50 @@
 	<!-- =============================================== -->
 	
     <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-v28"/>
+    
+    <property name="open-dis7-java.relative" value="../../x3d-github/open-dis7-java/open-dis7-source-generator"/>
+    
+    <property name="SISO-REF-010"       value="SISO-REF-010-v28"/>
+    <property name="SISO-REF-010.zipID" value="51787"/>
+    <property name="SISO-REF-010.1" value="SISO-REF-010.1-2019 Operations Manual for EWG V08.pdf"/>
+    
+    <target name="download.SISO">
+        <!-- danger will robinson -->
+        <echo message="*** Note ${SISO-REF-010} is found at hardwired url address ${SISO-REF-010.zipID}!  Be sure to check latest ID at"/>
+        <echo message="*** Also note that SISO sometimes rolls updates without change version numbers!"/>
+        <echo message=" computed url: ${sisoBaseUrl}${SISO-REF-010.zipID}"/>
+        <echo message="  website url: https://www.sisostds.org/DigitalLibrary.aspx?Command=Core_Download&amp;EntryId=51787"/>
+        
         <delete dir="${SISO-REF-010}" failonerror="false"/>
         <mkdir  dir="${SISO-REF-010}"/>
- 		<echo message="get ${SISO-REF-010}.zip from"/>
-		<echo message="    ${sisoBaseUrl}51787"/>
-        <get     src="${sisoBaseUrl}51787" 
-                dest="${SISO-REF-010}.zip" verbose="true"/>
-		<unzip   src="${SISO-REF-010}.zip"
-		        dest="${SISO-REF-010}" overwrite="true"/>
-		<delete file="${SISO-REF-010}.zip"/><!-- no longer needed -->
+        <echo message="get ${SISO-REF-010}.zip from"/>
+        <echo message="    ${sisoBaseUrl}${SISO-REF-010.zipID}"/>
+        <get     src="${sisoBaseUrl}${SISO-REF-010.zipID}" 
+                 dest="${SISO-REF-010}.zip" verbose="true"/>
+        <unzip   src="${SISO-REF-010}.zip"
+                 dest="${SISO-REF-010}.hold" overwrite="true"/>
+        <delete file="${SISO-REF-010}.zip"/><!-- no longer needed -->
         
-		<!-- ensure not duplicative and 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}"/>
-		<echo message="from ${sisoBaseUrl}47284"/>
-		<echo message="as   ${SISO-REF-010}/${SISO-REF-010.1}"/>
+        <!-- ensure not duplicative and already contained in preceding zip -->
+        <echo message="get  ${SISO-REF-010.1}"/>
+        <echo message="from ${sisoBaseUrl}47284"/>
+        <echo message="as   ${SISO-REF-010}/${SISO-REF-010.1}"/>
         <get     src="${sisoBaseUrl}47284"
-                dest="${SISO-REF-010}" verbose="true"/>
+                 dest="${SISO-REF-010}.hold" verbose="true"/>
         <echo message="fix download filename"/>
-        <move file="${SISO-REF-010}/DigitalLibrary.aspx" tofile="${SISO-REF-010}/${SISO-REF-010.1}" overwrite="true" verbose="true"/>
+        <move file="${SISO-REF-010}.hold/DigitalLibrary.aspx" tofile="${SISO-REF-010}.hold/${SISO-REF-010.1}" overwrite="true" verbose="true"/>
+    </target>
+    
+    <target name="push.SISO.open-dis7-java" description="view gitlab MV3500 examples in web browser (via Netbeans only)">
 
-	</target>
+        <echo message="*** copying latest unzipped version of XML to open-dis7-source-generator (hopefully not breaking anything!)"/>
+        <echo message='copy from ${SISO-REF-010}.hold/  to ${open-dis7-java.relative}/xml/SISO '/>
+        <copy todir="${open-dis7-java.relative}/xml/SISO" overwrite="true" verbose="true">
+            <fileset dir="${SISO-REF-010}.hold">
+                <include name="**/*"/>
+            </fileset>
+        </copy>
+    </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"/>
-- 
GitLab