default.build 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0"?>
  2. <project name="ServerConsole" default="build" basedir=".">
  3. <property name="debug" value="true" overwrite="false" />
  4. <target name="clean" description="remove all generated files">
  5. <delete file="../common/bin/ServerConsole.dll" failonerror="false" />
  6. <delete file="../common/bin/ServerConsole.dll.mdb" failonerror="false" />
  7. </target>
  8. <target name="svnupdate" description="updates to latest SVN">
  9. <exec program="svn">
  10. <arg value="update" />
  11. </exec>
  12. </target>
  13. <target name="upgrade" description="updates from SVN and then builds" depends="clean,svnupdate,build">
  14. </target>
  15. <target name="build" description="compiles the source code">
  16. <loadfile file="../VERSION" property="svnver"/>
  17. <asminfo output="AssemblyInfo.cs" language="CSharp">
  18. <imports>
  19. <import namespace="System" />
  20. <import namespace="System.Reflection" />
  21. <import namespace="System.Runtime.InteropServices" />
  22. </imports>
  23. <attributes>
  24. <attribute type="ComVisibleAttribute" value="false" />
  25. <attribute type="CLSCompliantAttribute" value="false" />
  26. <attribute type="AssemblyVersionAttribute" value="${svnver}" />
  27. <attribute type="AssemblyTitleAttribute" value="ogs-serverconsole" />
  28. <attribute type="AssemblyDescriptionAttribute" value="The default server console" />
  29. <attribute type="AssemblyCopyrightAttribute" value="Copyright © OGS development team 2007"/>
  30. </attributes>
  31. </asminfo>
  32. <csc target="library" output="../common/bin/ServerConsole.dll" debug="${debug}" verbose="true" warninglevel="4">
  33. <references>
  34. <include name="System" />
  35. <include name="System.Xml" />
  36. </references>
  37. <sources>
  38. <include name="*.cs" />
  39. </sources>
  40. </csc>
  41. </target>
  42. </project>