|
; <property name="s.src" value="${s.home}/src"/> <property name="s.srccs" value="${s.home}/src/cs"/> <property name="s.gohome" value="../"/> <property name="s.lib" value="${s.home}/lib"/> <property name="s.res" value="${s.home}/res"/> <property name="s.build" value="${s.home}/build"/> <property name="s.run" value="${s.home}/run"/> <property name="s.build.assemble" value="${s.build}/assemble"/> <property name="s.build.bin" value="${s.build.assemble}/bin"/> <property name="s.build.debug" value="${s.build.bin}/debug"/> <property name="s.build.gensrc" value="${s.build.assemble}/gen-src"/> <property name="s.build.apidocs" value="${s.build}/apidocs"/> <property name="s.build.lib" value="${s.home}/res"/> <property name="s.build.release" value="${s.build}/release"/> <property name="s.build.web" value="${s.build}/web"/> <property name="s.build.dist" value="${s.build}/dist"/> <property name="s.main" value="com"/> <tstamp> <format property="TODAY" pattern="d-MM-yy"/> </tstamp> </target> <!-- =================================================================== --> <!-- Help on usage --> <!-- =================================================================== --> <target name="usage"> <echo message=""/> <echo message=""/> <echo message="***** Build file"/> <echo message="-------------------------------------------------------------"/> <echo message=""/> <echo message=" available targets are:"/> <echo message=""/> <echo message=" package --> generates the *****.zip file (default)"/> <echo message=" compile --> compiles the source code"/> <echo message=" test --> unit test"/> <echo message=" release --> build the installation package"/> <echo message=" deploy --> deploy the application"/> <echo message=" clean --> cleans up the directory"/> <echo message=""/> <echo message=" See the comments inside the *.build file for more details."/> <echo message="-------------------------------------------------------------"/> <echo message=""/> <echo message=""/> </target> <!-- =================================================================== --> <!-- Compiles the source directory --> <!-- =================================================================== --> <target name="compile" depends="init"> <mkdir dir="${s.build.bin}"/> <echo message=""/> <echo message="Compiling application main source..."/> <echo message="${s.srccs}/${name}/*.cs"/> <!-- You may change the compile tasks here. --> <!-- first compile way: using solution task --> <solution configuration="release" solutionfile="${s.srccs}/${name}/${name}.sln" outputdir="${s.build.bin}" /> <!-- second compile way: using csc task for c# file --> <!-- <csc target="exe" warnaserror="true" debug="${debug}" output="${s.build.bin}/${name}.exe" > <sources failonempty="true"> <includes name="${s.srccs}/${name}/*.cs" /> </sources> </csc> --> </target> <!-- =================================================================== --> <!-- Creates the zip package --> <!-- =================================================================== --> <target name="package" depends="compile"> <!-- You may change the package tasks here. --> </target> <!-- =================================================================== --> <!-- Creates the deploy --> <!-- =================================================================== --> <target name="test" depends="compile"> <!-- You may fill the tasks here. --> </target> <!-- =================================================================== --> <!-- Creates the deploy --> <!-- =================================================================== --> <target name="deploy" depends=""> <!-- You may fill the tasks here. --> </target> <!-- =================================================================== --> <!-- Build the installation packge --> <!-- ================================ 上一页 [1] [2] [3] 下一页 [C语言系列]NET 中C#的switch语句的语法 [系统软件]托拽Explore中的文件到VB.net的窗口 [系统软件]Boost库在XP+Visual C++.net中的安装 [常用软件]新配色面板:Paint.Net3.0RC1官方下载 [常用软件]用内建的“Net Meeting”聊天 [VB.NET程序]Henry的VB.NET之旅(三)—共享成员 [VB.NET程序]Henry的VB.NET之旅(二)—构造与析构 [VB.NET程序]Henry的VB.NET之旅(一)—失踪的窗体 [VB.NET程序]在托盘上显示Balloon Tooltip(VB.NET) [VB.NET程序]Henry手记-VB.NET中动态加载Treeview节点(二)
|