lanterna / deploy-build.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="lantern" default="all" basedir=".">
    <property name="Version" value="jre142-4"/>
    <property name="JarFile" value="lanterna-${Version}.jar"/>
    <property name="SourceDeployDirectory" value="lanterna-${Version}"/>
    <property name="SourceFile" value="lanterna-${Version}"/>

    <target name="clean">
        <echo message="Cleaning pkg..."/>
        <delete dir="pkg"/>

    <target name="init">
        <echo message="Creating pkg..."/>
        <mkdir dir="pkg"/>
        <mkdir dir="dist"/>

    <target name="compile" depends="init">
        <echo message="Compiling sources..."/>
        <echo file="src/org/lantern/" append="false">package org.lantern;

public class BuildInformation
    public static final String VERSION = "${Version}";
    public static final int BUILD = ${build.number};

        <javac destdir="pkg" debug="false" source="1.4" target="1.4" encoding="UTF-8" srcdir="src"/>

    <target name="build" depends="compile">
        <echo message="Creating .jar file..."/>
        <copy todir="pkg">
            <fileset dir="." includes="License.txt"/>
        <jar basedir="pkg" jarfile="dist/${JarFile}" compress="true" manifest=""/>
        <echo message="Generating javadoc..."/>
        <javadoc sourcepath="src" destdir="javadoc"/>

        <echo message="Generating the source distribution..."/>
        <mkdir dir="${SourceDeployDirectory}"/>
        <copy todir="${SourceDeployDirectory}">
            <fileset dir="." includes="src/**,javadoc/**,License.txt"/>
        <zip basedir="lanterna-${Version}" zipfile="dist/${SourceFile}" compress="true" level="9"/>

        <echo message="Cleaning up..."/>
        <delete dir="pkg"/>
        <delete dir="${SourceDeployDirectory}"/>

    <target name="all" depends="clean, build"/>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.