Code Search for Developers
 
 
  

build.xml from Riot in Emerald city at Krugle


Show build.xml syntax highlighted

<project basedir="." name="Riot in Emerald city" default="compile">
    <!-- Globals -->
    <property name="src" value="src"/>
    <property name="lib" value="lib"/>
    <property name="dist" value="dist"/>
    <property name="build" value="build"/>
    <property name="images" value="images"/>
    <property name="classes" value="classes"/>
    <property name="etc" value="etc"/>
    <property name="doc" value="doc"/>
    <property name="tmp" value="tmp"/>

    <path id="classpath">
        <pathelement location="${classes}"/>
        <fileset dir="lib">
            <include name="*.jar"/>
            <include name="*.zip"/>
        </fileset>
        <fileset dir="lib/devel">
            <include name="*.jar"/>
            <include name="*.zip"/>
        </fileset>
    </path>

    <fileset id="license" dir="${etc}">
        <include name="LICENSE"/>
    </fileset>

    <target name="prepare">
        <mkdir dir="${classes}"/>
        <mkdir dir="${dist}"/>
        <mkdir dir="${build}"/>
    </target>

    <target name="compile-models" description="--> Compiles models from all models directory into jme.">
        <java classname="org.pleasantnightmare.utils.ModelCompiler">
            <arg value="models/wavefront"/>
            <arg value="models"/>
            <classpath refid="classpath"/>
        </java>

        <java classname="org.pleasantnightmare.utils.ModelCompiler">
            <arg value="models/3ds"/>
            <arg value="models"/>
            <classpath refid="classpath"/>
        </java>

        <!--
                <java classname="org.pleasantnightmare.utils.ModelCompiler">
                    <arg value="models/mdx"/>
                    <arg value="models"/>
                    <classpath refid="classpath"/>
                </java>
        -->

        <!--
                <java classname="org.pleasantnightmare.utils.ModelCompiler">
                    <arg value="models/wavefront/test"/>
                    <arg value="models"/>
                    <classpath refid="classpath"/>
                </java>
        -->
    </target>

    <target name="compile" depends="prepare"
            description="--> Incremental build">
        <javac srcdir="${src}" destdir="${classes}" debug="on">
            <classpath refid="classpath"/>
        </javac>
        <antcall target="compile-models"/>
    </target>

    <taskdef name="jsmoothgen"
             classname="net.charabia.jsmoothgen.ant.JSmoothGen"
             classpath="./lib/devel/jsmoothgen-ant.jar"/>

    <target name="dist" depends="compile" description="--> Builds a distribution">
        <jar basedir="${classes}" destfile="${dist}/riot-in-ecity.jar"/>

        <mkdir dir="${dist}/models"/>
        <copy todir="${dist}/models">
            <fileset dir="models">
                <filename name="*.jme"/>
            </fileset>
        </copy>

        <mkdir dir="${dist}/images"/>
        <copy todir="${dist}/images">
            <fileset dir="images">
                <filename name="*.*"/>
            </fileset>
        </copy>

        <copy todir="${dist}">
            <fileset dir=".">
                <filename name="data/**"/>
            </fileset>
        </copy>

        <copy todir="${dist}">
            <fileset dir=".">
                <filename name="lib/**"/>
            </fileset>
        </copy>

        <jsmoothgen project="etc/riot-in-ecity.jsmooth" destdir="${dist}"
                    skeletonroot="./etc/jsmooth-skeletons"/>
    </target>

    <target name="clean" description="--> Cleans build directory">
        <delete dir="${classes}"/>
        <delete dir="${dist}"/>
        <delete dir="${tmp}"/>
        <delete dir="${build}"/>
    </target>

    <target name="clean-models" description="--> Deletes all production models">
        <delete>
            <fileset dir="models">
                <include name="*.jme"/>
            </fileset>
        </delete>
    </target>

    <!-- Build parsers from grammars -->
    <target name="compile-grammars"
            description="--> Generates .java files from grammar specifications">
        <antlr target="data/grammars/storage.g"
               outputdirectory="${src}/org/pleasantnightmare/riotinecity/model/builders">
            <classpath>
                <fileset dir="${lib}/devel">
                    <filename name="antlr.jar"/>
                </fileset>
            </classpath>
        </antlr>
    </target>
</project>




See more files for this project here

Riot in Emerald city

Cyberpunk third-person 2100. noir RPG thriller using JMonkey. Its going to be mix between Bloodnet, Neuromancer, DeusEx in gameplay, with pieces of Uplink and many other mini-games for dealing with variety of tasks (lockpicking, hacking...)

Project homepage: http://sourceforge.net/projects/riot-in-ecity
Programming language(s): Java,XML
License: other

  concept-art/
    atm-side.png
    atm.png
    ecad1.png
    ecad2.png
    pc-side.png
    pc.png
  data/
    grammars/
      apartments.dtd
      image-data.dtd
      items.dtd
      storage.dtd
      storage.g
      users.dtd
    alpha-room.xml
    exe-man.props
    images.xml
    items-configuration.xml
    riot-theme.mid
    shellbuiltin-man.props
    test-room.xml
    test-storage.xml
    test-storages.ss
    test-users.xml
  doc/
    brainstormings/
      execution-process.html
      new-it-27-07-2007.html
      skill-mechanics-20-10-2006.html
      skill-mechanics-27-07-2007.html
    presentation/
      action-background.png
      background.png
      pn-header.png
      pn-logo.png
      riot-header.png
      riot-in-ecity.odp
      riot-logo-big.jpg
      riot-natuknice.odt
      sflogo.png
      smflogo.jpg
    storyline/
      README
      characters.odt
      setting.odt
      storyline.odt
    03-01-2007.xml
    15-02-2007.xml
    17-04-2007.xml
    18-04-2007.xml
    20-03-2007.xml
    21-02-2007.xml
    22-05-2007.xml
    25-03-2007.xml
    26-04-2007.xml
    27-07-2007.xml
    3d-models-special-objects_hr.txt
    chip-identify-minigame_hr.txt
    concept-ideas_hr.odt
    development-guide.txt
    dict.txt
    directory-listing.txt
    equipment_en.txt
    equipment_hr.txt
    first_build_task_list.txt
    hacking_en.txt
    icons.txt
    in-game-keyboard-commands_hr.txt
    new-IT-notes_hr.odt
    presentation.odp
    storyline_hr.txt
    todo.txt
    world-suggestions_hr.odt
  etc/
    jsmooth-skeletons/
      autodownload-wrapper/
        autodownload.exe
        autodownload.skel
        customdownload.skel
      console-wrapper/
        consolewrapper.exe
        description.skel
      windowed-wrapper/
        description.skel
        jwrap.exe
      winservice-wrapper/
        description.skel
        winservice.exe
    scripts/
      cleaner
      coned
      fullpath
      install-jme-cvs
      install-jme-nightbuild
      jme-frontend
      jme-view
      mc
      mi
      riot-in-ecity
      start
    LICENSE
    codetemplates.xml
    coned.bat
    coned.mf
    eclipse-code-formatter.xml
    jme-view-gui.mf
    jme-view.mf
    mc.mf
    mi.mf
    riot-in-ecity.jsmooth
    runstrings.properties
  images/
    coned/
    digipad/
    gimp/
    action-background.png
    actions.png
    arrows.png
    atm-digipad.png
    chessboard.gif
    cigle1.png
    clouds.png
    common-digipad.png
    console-background.png
    daske2.png
    equip-quad.png
    font.png
    font1.png
    gun.png
    gun2.png
    gun3.png
    inventory-cube-background.png
    inventory-cursor.png
    inventory-space-header.png
    items.png
    kamene-cigle.png
    marble.png
    metal1.png
    parket.png
    plocice-hodnik.png
    plocice-plave.png
    plocice-roze.png
    properties-window.png
    puppet-doll.png
    scorpion.png
    skyline.png
    start.jpg
    telescreen-commercials.png
    telescreen-movies.png
    telescreen-off.png
    telescreen-politics.jpg
    telescreen-war.png
    wc.png
    wood.png
    zid.png
  lib/
    devel/
    OpenAL32.dll
    jinput-dx8.dll
    jinput-raw.dll
    jinput.jar
    jme-audio.jar
    jme-awt.jar
    jme-collada.jar
    jme-editors.jar
    jme-effects.jar
    jme-font.jar
    jme-gamestates.jar
    jme-model.jar
    jme-scene.jar
    jme-sound.jar
    jme-terrain.jar
    jme-ui.jar
    jme.jar
    jmetest-data.jar
    jmetest.jar
    jogg-0.0.7.jar
    jorbis-0.0.15.jar
    libjinput-linux.so
    libjinput-osx.jnilib
    liblwjgl-fmod3.jnilib
    liblwjgl-fmod3.so
    liblwjgl.jnilib
    liblwjgl.so
    liblwjgl64.so
    libopenal.so
    lwjgl-fmod3.dll
    lwjgl.dll
    lwjgl.jar
    lwjgl_fmod3.jar
    lwjgl_util_applet.jar
    md5r2.jar
    openal.dylib
  models/
    3ds/
    blender/
    c4d/
    collada/
    jme/
    mdx/
    wavefront/
  src/
    org/
  tests/
    org/
    skunkworks/
  build-utils.xml
  build.xml