Skip to content

Instantly share code, notes, and snippets.

@afawcett
Created July 16, 2016 11:15
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 afawcett/9e0db2ea3bf2c53b288d1b1b4faa103c to your computer and use it in GitHub Desktop.
Save afawcett/9e0db2ea3bf2c53b288d1b1b4faa103c to your computer and use it in GitHub Desktop.
Cloud9 /src Directory Fix
<project>
<target name="cloud9.github.init">
</target>
<target name="sync.from.cloud9">
<sync todir="src/classes" verbose="true">
<fileset dir="${basedir}/classes">
<exclude name="**/.c9/**"/>
</fileset>
</sync>
<sync todir="src/components" verbose="true">
<fileset dir="${basedir}/components">
<exclude name="**/.c9/**"/>
</fileset>
</sync>
<sync todir="src/pages" verbose="true">
<fileset dir="${basedir}/pages">
<exclude name="**/.c9/**"/>
</fileset>
</sync>
</target>
<target name="sync.to.cloud9">
<sync todir="${basedir}/classes" verbose="true">
<fileset dir="${basedir}/src/classes"/>
</sync>
<sync todir="${basedir}/components" verbose="true">
<fileset dir="${basedir}/src/components"/>
</sync>
<sync todir="${basedir}/pages" verbose="true">
<fileset dir="${basedir}/src/pages"/>
</sync>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment