home | 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 DevDaily.com "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

utf-8, utf-8

The Java EE 6 build.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<project name="scrumtoys" default="default" basedir=".">
    <property name="is.war.module" value="true"/>
    <property name="javadoc.packagenames" value="jsf2"/>
    <property file="${user.home}/build.properties"/>
    <import file="../../../../bp-project/main.xml"/>

    <target name="all" depends="default,run"/>

    <target name="-post-compile">

      <echo message="copying resources to ${basedir}/build/classes" />
      <copy todir="${basedir}/build/classes" overwrite="true">

        <fileset dir="src/resources">
          <include name="**/*.*" />
        </fileset>
      </copy>

    </target>

    <target name="-pre-run-deploy" if="netbeans.home">
      <echo message="copying resources to ${basedir}/build/classes" />
      <copy todir="${basedir}/build/web/WEB-INF/classes" overwrite="true">
        <fileset dir="src/resources">
          <include name="**/*.*" />
        </fileset>
      </copy>
    </target>

    <!-- clean up subproject and undeploy from ant -->
    <target name="-pre-clean" depends="ant-undeploy">
    </target>

    <target name="ant-undeploy" unless="netbeans.home">
        <antcall target="undeploy"/>
    </target>

</project>

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:



my book on functional programming

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
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.