Skip to content
Snippets Groups Projects
Commit a916b110 authored by ethanjwilliams's avatar ethanjwilliams
Browse files

Merge origin/master

parents 977e46ae 591345bb
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
Copyright (c) 1995-2023 held by the author(s). All rights reserved. Copyright (c) 1995-2023 held by the author(s). All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions modification, are permitted provided that the following conditions
are met: are met:
* Redistributions of source code must retain the above copyright * Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright * Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the in the documentation and/or other materials provided with the
distribution. distribution.
* Neither the names of the Naval Postgraduate School (NPS) * Neither the names of the Naval Postgraduate School (NPS)
Modeling Virtual Environments and Simulation (MOVES) Institute Modeling Virtual Environments and Simulation (MOVES) Institute
(https://www.nps.edu and https://www.MovesInstitute.org) (https://www.nps.edu and https://www.MovesInstitute.org)
nor the names of its contributors may be used to endorse or nor the names of its contributors may be used to endorse or
promote products derived from this software without specific promote products derived from this software without specific
prior written permission. prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
--> -->
<!-- <!--
Document : build.xml Document : build.xml
Created on : 1 November 2017 Created on : 1 November 2017
Author : Don Brutzman and Don McGregor Author : Don Brutzman and Don McGregor
Description: Ant build.xml file for Networked Graphics MV3500 Description: Ant build.xml file for Networked Graphics MV3500
--> -->
<project name="MV3500 Networked Graphics" default="all" basedir="."> <project name="MV3500 Networked Graphics" default="all" basedir=".">
<description>Build targets for NPS Networked Graphics MV3500</description> <description>Build targets for NPS Networked Graphics MV3500</description>
<!-- TODO add targets for project maintenance, testing and deployment <!-- TODO add targets for project maintenance, testing and deployment
<property name="specificationsDirectory" location="specifications"/> <property name="specificationsDirectory" location="specifications"/>
<import file="specifications/build.xml"/> --> <import file="specifications/build.xml"/> -->
<property file="build.properties"/> <property file="build.properties"/>
<target name="versions" description="show tool versions and environment values"> <target name="versions" description="show tool versions and environment values">
<echo>ant -version</echo> <echo>ant -version</echo>
<exec executable="ant" dir="." vmlauncher="false"> <exec executable="ant" dir="." vmlauncher="false">
<arg value="-version"/> <arg value="-version"/>
</exec> </exec>
<echo>java -version</echo> <echo>java -version</echo>
<exec executable="java" dir="." vmlauncher="false"> <exec executable="java" dir="." vmlauncher="false">
<arg value="-version"/> <arg value="-version"/>
</exec> </exec>
<echo></echo> <echo></echo>
<!-- Ant environment variables https://ant.apache.org/manual/Tasks/property.html --> <!-- Ant environment variables https://ant.apache.org/manual/Tasks/property.html -->
<echo> ANT_HOME=${env.ANT_HOME}</echo> <echo> ANT_HOME=${env.ANT_HOME}</echo>
<echo> JAVA_HOME=${env.JAVA_HOME}</echo> <echo> JAVA_HOME=${env.JAVA_HOME}</echo>
<echo>CLASSPATH=${env.CLASSPATH}</echo> <echo>CLASSPATH=${env.CLASSPATH}</echo>
<!--<echo>USER =${env.USER}</echo> --> <!--<echo>USER =${env.USER}</echo> -->
<!-- https://stackoverflow.com/questions/949678/ant-is-using-wrong-java-version --> <!-- https://stackoverflow.com/questions/949678/ant-is-using-wrong-java-version -->
<!--echo>javac source/target $java.source=${java.source}</ --> <!--echo>javac source/target $java.source=${java.source}</ -->
<echo>Java/JVM version $ant.java.version=${ant.java.version}</echo> <echo>Java/JVM version $ant.java.version=${ant.java.version}</echo>
<echo>Java/JVM detail version $java.version=${java.version}</echo> <echo>Java/JVM detail version $java.version=${java.version}</echo>
<echo>Ant version $ant.version=${ant.version}</echo> <echo>Ant version $ant.version=${ant.version}</echo>
<echo>Configuration settings: https://savage.nps.edu/Savage/developers.html</echo> <echo>Configuration settings: https://savage.nps.edu/Savage/developers.html</echo>
<!-- TODO Netbeans version --> <!-- TODO Netbeans version -->
<!-- TODO Netbeans project version --> <!-- TODO Netbeans project version -->
<!-- DEBUG: to show all environment and local properties, add <!-- DEBUG: to show all environment and local properties, add
<echoproperties/> --> <echoproperties/> -->
<echo message="==========================================="/> <echo message="==========================================="/>
</target> </target>
<target name="all" depends="versions"> <target name="all" depends="versions">
<ant dir="examples" target="clean"/> <ant dir="examples" target="clean"/>
<ant dir="examples" target="jar"/> <ant dir="examples" target="jar"/>
<ant dir="assignments" target="clean"/> <ant dir="assignments" target="clean"/>
<ant dir="assignments" target="jar"/> <ant dir="assignments" target="jar"/>
<antcall target="javadoc.all"/> <antcall target="javadoc.all"/>
</target> </target>
<target name="clean.all.pduLogs" description="clean autogenerated PDU capture logs"> <target name="clean.all.pduLogs" description="clean autogenerated PDU capture logs">
<ant dir="assignments" target="clean.all.pduLogs"/> <ant dir="assignments" target="clean.all.pduLogs"/>
<ant dir="examples" target="clean.all.pduLogs"/> <ant dir="examples" target="clean.all.pduLogs"/>
</target> </target>
<target name="javadoc.all"> <target name="javadoc.custom.all">
<ant dir="assignments" target="javadoc.custom" useNativeBaseDir="true"/> <ant dir="assignments" target="javadoc.custom" useNativeBaseDir="true"/>
<ant dir="examples" target="javadoc.custom" useNativeBaseDir="true"/> <ant dir="examples" target="javadoc.custom" useNativeBaseDir="true"/>
</target> </target>
<target name="view.gitlab.nps.edu.MV3500" description="view MV3500 gitlab site in web browser (via Netbeans only)"> <target name="view.gitlab.nps.edu.MV3500" description="view MV3500 gitlab site in web browser (via Netbeans only)">
<echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500"/> <echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500"/>
<nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500"/> <nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500"/>
<!-- TODO implementation-independent approach if possible. other Ant approaches have to be customized for each OS --> <!-- TODO implementation-independent approach if possible. other Ant approaches have to be customized for each OS -->
</target> </target>
<target name="view.gitlab.nps.edu.MV3500.assignments" description="view MV3500 gitlab examples in web browser (via Netbeans only)"> <target name="view.gitlab.nps.edu.MV3500.assignments" description="view MV3500 gitlab examples in web browser (via Netbeans only)">
<echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/assignments"/> <echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/assignments"/>
<nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/assignments"/> <nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/assignments"/>
</target> </target>
<target name="view.gitlab.nps.edu.MV3500.examples" description="view MV3500 gitlab examples in web browser (via Netbeans only)"> <target name="view.gitlab.nps.edu.MV3500.examples" description="view MV3500 gitlab examples in web browser (via Netbeans only)">
<echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/examples"/> <echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/examples"/>
<nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/examples"/> <nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/examples"/>
<!-- TODO implementation-independent approach if possible. other Ant approaches have to be customized for each OS --> <!-- TODO implementation-independent approach if possible. other Ant approaches have to be customized for each OS -->
</target> </target>
<target name="view.gitlab.nps.edu.MV3500.issues" description="view online issues in web browser (Netbeans only)"> <target name="view.gitlab.nps.edu.MV3500.issues" description="view online issues in web browser (Netbeans only)">
<echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/issues" /> <echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/issues" />
<nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/issues" /> <nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/issues" />
<!-- TODO implementation-independent approach if possible, but note that other Ant approaches usually have to be customized for each OS. --> <!-- TODO implementation-independent approach if possible, but note that other Ant approaches usually have to be customized for each OS. -->
<echo message="... for issue visibility, be sure to login" /> <echo message="... for issue visibility, be sure to login" />
</target> </target>
<target name="view.gitlab.nps.edu.MV3500.specifications.README" description="view MV3500 gitlab examples in web browser (via Netbeans only)"> <target name="view.gitlab.nps.edu.MV3500.specifications.README" description="view MV3500 gitlab examples in web browser (via Netbeans only)">
<echo message="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/specifications/README.md"/> <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"/> <nbbrowse url="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/specifications/README.md"/>
</target> </target>
<target name="view.open-dis.github.com" description="view github open-dis site in web browser (via Netbeans only)"> <target name="view.open-dis.github.com" description="view github open-dis site in web browser (via Netbeans only)">
<echo message="https://github.com/open-dis"/> <echo message="https://github.com/open-dis"/>
<nbbrowse url="https://github.com/open-dis"/> <nbbrowse url="https://github.com/open-dis"/>
</target> </target>
<target name="view.open-dis.github.com.opendis7-java" description="view github open-dis open-dis-java current build in web browser (via Netbeans only)"> <target name="view.open-dis.github.com.opendis7-java" description="view github open-dis open-dis-java current build in web browser (via Netbeans only)">
<echo message="https://github.com/open-dis/opendis7-java"/> <echo message="https://github.com/open-dis/opendis7-java"/>
<nbbrowse url="https://github.com/open-dis/opendis7-java"/> <nbbrowse url="https://github.com/open-dis/opendis7-java"/>
</target> </target>
<target name="view.open-dis.github.com.opendis7-source-generator" description="view github open-dis opendis7-source-generator project in web browser (via Netbeans only)"> <target name="view.open-dis.github.com.opendis7-source-generator" description="view github open-dis opendis7-source-generator project in web browser (via Netbeans only)">
<echo message="https://github.com/open-dis"/> <echo message="https://github.com/open-dis"/>
<nbbrowse url="https://github.com/open-dis"/> <nbbrowse url="https://github.com/open-dis"/>
</target> </target>
<target name="update.opendis7.jar.from.local" description="update opendis7-java jar files from locally built project into lib directory"> <target name="update.opendis7.jar.from.local" description="update opendis7-java jar files from locally built project into lib directory">
<property name="opendis7-java.relative" value="../../x3d-github/opendis7-java/dist"/> <property name="opendis7-java.relative" value="../../x3d-github/opendis7-java/dist"/>
<echo message="Copy ${opendis7-java.relative}/opendis7-full.jar to project lib/ subdirectory..."/> <echo message="Copy ${opendis7-java.relative}/opendis7-full.jar to project lib/ subdirectory..."/>
<!-- https://ant.apache.org/manual/Tasks/fail.html --> <!-- https://ant.apache.org/manual/Tasks/fail.html -->
<fail message="opendis7-full.jar not found"> <fail message="opendis7-full.jar not found">
<condition> <condition>
<not> <not>
<resourcecount count="1"> <resourcecount count="1">
<fileset id="fs" dir="${opendis7-java.relative}" includes="opendis7-full.jar"/><!-- comma separated --> <fileset id="fs" dir="${opendis7-java.relative}" includes="opendis7-full.jar"/><!-- comma separated -->
</resourcecount> </resourcecount>
</not> </not>
</condition> </condition>
</fail> </fail>
<!-- clean out prior versions --> <!-- clean out prior versions -->
<delete file="lib/opendis7-pdus-classes.jar" verbose="false" failonerror="false"/> <delete file="lib/opendis7-pdus-classes.jar" verbose="false" failonerror="false"/>
<delete file="lib/opendis7-pdus-javadoc.jar" verbose="false" failonerror="false"/> <delete file="lib/opendis7-pdus-javadoc.jar" verbose="false" failonerror="false"/>
<delete file="lib/opendis7-pdus-source.jar" verbose="false" failonerror="false"/> <delete file="lib/opendis7-pdus-source.jar" verbose="false" failonerror="false"/>
<delete file="lib/opendis7-enumerations-classes.jar" verbose="false" failonerror="false"/> <delete file="lib/opendis7-enumerations-classes.jar" verbose="false" failonerror="false"/>
<delete file="lib/opendis7-enumerations-javadoc.jar" verbose="false" failonerror="false"/> <delete file="lib/opendis7-enumerations-javadoc.jar" verbose="false" failonerror="false"/>
<delete file="lib/opendis7-enumerations-source.jar" verbose="false" failonerror="false"/> <delete file="lib/opendis7-enumerations-source.jar" verbose="false" failonerror="false"/>
<!-- replace latest version --> <!-- replace latest version -->
<delete file="lib/opendis7-full.jar" verbose="true" failonerror="false"/> <delete file="lib/opendis7-full.jar" verbose="true" failonerror="false"/>
<copy file="${opendis7-java.relative}/opendis7-full.jar" todir="lib" force="true" verbose="true" failonerror="true"/> <copy file="${opendis7-java.relative}/opendis7-full.jar" todir="lib" force="true" verbose="true" failonerror="true"/>
<!-- <!--
<delete file="assignments/dist/lib/opendis7-full.jar" verbose="true" failonerror="false"/> <delete file="assignments/dist/lib/opendis7-full.jar" verbose="true" failonerror="false"/>
<delete file="examples/dist/lib/opendis7-full.jar" verbose="true" failonerror="false"/> <delete file="examples/dist/lib/opendis7-full.jar" verbose="true" failonerror="false"/>
<copy file="${opendis7-java.relative}/opendis7-full.jar" todir="assignments/dist/lib" force="true" verbose="true" failonerror="true"/> <copy file="${opendis7-java.relative}/opendis7-full.jar" todir="assignments/dist/lib" force="true" verbose="true" failonerror="true"/>
<copy file="${opendis7-java.relative}/opendis7-full.jar" todir="examples/dist/lib" force="true" verbose="true" failonerror="true"/> <copy file="${opendis7-java.relative}/opendis7-full.jar" todir="examples/dist/lib" force="true" verbose="true" failonerror="true"/>
<copy file="${opendis7-java.relative}/opendis7-enumerations-classes.jar" todir="lib" force="true" verbose="true" failonerror="true"/> <copy file="${opendis7-java.relative}/opendis7-enumerations-classes.jar" todir="lib" force="true" verbose="true" failonerror="true"/>
<copy file="${opendis7-java.relative}/opendis7-enumerations-source.jar" todir="lib" force="true" verbose="true" failonerror="true"/> <copy file="${opendis7-java.relative}/opendis7-enumerations-source.jar" todir="lib" force="true" verbose="true" failonerror="true"/>
<copy file="${opendis7-java.relative}/opendis7-enumerations-javadoc.jar" todir="lib" force="true" verbose="true" failonerror="true"/> <copy file="${opendis7-java.relative}/opendis7-enumerations-javadoc.jar" todir="lib" force="true" verbose="true" failonerror="true"/>
<fail message="opendis7-pdus-classes.jar not found"> <fail message="opendis7-pdus-classes.jar not found">
<condition> <condition>
<not> <not>
<resourcecount count="1"> <resourcecount count="1">
<fileset id="fs" dir="${opendis7-java.relative}" includes="opendis7-pdus-classes.jar"/> <fileset id="fs" dir="${opendis7-java.relative}" includes="opendis7-pdus-classes.jar"/>
</resourcecount> </resourcecount>
</not> </not>
</condition> </condition>
</fail> </fail>
<copy file="${opendis7-java.relative}/opendis7-pdus-classes.jar" todir="lib" force="true" verbose="true" failonerror="true"/> <copy file="${opendis7-java.relative}/opendis7-pdus-classes.jar" todir="lib" force="true" verbose="true" failonerror="true"/>
<copy file="${opendis7-java.relative}/opendis7-pdus-javadoc.jar" todir="lib" force="true" verbose="true" failonerror="true"/> <copy file="${opendis7-java.relative}/opendis7-pdus-javadoc.jar" todir="lib" force="true" verbose="true" failonerror="true"/>
<copy file="${opendis7-java.relative}/opendis7-pdus-source.jar" todir="lib" force="true" verbose="true" failonerror="true"/> <copy file="${opendis7-java.relative}/opendis7-pdus-source.jar" todir="lib" force="true" verbose="true" failonerror="true"/>
--> -->
<!-- <delete file="lib/opendis7-classes.jar" verbose="true" failonerror="false"/> prior name --> <!-- <delete file="lib/opendis7-classes.jar" verbose="true" failonerror="false"/> prior name -->
<!-- <delete file="lib/opendis7-javadoc.jar" verbose="true" failonerror="false"/> prior name --> <!-- <delete file="lib/opendis7-javadoc.jar" verbose="true" failonerror="false"/> prior name -->
<!-- <delete file="lib/opendis7-source.jar" verbose="true" failonerror="false"/> prior name --> <!-- <delete file="lib/opendis7-source.jar" verbose="true" failonerror="false"/> prior name -->
</target> </target>
<property name="gitlab.nps.edu.MV3500.lib" value="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/tree/master/lib"/> <property name="gitlab.nps.edu.MV3500.lib" value="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/tree/master/lib"/>
<target name="update.opendis7.jar.from.gitlab" description="Update local opendis7 .jar files in project lib directory"> <target name="update.opendis7.jar.from.gitlab" description="Update local opendis7 .jar files in project lib directory">
<echo message="Update local opendis7 .jar files in project lib directory using"/> <echo message="Update local opendis7 .jar files in project lib directory using"/>
<echo message=" ${gitlab.nps.edu.MV3500.lib}"/> <echo message=" ${gitlab.nps.edu.MV3500.lib}"/>
<nbbrowse url= "${gitlab.nps.edu.MV3500.lib}"/> <nbbrowse url= "${gitlab.nps.edu.MV3500.lib}"/>
<get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-full.jar" <get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-full.jar"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
<!-- <!--
<get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-pdus-classes.jar" <get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-pdus-classes.jar"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
<get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-enumerations-classes.jar" <get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-enumerations-classes.jar"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
<get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-pdus-source.jar" <get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-pdus-source.jar"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
<get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-enumerations-source.jar" <get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-enumerations-source.jar"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
<get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-pdus-javadoc.jar" <get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-pdus-javadoc.jar"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
<get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-enumerations-javadoc.jar" <get src="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/lib/opendis7-enumerations-javadoc.jar"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
--> -->
</target> </target>
<target name="update.opendis7.jar.from.maven" description="update opendis7.jar in project lib directory"> <target name="update.opendis7.jar.from.maven" description="update opendis7.jar in project lib directory">
<echo message="TODO retrieve from Maven published repository once available"/> <echo message="TODO retrieve from Maven published repository once available"/>
</target> </target>
<property name="gitlab.nps.edu.MV3302.lib" value="https://gitlab.nps.edu/abuss/MV3302ClassCode/-/tree/master/lib/Simkit"/> <property name="gitlab.nps.edu.MV3302.lib" value="https://gitlab.nps.edu/abuss/MV3302ClassCode/-/tree/master/lib/Simkit"/>
<target name="update.simkit.jar.from.gitlab" description="Update local opendis7 .jar files in project lib directory"> <target name="update.simkit.jar.from.gitlab" description="Update local opendis7 .jar files in project lib directory">
<echo message="Update local simkit .jar files in project lib directory using"/> <echo message="Update local simkit .jar files in project lib directory using"/>
<echo message="TODO not yet updating correctly..."/> <echo message="TODO not yet updating correctly..."/>
<echo message=" ${gitlab.nps.edu.MV3302.lib}"/> <echo message=" ${gitlab.nps.edu.MV3302.lib}"/>
<nbbrowse url= "${gitlab.nps.edu.MV3302.lib}"/> <nbbrowse url= "${gitlab.nps.edu.MV3302.lib}"/>
<get src="https://gitlab.nps.edu/abuss/MV3302ClassCode/-/raw/master/lib/Simkit/simkit.jar" <get src="https://gitlab.nps.edu/abuss/MV3302ClassCode/-/raw/master/lib/Simkit/simkit.jar"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
<get src="https://gitlab.nps.edu/abuss/MV3302ClassCode/-/raw/master/lib/Simkit/simkit-src.zip" <get src="https://gitlab.nps.edu/abuss/MV3302ClassCode/-/raw/master/lib/Simkit/simkit-src.zip"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
<get src="https://gitlab.nps.edu/abuss/MV3302ClassCode/-/raw/master/lib/Simkit/simkit-doc.zip" <get src="https://gitlab.nps.edu/abuss/MV3302ClassCode/-/raw/master/lib/Simkit/simkit-doc.zip"
dest="lib" verbose="true" usetimestamp="true"/> dest="lib" verbose="true" usetimestamp="true"/>
</target> </target>
<!-- Viskit properties --> <!-- Viskit properties -->
<target name="platformInitialize" depends="platformType"/> <target name="platformInitialize" depends="platformType"/>
<target name="platformType"> <target name="platformType">
<condition property="isWin" > <condition property="isWin" >
<os family="windows"/> <os family="windows"/>
</condition> </condition>
<condition property="isMac" > <condition property="isMac" >
<os family="mac"/> <os family="mac"/>
</condition> </condition>
<!-- Based on Apache Ant user-manual example --> <!-- Based on Apache Ant user-manual example -->
<condition property="isUnix"> <condition property="isUnix">
<and> <and>
<os family="unix"/> <os family="unix"/>
<not> <not>
<equals arg1="${os.name}" arg2="Mac OS X"/> <equals arg1="${os.name}" arg2="Mac OS X"/>
</not> </not>
</and> </and>
</condition> </condition>
</target> </target>
<target name="initWin" if="isWin"> <target name="initWin" if="isWin">
<property name="run.args" value="${win.run.args}"/> <property name="run.args" value="${win.run.args}"/>
</target> </target>
<target name="initUnix" if="isUnix"> <target name="initUnix" if="isUnix">
<property name="run.args" value="${unix.run.args}"/> <property name="run.args" value="${unix.run.args}"/>
</target> </target>
<target name="initMac" if="isMac"> <target name="initMac" if="isMac">
<property name="run.args" value="${mac.run.args}"/> <property name="run.args" value="${mac.run.args}"/>
</target> </target>
<target name="initializeAll" depends="platformInitialize,initWin,initUnix,initMac"/> <target name="initializeAll" depends="platformInitialize,initWin,initUnix,initMac"/>
<target name="set.classpath" depends="initializeAll"> <target name="set.classpath" depends="initializeAll">
<path id="runtime.classpath"> <path id="runtime.classpath">
<fileset dir="${viskit.lib.dir}"> <fileset dir="${viskit.lib.dir}">
<include name="**/*.jar"/> <include name="**/*.jar"/>
</fileset> </fileset>
<pathelement path="${extra.classpath}"/> <pathelement path="${extra.classpath}"/>
</path> </path>
<!--<echo message="runtime.classpath=${toString:runtime.classpath}"/>--> <!--<echo message="runtime.classpath=${toString:runtime.classpath}"/>-->
</target> </target>
<target name="run.viskit" depends="set.classpath" description="Start the Visual Simikit (viskit) DES Authoring Tool on any O/S"> <target name="run.viskit" depends="set.classpath" description="Start the Visual Simikit (viskit) DES Authoring Tool on any O/S">
<splash imageurl="file:${basedir}/${splash.image}" <splash imageurl="file:${basedir}/${splash.image}"
useproxy="true" useproxy="true"
showduration="5000"/> showduration="5000"/>
<java classname="${main.class}" <java classname="${main.class}"
classpathref="runtime.classpath" classpathref="runtime.classpath"
dir="${viskit.dir}" dir="${viskit.dir}"
fork="true"> fork="true">
<jvmarg line="${run.args}"/> <jvmarg line="${run.args}"/>
<arg value="${assy.file}"/> <arg value="${assy.file}"/>
</java> </java>
</target> </target>
<target name="clean.all.viskit.logs" description="clean autogenerated PDU capture and Viskit generated logs"> <target name="clean.all.viskit.logs" description="clean autogenerated PDU capture and Viskit generated logs">
<delete dir="${viskit.dir}/logs"/> <delete dir="${viskit.dir}/logs"/>
<delete dir="${viskit.dir}/pduLog"/> <delete dir="${viskit.dir}/pduLog"/>
</target> </target>
<target name="reset.viskit.MV3500" description="initialize user preferences for Viskit MV3500"> <target name="reset.viskit.MV3500" description="initialize user preferences for Viskit MV3500">
<echo message="Warning: under development"/> <echo message="Warning: under development"/>
<echo message="Reset MV3500 user's Viskit configuration files in ${dot.viskit.dir}"/> <echo message="Reset MV3500 user's Viskit configuration files in ${dot.viskit.dir}"/>
<delete includeemptydirs="yes" dir="${dot.viskit.dir}"/> <delete includeemptydirs="yes" dir="${dot.viskit.dir}"/>
<!-- repopulute with defaults <!-- repopulute with defaults
<mkdir dir="${dot.viskit.dir}"/> --> <mkdir dir="${dot.viskit.dir}"/> -->
<copy verbose="true" tofile="${dot.viskit.dir}/c_app.xml" file="c_app.ViskitDefaultMV3500.xml"/> <copy verbose="true" tofile="${dot.viskit.dir}/c_app.xml" file="c_app.ViskitDefaultMV3500.xml"/>
<copy todir ="${dot.viskit.dir}" file="${c_gui.xml}"/> <copy todir ="${dot.viskit.dir}" file="${c_gui.xml}"/>
</target> </target>
<target name="reset.viskit.DefaultProject" description="initialize user preferences for Viskit DefaultProject"> <target name="reset.viskit.DefaultProject" description="initialize user preferences for Viskit DefaultProject">
<echo message="Warning: under development"/> <echo message="Warning: under development"/>
<echo message="Reset MV3500 user's Viskit configuration files in ${dot.viskit.dir}"/> <echo message="Reset MV3500 user's Viskit configuration files in ${dot.viskit.dir}"/>
<delete includeemptydirs="yes" dir="${dot.viskit.dir}"/> <delete includeemptydirs="yes" dir="${dot.viskit.dir}"/>
<!-- repopulute with defaults <!-- repopulute with defaults
<mkdir dir="${dot.viskit.dir}"/> --> <mkdir dir="${dot.viskit.dir}"/> -->
<copy verbose="true" tofile="${dot.viskit.dir}/c_app.xml" file="c_app.ViskitDefaultProject.xml"/> <copy verbose="true" tofile="${dot.viskit.dir}/c_app.xml" file="c_app.ViskitDefaultProject.xml"/>
<copy todir ="${dot.viskit.dir}" file="${c_gui.xml}"/> <copy todir ="${dot.viskit.dir}" file="${c_gui.xml}"/>
</target> </target>
<target name="reset.viskit" description="clear an out of synch configuration and metadata directory - only when necessary"> <target name="reset.viskit" description="clear an out of synch configuration and metadata directory - only when necessary">
<echo message="Reset user's Viskit configuration files in ${dot.viskit.dir}"/> <echo message="Reset user's Viskit configuration files in ${dot.viskit.dir}"/>
<delete includeemptydirs="yes" dir="${dot.viskit.dir}"/> <delete includeemptydirs="yes" dir="${dot.viskit.dir}"/>
<!-- repopulute with defaults <!-- repopulute with defaults
<mkdir dir="${dot.viskit.dir}"/> --> <mkdir dir="${dot.viskit.dir}"/> -->
<copy todir="${dot.viskit.dir}" file="${c_app.xml}"/> <copy todir="${dot.viskit.dir}" file="${c_app.xml}"/>
<copy todir="${dot.viskit.dir}" file="${c_gui.xml}"/> <copy todir="${dot.viskit.dir}" file="${c_gui.xml}"/>
</target> </target>
</project> </project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment