World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 11-28-2009, 12:28 AM   #1
nlneilson
Super Member
 
Join Date: Nov 2006
Location: 35.0376,-117.9688
Posts: 1,519
Default Ant build of a WWJ app

Running 'ant' in a clean copy of 0.6.306: 1min 4sec first time and 7sec 2nd time.
Great work on all the build.xml and supporting .xml files, there is a bunch of them!

Can a specific file such as \src\nlneilson\Nww.java for the 'main' be passed as an arg on the command line or does it require a change in the build.xml?
nlneilson is offline   Reply With Quote
Old 02-08-2010, 04:03 PM   #2
nlneilson
Super Member
 
Join Date: Nov 2006
Location: 35.0376,-117.9688
Posts: 1,519
Default

This is how it can be done. Works fine.

Eclipse will create a build.xml file you can run with ant, I named this file NwwBuild.xml so it will not interfere with the WWJ build.xml.
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project ww1o">
    <!--this file was created by Eclipse Runnable JAR Export Wizard-->
    <!--ANT 1.7 is required                                        -->
    <target name="create_run_jar">
        <jar destfile="C:/0-Neil/_0/NWWJn.jar" filesetmanifest="mergewithoutmain">
            <manifest>
                <attribute name="Main-Class" value="nlneilson.Nww"/>
                <attribute name="Class-Path" value="."/>
            </manifest>
            <fileset dir="C:/NeilsonDev/WW1o/ww1o/bin"/>
            <zipfileset excludes="META-INF/*.SF" src="C:/NeilsonDev/WW1o/ww1o/jogl.jar"/>
            <zipfileset excludes="META-INF/*.SF" src="C:/NeilsonDev/WW1o/ww1o/gluegen-rt.jar"/>
            <zipfileset excludes="META-INF/*.SF" src="C:/NeilsonDev/WW1o/ww1o/build/lib/junit-4.5.jar"/>
        </jar>
    </target>
</project>
nlneilson is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup WWJ Hervé Development Help 66 03-03-2010 01:25 AM
WWJ Build Server down? daniele Bug Reports 2 11-19-2009 06:11 PM
WWJ and Platform-dependence smcnaughton Development Help 31 11-11-2009 02:09 PM
WWJ in satellite tracking app shawngano Applications 47 11-02-2009 12:44 AM
WW(J) and Python - some questions GIS_Jon WorldWind General 0 06-02-2009 02:50 PM


All times are GMT +1. The time now is 10:47 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.