build.p5build_SE.SYSTEM.xml 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <property name="build_SE.SYSTEM.build" location="${p5build_SE.basedir}/build.p5build_SE.SYSTEM.xml"/>
  7. <property name="p5build_SE.SYSTEM.config_dir" value="${basedir}/config"/>
  8. <include file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-user.xml" optional="true"/>
  9. <include file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-root.xml" optional="true"/>
  10. <property name="p5build_SE.SYSTEM.StandardOutPath" value="${p5build_SE.temp}/StandardOutPath"/>
  11. <property name="p5build_SE.SYSTEM.StandardErrorPath" value="${p5build_SE.temp}/StandardErrorPath"/>
  12. <condition property="p5build_SE.SYSTEM.StandardOutPath.notcreated" taskname="p5build_SE.SYSTEM.StandardOutPath">
  13. <not><available file="${p5build_SE.SYSTEM.StandardOutPath}"></available></not>
  14. </condition>
  15. <condition property="p5build_SE.SYSTEM.StandardErrorPath.notcreated" taskname="p5build_SE.SYSTEM.StandardErrorPath">
  16. <not><available file="${p5build_SE.SYSTEM.StandardErrorPath}"></available></not>
  17. </condition>
  18. <condition property="p5build_SE.SYSTEM.local-user.undef" taskname="p5build_SE.SYSTEM.local-user">
  19. <not><isset property="p5build_SE.SYSTEM.local-user"/></not>
  20. </condition>
  21. <condition property="p5build_SE.SYSTEM.local-root.undef" taskname="p5build_SE.SYSTEM.local-root">
  22. <not><isset property="p5build_SE.SYSTEM.local-root"/></not>
  23. </condition>
  24. <!-- <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 -\->
  25. <property name="p5build_SE.SYSTEM.local-root" value="root"/> <!-\- name of system user account to make some root tasks -\->-->
  26. <target name="build_SE.SYSTEM" depends="p5build_SE.SYSTEM.local-user,p5build_SE.SYSTEM.local-root,p5build_SE.SYSTEM.StandardOutPath,p5build_SE.SYSTEM.StandardErrorPath"/>
  27. <target name="p5build_SE.SYSTEM.local-user" if="p5build_SE.SYSTEM.local-user.undef">
  28. <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"/>
  29. <echoxml file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-user.xml">
  30. <project basedir="${basedir}" name="build_SE.SYSTEM.local-user"
  31. xmlns:p5build_SE="http://biuro.biall-net.pl/build_SE.xsd"
  32. >
  33. <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 -->
  34. </project>
  35. </echoxml>
  36. <chown file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-user.xml" owner="${p5build_SE.SYSTEM.local-user}"/>
  37. </target>
  38. <target name="p5build_SE.SYSTEM.local-root" if="p5build_SE.SYSTEM.local-root.undef">
  39. <input addproperty="p5build_SE.SYSTEM.local-root" message=" name of system user account to make some root tasks"/>
  40. <echoxml file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-root.xml">
  41. <project basedir="${basedir}" name="build_SE.SYSTEM.local-root"
  42. xmlns:p5build_SE="http://biuro.biall-net.pl/build_SE.xsd"
  43. >
  44. <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 -->
  45. </project>
  46. </echoxml>
  47. <chown file="${p5build_SE.SYSTEM.config_dir}/build.p5build_SE.SYSTEM.local-root.xml" owner="${p5build_SE.SYSTEM.local-user}"/>
  48. </target>
  49. <target name="p5build_SE.SYSTEM.StandardOutPath" if="p5build_SE.SYSTEM.StandardOutPath.notcreated">
  50. <mkdir dir="${p5build_SE.SYSTEM.StandardOutPath}"/>
  51. <chown file="${p5build_SE.SYSTEM.StandardOutPath}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false"/>
  52. <chmod file="${p5build_SE.SYSTEM.StandardOutPath}" perm="777" failonerror="false"/>
  53. </target>
  54. <target name="p5build_SE.SYSTEM.StandardErrorPath" if="p5build_SE.SYSTEM.StandardErrorPath.notcreated">
  55. <mkdir dir="${p5build_SE.SYSTEM.StandardErrorPath}"/>
  56. <chown file="${p5build_SE.SYSTEM.StandardErrorPath}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false"/>
  57. <chmod file="${p5build_SE.SYSTEM.StandardErrorPath}" perm="777" failonerror="false"/>
  58. </target>
  59. </project>