| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java EE 6 example source code file (build.xml)

This example Java EE 6 source code file (build.xml) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Java EE 6 tags/keywords

all, connector, copyright, copyright, inc, inc, javamail, microsystems, microsystems, rar, sun, utf-8, utf-8

The Java EE 6 build.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.-->

<project name="mailconnector-ear" default="all" basedir=".">

    <property name="is.ear.module" value="true"/>

    <path id="ear-components">
        <filelist dir="./mailconnector-ejb" files="build.xml"/>
        <filelist dir="./mailconnector-war" files="build.xml"/>

    <property name="run.uri" value="mailconnector-war"/>

    <import file="../../../../../bp-project/main.xml"/>

    <target name="all" unless="netbeans.home">
        <antcall target="clean"/>
        <antcall target="clean-rar"/>
        <antcall target="rar"/>
        <antcall target="ear"/>
        <antcall target="deploy"/>
        <antcall target="launch"/>

    <!-- =================== targets to setup/unsetup the application ========= -->

    <target name="-pre-setup" unless="netbeans.home">
        <subant target="create-db">
            <fileset dir="setup" includes="build.xml"/>

    <target name="deploy">
        <antcall target="deploy-rar"/>
        <antcall target="setup"/>
        <ant antfile="../../../../../bp-project/main.xml" target="deploy"/>

    <target name="undeploy">
        <ant antfile="../../../../../bp-project/main.xml" target="undeploy"/>
        <antcall target="unsetup"/>
        <antcall target="undeploy-rar"/>

    <target name="-post-unsetup" unless="netbeans.home">
        <antcall target="unsetup"/>
        <subant target="delete-db">
            <fileset dir="setup" includes="build.xml"/>

    <target name="setup" unless="netbeans.home">
        <subant target="setup">
            <fileset dir="setup" includes="build.xml"/>

    <target name="unsetup" unless="netbeans.home">
        <subant target="unsetup">
            <fileset dir="setup" includes="build.xml"/>

    <!-- =================== targets to launch the application ========= -->

    <target name="run">
        <antcall target="run-bp"/>
        <antcall target="run-nb"/>

    <target name="run-bp" unless="netbeans.home">
        <antcall target="launch"/>

    <target name="run-nb" if="netbeans.home">
        <antcall target="init"/>
        <antcall target="run-deploy"/>
        <antcall target="run-display-browser"/>
        <antcall target="run-ac"/>

    <!-- =================== JavaMail Connector RAR specific targets ========= -->

    <target name="clean-rar">
        <ant dir="../mailconnector-ra" target="clean_rar_common" antfile="build.xml"/>

    <target name="rar">
        <ant dir="../mailconnector-ra" target="assemble_rar" antfile="build.xml"/>

    <target name="deploy-rar" depends="rar">
        <ant dir="../mailconnector-ra" target="deploy_rar" antfile="build.xml"/>

    <target name="undeploy-rar">
        <ant dir="../mailconnector-ra" target="undeploy_rar" antfile="build.xml"/>


Other Java EE 6 examples (source code examples)

Here is a short list of links related to this Java EE 6 build.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.