[Registrytaglib-cvsnotify] codegen build.xml,NONE,1.1
Status: Planning
Brought to you by:
mukundanps
From: Michael S. <fm...@us...> - 2004-05-24 18:20:00
|
Update of /cvsroot/registrytaglib/codegen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15664/codegen Added Files: build.xml Log Message: initial skeleton of a module --- NEW FILE: build.xml --- <?xml version="1.0" encoding="UTF-8"?> <project name="Code Generator" basedir="." default="dist" > <!-- ======================== --> <!-- Properties and Classpath --> <!-- ======================== --> <!-- Define module specific properties --> <property file="conf/build.properties"/> <!-- Build the needed classpath --> <path id="compile.classpath"> <fileset dir="${module.lib}"> <include name="*.jar"/> </fileset> <fileset dir="${module.depend}"> <include name="*.jar"/> </fileset> </path> <!-- ============ --> <!-- Clean Target --> <!-- ============ --> <target name="clean" description="Delete old build and dist directories"> <delete dir="${module.build}"/> <delete dir="${module.dist}"/> </target> <!-- ============ --> <!-- Build Target --> <!-- ============ --> <target name="build" description="Build the library, compiling classes as necessary"> <!-- Create build directory --> <mkdir dir="${module.build}"/> <!-- Compile the main source --> <javac srcdir="${module.src}" destdir="${module.build}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> <classpath refid="compile.classpath"/> </javac> <!-- Compile the test source --> <javac srcdir="${module.test}" destdir="${module.build}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> <classpath refid="compile.classpath"/> </javac> </target> <!-- ============== --> <!-- Javadoc Target --> <!-- ============== --> <target name="javadoc" description="Generate Javadoc API documentation"> <!-- Generate the javadoc --> <javadoc sourcepath="${module.src}" destdir="${module.dist}/docs/java-api" windowtitle="${lib.label} ${lib.version}"> <classpath refid="compile.classpath"/> <fileset dir="${module.src}" defaultexcludes="yes"/> </javadoc> </target> <!-- Dist Target --> <!-- =========== --> <target name="dist" depends="build" description="Create a binary distribution"> <!-- Create the dist directory --> <mkdir dir="${module.dist}"/> <!-- Copy docs subdirectory --> <copy todir="${module.dist}/docs"> <fileset dir="docs" defaultexcludes="yes"/> </copy> <!-- Create the JAR file --> <jar jarfile="${module.dist}/${lib.name}.jar" basedir="${module.build}" excludes="**/*Test.class"> <manifest> <attribute name="Built-By" value="${user.name}"/> <attribute name="Specification-Title" value="${lib.label}"/> <attribute name="Specification-Version" value="${lib.version}"/> <attribute name="Specification-Vendor" value="Sourceforge.net"/> <attribute name="Implementation-Title" value="${lib.name}"/> <attribute name="Implementation-Version" value="${lib.version}"/> <attribute name="Implementation-Vendor" value="Sourceforge.net"/> </manifest> </jar> </target> </project> |