Permalink
Browse files

.

  • Loading branch information...
1 parent 86b67ee commit eb78a72560a7e8c1b6aa3b098535872b8578d66e Adam Moore committed May 18, 2009
Showing with 113 additions and 0 deletions.
  1. +25 −0 README.textile
  2. +9 −0 build.properties
  3. +79 −0 build.xml
View
@@ -0,0 +1,25 @@
+h2. YUI-Caja
+
+This projects contains files related to the effort to cajole YUI.
+
+YUI - http://developer.yahoo.com/yui/
+
+The YUI Library is a set of utilities and controls, written in JavaScript, for building richly interactive web applications using techniques such as DOM scripting, DHTML and AJAX. YUI is available under a BSD license and is free for all uses.
+
+Caja - http://code.google.com/p/google-caja/
+
+A source-to-source translator for securing Javascript-based web content
+
+This project requires the full source tree for YUI2 and Caja, both publically available:
+
+YUI:
+
+http://github.com/yui/yui2/tree/master
+
+Caja:
+
+http://code.google.com/p/google-caja/source/checkout
+
+The default location expected for these directories is ../yui2 and ../google-caja.
+
+The caja test bed must be built ('ant testbed' in the root of the google-caja src dir)
View
@@ -0,0 +1,9 @@
+build = cajoled
+log = logs
+test = tests
+
+caja.base = ../google-caja
+caja.cajoler = ${caja.base}/bin/cajole_html
+
+yui2.base = ../yui2
+yui2.build = ${yui2.base}/build
View
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+<project name="yui-caja" default="all" basedir=".">
+
+ <property file="build.properties"/>
+
+ <target name="init">
+ <mkdir dir="${build}"/>
+ <mkdir dir="${log}"/>
+ </target>
+
+ <target name="utilities" depends="init">
+ <exec dir="." executable="${caja.cajoler}" output="${log}/cajole_utilities.log">
+ <arg value="-a" />
+ <arg value="-i" />
+ <arg value="${yui2.build}/utilities/utilities.js" />
+ <arg value="-o" />
+ <arg value="${build}/utilities.vo.js" />
+ </exec>
+ </target>
+
+ <target name="patch-utilities" depends="init">
+ <echo>need to remove code in utilities.js to get around Caja issue with the border CSS shorthand property</echo>
+ </target>
+
+ <target name="json" depends="init">
+ <exec dir="." executable="${caja.cajoler}" output="${log}/cajole_json.log">
+ <arg value="-a" />
+ <arg value="-i" />
+ <arg value="${yui2.build}/json/json.js" />
+ <arg value="-o" />
+ <arg value="${build}/json.vo.js" />
+ </exec>
+ </target>
+
+ <target name="treeview" depends="init">
+ <exec dir="." executable="${caja.cajoler}" output="${log}/cajole_treeview.log">
+ <arg value="-a" />
+ <arg value="-i" />
+ <arg value="${yui2.build}/treeview/treeview.js" />
+ <arg value="-o" />
+ <arg value="${build}/treeview.vo.js" />
+ </exec>
+ </target>
+
+ <target name="resize" depends="init">
+ <exec dir="." executable="${caja.cajoler}" output="${log}/cajole_resize.log">
+ <arg value="-a" />
+ <arg value="-i" />
+ <arg value="${yui2.build}/resize/resize.js" />
+ <arg value="-o" />
+ <arg value="${build}/resize.vo.js" />
+ </exec>
+ </target>
+
+ <target name="core" depends="init">
+ <exec dir="." executable="${caja.cajoler}" output="${log}/cajole_core.log">
+ <arg value="-a" />
+ <arg value="-i" />
+ <arg value="${test}/core_gadget.html" />
+ <arg value="-o" />
+ <arg value="${build}/core_gadget.vo.js" />
+ </exec>
+ </target>
+
+ <target name="dd" depends="init">
+ <exec dir="." executable="${caja.cajoler}" output="${log}/cajole_dd.log">
+ <arg value="-a" />
+ <arg value="-i" />
+ <arg value="${test}/dd_gadget.html" />
+ <arg value="-o" />
+ <arg value="${build}/dd_gadget.vo.js" />
+ </exec>
+ </target>
+
+ <target name="yui" depends="init, utilities, json, treeview, resize, patch-utilities" />
+ <target name="gadgets" depends="init, core, dd" />
+ <target name="all" depends="init, yui, gadgets" />
+</project>
+

0 comments on commit eb78a72

Please sign in to comment.