Phingless NDF
Manuel Holtgrewe <[email protected]> Wed, 09 Mar 2005 15:05:43 +0100
| Newsgroups | gmane.comp.lib.binarycloud.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi
I have just checked a XML Parser for NDF files and integrated it with
Node and a rude cache. This means we could have a phingless binarycloud
without any translation and localization right now.
I changed vortex, r3 and testsite to work with it - I can run all
testsite pages without problems.
You have to do the following changes to your app/*/build.xml build files:
- Replace >>name="<< with >>id="<< in all your *.ndf.xml files
- Change build.xml files to copy XML files instead of transforming
them. For example, replace something like the following:
<xslt todir="${destdir}" style="${env.BCHOME}/node/xml/ndf2php.xsl">
<mapper type="regex" from="^(.*)\.ndf\.xml$$" to="\1.php"/>
... other stuff ...
</xslt>
by
<!-- Copy the ndf files -->
<copy todir="${destdir}">
<fileset dir="${srcdir}">
<include name="**/*.ndf.xml" />
</fileset>
</copy>
- Use *.ndf.xml instead of *.php file names for NDF files. This mainly
affects the PHP files in htdocs:
* Replace "->getPage\("(.*?)\.php"\)" with "->getPage("\1.ndf.xml")"
in your PHP files
* Replace "Node::_getDefinition\("(.*?)\.php"\)" with
"Node::_getDefinition("\1.ndf.xml")" in your PHP files
- Replace the "raw" type by constants or other means in your PHP code.
Please report back any problems and errors.
Regards,
Manuel
--
GPG key: http://www.ggnore.net/~mholtgrewe/personal/files/public_key.asc
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev