[Dirconsole-cvs] dirconsole build.xml,1.3,1.4
Brought to you by:
bavodr
|
From: Bavo De R. <ba...@us...> - 2004-07-24 14:20:33
|
Update of /cvsroot/dirconsole/dirconsole In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3494 Modified Files: build.xml Log Message: Added comments and documentation to build process Index: build.xml =================================================================== RCS file: /cvsroot/dirconsole/dirconsole/build.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build.xml 24 Jul 2004 09:56:51 -0000 1.3 --- build.xml 24 Jul 2004 14:20:25 -0000 1.4 *************** *** 3,26 **** <project name="DirectoryConsole" default="archive" basedir="."> ! <target name="set-props"> ! <property file="${user.home}/.lattebuild/ant-user.props"/> ! <property name="src" value="src" /> ! <property name="target" value="target" /> ! <property name="dist" value="${target}/dist" /> ! <property name="dist.output" value="DirectoryConsole.war" /> ! <property name="registry.name" value="DirectoryConsole-registry.xml" /> ! </target> ! <target name="prepare" depends="set-props"> <mkdir dir="${target}" /> <mkdir dir="${dist}" /> </target> ! <target name="build" depends="prepare"> ! <ant antfile="build.xml" inheritAll="false" target="archive" dir="PortalJar" /> ! <ant antfile="build.xml" inheritAll="false" target="archive" dir="DirConsoleJar" /> ! <ant antfile="build.xml" inheritAll="false" target="build" dir="Snapins" /> </target> ! <target name="archive" depends="build"> <zip zipfile="${dist}/${dist.output}"> --- 3,88 ---- <project name="DirectoryConsole" default="archive" basedir="."> ! ! <!-- =================================================================== --> ! <!-- set all properties --> ! <!-- =================================================================== --> ! <target name="set-props"> ! <property file="${user.home}/.lattebuild/ant-user.props" /> ! <property name="src" value="src" /> ! <property name="target" value="target" /> ! <property name="dist" value="${target}/dist" /> ! <property name="dist.output" value="DirectoryConsole.war" /> ! <property name="registry.name" value="DirectoryConsole-registry.xml" /> ! </target> ! ! ! <!-- =================================================================== --> ! <!-- prints the environment --> ! <!-- =================================================================== --> ! <target name="env" depends="set-props"> ! ! <echo message="java.home = ${java.home}" /> ! <echo message="user.home = ${user.home}" /> ! <echo message="java.class.path = ${java.class.path}" /> ! <echo message="velocity.base = ${velocity.base}" /> ! <echo message="dist.output = ${dist.output}" /> ! <echo message="" /> ! ! </target> ! ! ! <!-- =================================================================== --> ! <!-- prints the targets available in this build file --> ! <!-- =================================================================== --> ! <target name="help" depends="env"> ! <echo> ! **************************************************************************** ! ** ! ** Help for DirectoryConsole build file ! ** ! ** Target Depends on Description ! ** ! ** set-props sets all the required properties ! ** env set-props echos environment variables to screen ! ** prepare env creates build dir ! ** build prepare compiles java source ! ** archive build prepares PFCCore-{version} jar file ! ** clean deletes build dir ! *************************************************************************** ! </echo> ! </target> ! ! ! <!-- =================================================================== --> ! <!-- creates build dir and various other folders --> ! <!-- =================================================================== --> <target name="prepare" depends="set-props"> <mkdir dir="${target}" /> <mkdir dir="${dist}" /> </target> ! ! ! <!-- =================================================================== --> ! <!-- compiles the java sources --> ! <!-- =================================================================== --> <target name="build" depends="prepare"> ! <ant antfile="build.xml" ! inheritAll="false" ! target="archive" ! dir="PortalJar" /> ! <ant antfile="build.xml" ! inheritAll="false" ! target="archive" ! dir="DirConsoleJar" /> ! <ant antfile="build.xml" ! inheritAll="false" ! target="build" ! dir="Snapins" /> </target> ! ! ! <!-- =================================================================== --> ! <!-- creates a jar from compiled and non-compiled sources --> ! <!-- =================================================================== --> <target name="archive" depends="build"> <zip zipfile="${dist}/${dist.output}"> *************** *** 30,50 **** <zipfileset dir="${dist}" includes="*.jar" prefix="WEB-INF/lib" /> <zipfileset dir="Snapins/dist" includes="**" prefix="WEB-INF/lib" /> ! <zipfileset dir="repository/internal" includes="*.jar" prefix="WEB-INF/lib" /> </zip> </target> - <target name="clean-snapins"> - <ant antfile="build.xml" target="clean" dir="Snapins" /> - </target> ! <target name="clean" depends="set-props,clean-snapins"> ! <ant antfile="build.xml" inheritAll="false" target="clean" dir="Snapins" /> ! <ant antfile="build.xml" inheritAll="false" target="clean" dir="DirConsoleJar" /> ! <ant antfile="build.xml" inheritAll="false" target="clean" dir="PortalJar" /> <delete dir="${target}" /> </target> ! <target name="deploy" depends="archive"> ! <copy file="${dist}/${dist.output}" tofile="${jboss.deploy.directory}/${dist.output}"/> </target> --- 92,128 ---- <zipfileset dir="${dist}" includes="*.jar" prefix="WEB-INF/lib" /> <zipfileset dir="Snapins/dist" includes="**" prefix="WEB-INF/lib" /> ! <zipfileset dir="repository/internal" ! includes="*.jar" ! prefix="WEB-INF/lib" /> </zip> </target> ! <!-- =================================================================== --> ! <!-- removes the build folder --> ! <!-- =================================================================== --> ! <target name="clean" depends="set-props"> ! <ant antfile="build.xml" ! inheritAll="false" ! target="clean" ! dir="Snapins" /> ! <ant antfile="build.xml" ! inheritAll="false" ! target="clean" ! dir="DirConsoleJar" /> ! <ant antfile="build.xml" ! inheritAll="false" ! target="clean" ! dir="PortalJar" /> <delete dir="${target}" /> </target> ! ! ! <!-- =================================================================== --> ! <!-- deploys the application --> ! <!-- =================================================================== --> <target name="deploy" depends="archive"> ! <copy file="${dist}/${dist.output}" ! tofile="${jboss.deploy.directory}/${dist.output}" /> </target> |