Skip to content

Instantly share code, notes, and snippets.

@tonypartridge
Created January 10, 2019 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonypartridge/a4482caed1ec2812b5b73cb820a485c0 to your computer and use it in GitHub Desktop.
Save tonypartridge/a4482caed1ec2812b5b73cb820a485c0 to your computer and use it in GitHub Desktop.
Local Development Phing build script to sym link RSVP Pro Project structure
<?xml version="1.0" encoding="UTF-8"?>
<!-- Usage - run phing -f linker.xml -Dp=/var/www/je -->
<project name="linker" default="link" basedir=".">
<property name="URI.base" value="./"/>
<resolvepath propertyName="URI.base" file="${URI.base}"/>
<property name="p" value="" />
<property name="component" value="com_rsvppro"/>
<property name="rootPath" value="${URI.base}"/>
<target name="link" description="Build all targets !! ">
<echo>Current Path: ${rootPath}</echo>
<echo>Target Path: ${p}</echo>
<!-- Delete folders, but don't worry if it fails as it could be a symbolic link -->
<delete dir="${p}/administrator/components/${component}/" includeemptydirs="true" verbose="true" failonerror="false" />
<delete dir="${p}/components/${component}/" includeemptydirs="true" verbose="true" failonerror="false" />
<delete dir="${p}/plugins/jevents/jevrsvppro/" includeemptydirs="true" verbose="true" failonerror="false" />
<delete dir="${p}/plugins/rsvppro/" includeemptydirs="true" verbose="true" failonerror="false" />
<delete dir="${p}/plugins/vmcoupon/rsvppro" includeemptydirs="true" verbose="true" failonerror="false" />
<delete dir="${p}/plugins/vmcustom/rsvppro" includeemptydirs="true" verbose="true" failonerror="false" />
<delete dir="${p}/libraries/jev_omnipay" includeemptydirs="true" verbose="true" failonerror="false" />
<!-- Delete Files -->
<delete file="${p}/administrator/language/en-GB/en-GB.com_rsvppro.ini" verbose="true" failonerror="false" />
<delete file="${p}/administrator/language/en-GB/en-GB.com_rsvppro.sys.ini" verbose="true" failonerror="false" />
<delete file="${p}/language/en-GB/en-GB.com_rsvppro.ini" verbose="true" failonerror="false" />
<delete file="${p}/administrator/language/en-GB/en-GB.plg_jevents_jevrsvppro.ini" verbose="true" failonerror="false" />
<!-- Create System links -->
<symlink target="${rootPath}/jevrsvppro/component/admin" link="${p}/administrator/components/${component}" />
<symlink target="${rootPath}/jevrsvppro/component/site" link="${p}/components/${component}" />
<symlink target="${rootPath}/plugin" link="${p}/plugins/jevents/jevrsvppro" />
<symlink target="${rootPath}/rsvpplugins" link="${p}/plugins/rsvppro" />
<symlink target="${rootPath}/vmcoupon" link="${p}/plugins/vmcoupon/rsvppro" />
<symlink target="${rootPath}/vmcustom" link="${p}/plugins/vmcustom/rsvppro" />
<symlink target="${rootPath}/lib_jev_omnipay" link="${p}/libraries/jev_omnipay" />
<!-- Language System Links -->
<symlink target="${rootPath}/jevrsvppro/component/admin/language/en-GB.com_rsvppro.ini" link="${p}/administrator/language/en-GB/en-GB.com_rsvppro.ini" />
<symlink target="${rootPath}/jevrsvppro/component/admin/language/en-GB.com_rsvppro.sys.ini" link="${p}/administrator/language/en-GB/en-GB.com_rsvppro.sys.ini" />
<symlink target="${rootPath}/jevrsvppro/component/site/language/en-GB.com_rsvppro.ini" link="${p}/language/en-GB/en-GB.com_rsvppro.ini" />
<symlink target="${rootPath}/plugin/languages/en-GB.plg_jevents_jevrsvppro.ini" link="${p}/administrator/language/en-GB/en-GB.plg_jevents_jevrsvppro.ini" />
</target>
</project>
<!-- TODO RSVP Pro Plugins language file sym links -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment