This repository has been archived by the owner on Jan 10, 2020. It is now read-only.
forked from apm/yui-caja
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adam Moore
committed
May 18, 2009
1 parent
86b67ee
commit eb78a72
Showing
3 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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> | |||
|