|
What this is
Other links
The source code<?xml version="1.0"?> <!-- $Id: build.xml,v 1.6 2001/05/01 17:55:48 agarcia3 Exp $ webEditor. The new way in content management Copyright (C) 2001 Alfredo Garcia This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. --> <project name="webEditor" default="compile" basedir="."> <!-- Version and insformation about the project --> <property name="Name" value="webEditor"/> <property name="version" value="0.3"/> <property name="year" value="2001"/> <!-- App name-dependent settings. --> <property name="appname" value="webEditor"/> <property name="jar" value="${appname}.jar"/> <property name="war" value="${appname}.war"/> <!-- Package directory structures of interest. --> <property name="src.pkgprefix" value="./src/webEditor"/> <!-- change this property to use a compiler other than javac. --> <property name="build.compiler" value="classic"/> <!-- Source file location. --> <property name="src" value="./src"/> <property name="src_test" value="./src/test"/> <!-- Destination directory for the build --> <property name="build" value="./build/classes"/> <!-- Destination directory for the assembly targets --> <property name="assemble" value="./build/assemble"/> <property name="assemble.war" value="${assemble}/war"/> <property name="assemble.wardesc" value="${src}/WEB-INF/web.xml"/> <!-- Destination directory for the application --> <property name="install.dir" value="./bin"/> <!-- API doc creation parameters --> <property name="packages" value="webEditor.*"/> <property name="build.javadocs" value="./docs/api"/> <!-- ======================================================= --> <!-- Compile all classes. --> <!-- ======================================================= --> <target name="compile"> <echo message="--- webEditor ---" /> <mkdir dir="${build}" /> <javac srcdir="${src}" destdir="${build}"> <include name="webEditor/**"/> </javac> </target> <!-- ======================================================= --> <!-- Compile test classes. --> <!-- ======================================================= --> <target name="test"> <echo message="--- webEditor Test ---" /> <javac srcdir="${src_test}" classpath="${build}" destdir="${src_test}"/> </target> <!-- ======================================================= --> <!-- Clean up various files and directories. --> <!-- ======================================================= --> <target name="clean_assemble"> <delete dir="${assemble}"/> </target> <target name="clean" depends="clean_assemble"> <delete dir="${build}"/> </target> <!-- ======================================================= --> <!-- Assemble JAR module. --> <!-- ======================================================= --> <target name="jar" depends="clean_assemble"> <mkdir dir="${assemble}"/> <copy todir="${assemble}/"> <fileset dir="${build}"/> </copy> <mkdir dir="${assemble}/META-INF"/> <jar jarfile="${assemble}/${jar}" basedir="${build}"/> </target> <!-- ======================================================= --> <!-- Assemble WAR module. --> <!-- ======================================================= --> <target name="war" > <war warfile="${assemble}/${war}" webxml="${assemble.wardesc}"> <fileset dir="./editors" /> <fileset dir="${src}"> <include name="*.html" /> </fileset> <fileset dir="${src}" > <include name="WEB-INF/*.xml" /> </fileset> <lib dir="./lib" /> <classes dir="${build}" /> </war> </target> <!-- ======================================================= --> <!-- Install the application. --> <!-- ======================================================= --> <target name="install"> <copy todir="${install.dir}"> <fileset dir="${assemble}"> <include name="**/*.jar"/> <include name="**/*.war"/> </fileset> </copy> </target> <!-- =================================================================== --> <!-- Creates the API documentation --> <!-- =================================================================== --> <target name="javadocs"> <mkdir dir="${build.javadocs}"/> <javadoc packagenames="${packages}" sourcepath="./src" destdir="${build.javadocs}" windowtitle="${Name} API" doctitle="${Name}" bottom="Copyright © ${year} GNU Public Licence." /> </target> <target name="all" depends="compile, jar, war, install, javadocs" /> </project> |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 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.