
How to install
---------------

Tested on phing-2.4.5 on Windows.

1/
copy NuCoderTask.php in \phing-2.4.5\classes\phing\tasks\ext


2/
update the file Q:\phing-2.4.5\classes\phing\tasks\defaults.properties
with the following:
nucoder=phing.tasks.ext.NuCoderTask

3/
that's all.

sample build XML task:
  
<target name="obfuscation" description="">
  <nucoder
     recursive="true"
     obfuscation="1"
     copyall="true"
     lineinfo="true"
     exclude="config.php *.cache.php index.php"  
     noheader="false"
     nodl="false"
     header="Q:/RELEASE/nucoder-header.txt"
     fromdir="${DST_DIR}/build/source"
    todir="${DST_DIR}/build/dest"
    nucoderpath="C:\Program Files (x86)\NuSphere\NuCoder\nu-coder.exe"
  >

  </nucoder>
</target>

where DST_DIR is a property set this way
 <property name="DST_DIR" value="." description="source folder" />

Refer to nu-coder doc for details on the commands

4/
Not all the properties have been coded.
Only those I needed.

Author:
Nadir Boussoukaia
03/09/2011