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}-source.zip"/>

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

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

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

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

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

    <target name="build" depends="compile">
        <echo message="Creating .jar file..."/>
        <copy todir="pkg">
            <fileset dir="." includes="License.txt"/>
        </copy>
        <jar basedir="pkg" jarfile="dist/${JarFile}" compress="true" manifest="deploy-manifest.mf"/>
        
        <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"/>
        </copy>
        <zip basedir="lanterna-${Version}" zipfile="dist/${SourceFile}" compress="true" level="9"/>

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

    <target name="all" depends="clean, build"/>
</project>
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 ProjectModifiedEvent.java.
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.