Something went wrong on our end
-
Brutzman, Don authoredBrutzman, Don authored
buildSavageAuvWorkbenchModelDistribution.xml 8.20 KiB
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 1995-2012 held by the author(s). All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the names of the Naval Postgraduate School (NPS)
Modeling Virtual Environments and Simulation (MOVES) Institute
(https://www.nps.edu and https://MovesInstitute.nps.edu)
nor the names of its contributors may be used to endorse or
promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
-->
<project name="buildSavageAuvWorkbenchModelDistribution.xml" default="all" basedir=".">
<description>Build Savage subset distribution for AUV Workbench.</description>
<!-- defined in Savage/buildSavageAuvWorkbenchModelDistribution.xml and AuvWorkbench/izpackInstallation.xml -->
<property name="zipExcerptFileName" value="X3dExamplesSavageAuvWorkbenchExcerpt.zip"/>
<target name="all" description="" depends="zip.AuvWorkbenchExcerpt,upload.zip">
<echo message="build all complete"/>
</target>
<!-- Be sure to add tasks for new locations being added to AUV Workbench
https://savage.nps.edu/AuvWorkbench/website/javahelp2/Pages/AddingNewLocation.html
-->
<!-- Automated operation: compress and upload to
https://savage.nps.edu/X3dExamplesSavageAuvWorkbenchExcerpt.zip
-->
<target name="upload.zip" description="upload excerpted .zip examples archive (overwrite previous version)" >
<ant dir=".." target="sftp.uploadSavageAuvWorkbenchModelDistribution.zip"/>
<echo message="SavageAuvWorkbenchModelDistribution.zip upload complete."/>
</target>
<target name="zip.AuvWorkbenchExcerpt" description="generate .zip distribution for relevant AUV Workbench scenes">
<!-- invoked by hudson nightly build -->
<echo message="buildSavageAuvWorkbenchModelDistribution.xml zip.AuvWorkbenchExcerpt generates ${zipExcerptFileName} .zip distribution for AUV Workbench excerpts"/>
<echo message="Be sure to build the Savage model archive first so that all models are checked and validated"/>
<!-- Do not delete, keep permissions unmodified
<delete file="${zipExcerptFileName}" failonerror="false"/>
-->
<zip destfile="${zipExcerptFileName}">
<zipfileset dir="." prefix="www.web3d.org/x3d/content/examples/Savage/">
<include name="*.html"/>
<include name="license.*"/>
</zipfileset>
<!-- only selected subdirectories -->
<zipfileset dir="Robots" prefix="www.web3d.org/x3d/content/examples/Savage/Robots/">
<include name="*/*.x3d"/>
<include name="*/*.jpg"/>
<include name="*/*.png"/>
</zipfileset>
<zipfileset dir="ShipsMilitary" prefix="www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/">
<include name="*/*.x3d"/>
<include name="*/*.jpg"/>
<include name="*/*.png"/>
</zipfileset>
<zipfileset dir="ShipsCivilian" prefix="www.web3d.org/x3d/content/examples/Savage/ShipsCivilian/">
<include name="*/*.x3d"/>
<include name="*/*.jpg"/>
<include name="*/*.png"/>
</zipfileset>
<!-- only selected subdirectories -->
<zipfileset dir="AuvWorkbench" prefix="www.web3d.org/x3d/content/examples/Savage/AuvWorkbench/">
<include name="*/*.x3d"/>
<include name="*/*.jpg"/>
<include name="*/*.png"/>
</zipfileset>
<!-- selected locations of interest, BremertonWashington and SanClementeIslandCalifornia are in SavageDefense (restricted access) -->
<zipfileset dir="Locations/MontereyBayCalifornia" prefix="www.web3d.org/x3d/content/examples/Savage/Locations/MontereyBayCalifornia/">
<include name="**/*.x3d"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
<include name="**/*.gif"/>
<exclude name="**/MontereyBayLarge*.x3d"/>
</zipfileset>
<!-- selected locations of interest, BremertonWashington and SanClementeIslandCalifornia are in SavageDefense (restricted access) -->
<zipfileset dir="Locations/MontereyPeninsulaCollege" prefix="www.web3d.org/x3d/content/examples/Savage/Locations/MontereyPeninsulaCollege/">
<include name="**/*.x3d"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
<include name="**/*.gif"/>
</zipfileset>
<zipfileset dir="Locations/PanamaCityFlorida" prefix="www.web3d.org/x3d/content/examples/Savage/Locations/PanamaCityFlorida/">
<include name="**/*.x3d"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
</zipfileset>
<zipfileset dir="Locations/NarragansettBayRhodeIslandBathymetry" prefix="www.web3d.org/x3d/content/examples/Savage/Locations/NarragansettBayRhodeIslandBathymetry/">
<include name="**/*.x3d"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
</zipfileset>
<zipfileset dir="Locations/NarragansettBayRhodeIslandLarge" prefix="www.web3d.org/x3d/content/examples/Savage/Locations/NarragansettBayRhodeIslandLarge/">
<include name="**/*.x3d"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
</zipfileset>
<!-- As of 11 MAY 2009, only the NarragansettBayRhodeIslandLarge is used in the AUVW -->
<!--zipfileset dir="Locations/NarragansettBayRhodeIslandSmall" prefix="www.web3d.org/x3d/content/examples/Savage/Locations/NarragansettBayRhodeIslandSmall/">
<include name="**/*.x3d"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
</zipfileset-->
<zipfileset dir="Locations/SanDiegoCalifornia" prefix="www.web3d.org/x3d/content/examples/Savage/Locations/SanDiegoCalifornia/">
<include name="**/*.x3d"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
</zipfileset>
<zipfileset dir="Tools" prefix="www.web3d.org/x3d/content/examples/Savage/Tools/">
<include name="*/*.x3d"/>
</zipfileset>
<zipfileset dir="CommunicationsAndSensors/Beam" prefix="www.web3d.org/x3d/content/examples/Savage/CommunicationsAndSensors/Beam/">
<include name="*/*.x3d"/>
<include name="*/*.png"/>
</zipfileset>
</zip>
<!-- TODO: fix <length> -->
<length file="${zipExcerptFileName}" property="${zipExcerptFileName}.length" />
<echo>${zipExcerptFileName} length="${zipExcerptFileName}.length</echo>
<move file="${zipExcerptFileName}" todir=".." verbose="true"/> <!-- unless="${jenkins.prepared}" -->
<echo>${zipExcerptFileName} complete</echo>
</target>
</project>