build.p5build_SE.SYSTEM.xml 5.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="../../schema" name="build_SE.SYSTEM"
  3. xmlns:p5build_SE="http://biuro.biall-net.pl/build_SE.xsd"
  4. >
  5. <include optional="true" file="build.p5build_SE.PRODUCT.xml"/>
  6. <include file="build.p5build_SE.SERVER.xml"/>
  7. <include file="build_SE.check_OS.xml" as="check_OS"/>
  8. <property name="build_SE.SYSTEM.build" location="${p5build_SE.basedir}/build.p5build_SE.SYSTEM.xml"/>
  9. <property name="p5build_SE.SYSTEM.config_dir" value="${basedir}/config"/>
  10. <include file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-user.xml" optional="true"/>
  11. <include file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-root.xml" optional="true"/>
  12. <property name="p5build_SE.SYSTEM.StandardOutPath" value="${p5build_SE.temp}/StandardOutPath"/>
  13. <property name="p5build_SE.SYSTEM.StandardErrorPath" value="${p5build_SE.temp}/StandardErrorPath"/>
  14. <property name="p5build_SE.SYSTEM.StandardDebugPath" value="${p5build_SE.debug}/StandardDebugPath"/>
  15. <condition property="p5build_SE.SYSTEM.StandardOutPath.notcreated" taskname="p5build_SE.SYSTEM.StandardOutPath">
  16. <not><available file="${p5build_SE.SYSTEM.StandardOutPath}"></available></not>
  17. </condition>
  18. <condition property="p5build_SE.SYSTEM.StandardErrorPath.notcreated" taskname="p5build_SE.SYSTEM.StandardErrorPath">
  19. <not><available file="${p5build_SE.SYSTEM.StandardErrorPath}"></available></not>
  20. </condition>
  21. <condition property="p5build_SE.SYSTEM.StandardDebugPath.notcreated" taskname="p5build_SE.SYSTEM.StandardDebugPath">
  22. <not><available file="${p5build_SE.SYSTEM.StandardDebugPath}"></available></not>
  23. </condition>
  24. <condition property="p5build_SE.SYSTEM.local-user.undef" taskname="p5build_SE.SYSTEM.local-user">
  25. <not><isset property="p5build_SE.SYSTEM.local-user"/></not>
  26. </condition>
  27. <condition property="p5build_SE.SYSTEM.local-root.undef" taskname="p5build_SE.SYSTEM.local-root">
  28. <not><isset property="p5build_SE.SYSTEM.local-root"/></not>
  29. </condition>
  30. <!-- <property name="p5build_SE.SYSTEM.local-user" value="a.binder"/><!-\- type local username for files creations permitions - some root tasks should chown it to this UID to allow for him to read -\->
  31. <property name="p5build_SE.SYSTEM.local-root" value="root"/> <!-\- name of system user account to make some root tasks -\->-->
  32. <target name="build_SE.SYSTEM" depends="p5build_SE.SYSTEM.local-user,p5build_SE.SYSTEM.local-root,p5build_SE.SYSTEM.StandardOutPath,p5build_SE.SYSTEM.StandardErrorPath,p5build_SE.SYSTEM.StandardDebugPath"/>
  33. <target name="p5build_SE.SYSTEM.local-user" if="p5build_SE.SYSTEM.local-user.undef">
  34. <input addproperty="p5build_SE.SYSTEM.local-user" message=" type local username for files creations permitions - some root tasks should chown it to this UID to allow for him to read"/>
  35. <mkdir dir="${p5build_SE.SYSTEM.config_dir}"/>
  36. <echoxml file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-user.xml">
  37. <project basedir="${basedir}" name="build_SE.SYSTEM.local-user"
  38. xmlns:p5build_SE="http://biuro.biall-net.pl/build_SE.xsd"
  39. >
  40. <property name="p5build_SE.SYSTEM.local-user" value="${p5build_SE.SYSTEM.local-user}"/><!-- type local username for files creations permitions - some root tasks should chown it to this UID to allow for him to read -->
  41. </project>
  42. </echoxml>
  43. <chown file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-user.xml" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false"/>
  44. </target>
  45. <target name="p5build_SE.SYSTEM.local-root" if="p5build_SE.SYSTEM.local-root.undef">
  46. <input addproperty="p5build_SE.SYSTEM.local-root" message=" name of system user account to make some root tasks"/>
  47. <mkdir dir="${p5build_SE.SYSTEM.config_dir}"/>
  48. <echoxml file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-root.xml">
  49. <project basedir="${basedir}" name="build_SE.SYSTEM.local-root"
  50. xmlns:p5build_SE="http://biuro.biall-net.pl/build_SE.xsd"
  51. >
  52. <property name="p5build_SE.SYSTEM.local-root" value="${p5build_SE.SYSTEM.local-root}"/><!-- type local username for files creations permitions - some root tasks should chown it to this UID to allow for him to read -->
  53. </project>
  54. </echoxml>
  55. <chown file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-root.xml" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false"/>
  56. </target>
  57. <target name="p5build_SE.SYSTEM.StandardOutPath" if="p5build_SE.SYSTEM.StandardOutPath.notcreated">
  58. <mkdir dir="${p5build_SE.SYSTEM.StandardOutPath}"/>
  59. <chown file="${p5build_SE.SYSTEM.StandardOutPath}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false"/>
  60. <chmod file="${p5build_SE.SYSTEM.StandardOutPath}" perm="777" failonerror="false"/>
  61. </target>
  62. <target name="p5build_SE.SYSTEM.StandardErrorPath" if="p5build_SE.SYSTEM.StandardErrorPath.notcreated">
  63. <mkdir dir="${p5build_SE.SYSTEM.StandardErrorPath}"/>
  64. <chown file="${p5build_SE.SYSTEM.StandardErrorPath}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false"/>
  65. <chmod file="${p5build_SE.SYSTEM.StandardErrorPath}" perm="777" failonerror="false"/>
  66. </target>
  67. <target name="p5build_SE.SYSTEM.StandardDebugPath" if="p5build_SE.SYSTEM.StandardDebugPath.notcreated">
  68. <mkdir dir="${p5build_SE.SYSTEM.StandardDebugPath}"/>
  69. <chown file="${p5build_SE.SYSTEM.StandardDebugPath}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false"/>
  70. <chmod file="${p5build_SE.SYSTEM.StandardDebugPath}" perm="777" failonerror="false"/>
  71. </target>
  72. </project>