Skip to content

Commit 43abc5f

Browse files
committed
Updated run-demo scripts to launch the ApplicationTemplate example if a class name is not provided.
1 parent 53641d1 commit 43abc5f

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

run-demo.bash

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,17 @@
77
#
88

99
#
10-
# Run a WorldWind Demo
10+
# Default to the ApplicationTemplate example if no arguments are provided
1111
#
12+
if [ $# -lt 1 ]
13+
then
14+
WWDEMO=gov.nasa.worldwindx.examples.ApplicationTemplate
15+
else
16+
WWDEMO=$*
17+
fi
1218

13-
echo Running $1
14-
java -Xmx1024m -classpath ./worldwind.jar:./worldwindx.jar:./gdal.jar:./jogl-all.jar:./gluegen-rt.jar $*
19+
#
20+
# Run a WorldWind Demo
21+
#
22+
echo Running $WWDEMO
23+
java -Xmx1024m -classpath "./worldwind.jar;./worldwindx.jar;./gdal.jar;./jogl-all.jar;./gluegen-rt.jar" $WWDEMO

run-demo.bat

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
@echo off
12
REM Copyright (C) 2012 United States Government as represented by the Administrator of the
23
REM National Aeronautics and Space Administration.
34
REM All Rights Reserved.
45

5-
REM Run a WorldWind Demo
6+
REM Default to the ApplicationTemplate example if a class name is not provided
7+
IF "%1"=="" (SET WWDEMO=gov.nasa.worldwindx.examples.ApplicationTemplate) ELSE (SET WWDEMO=%*)
68

7-
@echo Running %1
8-
java -Xmx1024m -Dsun.java2d.noddraw=true -classpath .\worldwind.jar;.\worldwindx.jar;.\gdal.jar;.\jogl-all.jar;.\gluegen-rt.jar %*
9+
REM Run a WorldWind Demo
10+
@echo Running %WWDEMO%
11+
java -Xmx1024m -Dsun.java2d.noddraw=true -classpath .\worldwind.jar;.\worldwindx.jar;.\gdal.jar;.\jogl-all.jar;.\gluegen-rt.jar %WWDEMO%

0 commit comments

Comments
 (0)