Using Eclipse in Ubuntu Linux.
I'm creating an ant task to delete a directory in my apache localhost directory (/var/www) and then copy in files from my Eclipse project.
I have:
<project>
<target name="deploy">
<delete dir="/var/www/gds"/>
<copy todir="/var/www/gds/src">
<fileset dir="src">
</fileset>
</copy>
<copy todir="/var/www/gds/">
<fileset dir="web">
</fileset>
</copy>
</target>
</project>
However ant doesn't appear to have root user privileges to copy into this directory. It works if I open Eclipse using 'sudo Eclipse' but I don't really want to be running Eclipse in root.
Is there a way I can get ant to copy into this directory?