details: /erp/devel/YUIAnt/rev/d829069ce6de
changeset: 0:d829069ce6de
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 09:16:48 2010 +0100
summary: Initial commit - Modified YUIAnt
details: /erp/devel/YUIAnt/rev/69174c462530
changeset: 1:69174c462530
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 09:17:28 2010 +0100
summary: Added classes folder
details: /erp/devel/YUIAnt/rev/69ed1a6456a0
changeset: 2:69ed1a6456a0
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 09:18:11 2010 +0100
summary: Added .hgignore
details: /erp/devel/YUIAnt/rev/2984a8617419
changeset: 3:2984a8617419
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 11:00:40 2010 +0100
summary: Removed binary jar output
details: /erp/devel/YUIAnt/rev/855412060707
changeset: 4:855412060707
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 11:02:13 2010 +0100
summary: Applied charset fix
details: /erp/devel/YUIAnt/rev/742b7e6bf843
changeset: 5:742b7e6bf843
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 11:02:33 2010 +0100
summary: Modified minify task to include ob-rhino
details: /erp/devel/YUIAnt/rev/465232bf39e9
changeset: 6:465232bf39e9
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 11:03:15 2010 +0100
summary: Added dist folder to .hgignore
details: /erp/devel/YUIAnt/rev/0877002992a3
changeset: 7:0877002992a3
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 13:05:03 2010 +0100
summary: Added jsmin folder
details: /erp/devel/YUIAnt/rev/b09cdde826e1
changeset: 8:b09cdde826e1
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 13:07:42 2010 +0100
summary: Changes lib references for building
details: /erp/devel/YUIAnt/rev/c735881b6727
changeset: 9:c735881b6727
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 13:08:02 2010 +0100
summary: Updating jar files
details: /erp/devel/YUIAnt/rev/a570419ef029
changeset: 10:a570419ef029
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Feb 12 13:08:30 2010 +0100
summary: Fixes copy/paste introduced bug
diffstat:
.hgignore | 5 +
build/build.xml | 49 +
js/prototype.js | 3269 ++++++++++++
js/reset.css | 19 +
js/scriptaculous/builder.js | 131 +
js/scriptaculous/controls.js | 835 +++
js/scriptaculous/dragdrop.js | 944 +++
js/scriptaculous/effects.js | 1090 ++++
js/scriptaculous/scriptaculous.js | 51 +
js/scriptaculous/slider.js | 278 +
js/scriptaculous/suggest.js | 50 +
lib/ob-rhino-1.6R7.jar | 0
lib/yuicompressor-2.4.2.jar | 0
src/application_version.properties | 2 +
src/com/yahoo/platform/yui/compressor/YUICompressTask.java | 417 +
15 files changed, 7140 insertions(+), 0 deletions(-)
diffs (truncated from 7202 to 300 lines):
diff -r 000000000000 -r a570419ef029 .hgignore
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore Fri Feb 12 13:08:30 2010 +0100
@@ -0,0 +1,5 @@
+syntax: glob
+
+classes
+dist
+jsmin
diff -r 000000000000 -r a570419ef029 build/build.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/build.xml Fri Feb 12 13:08:30 2010 +0100
@@ -0,0 +1,49 @@
+<project name="Deployment" default="jar" basedir="..">
+ <target name="init">
+ <property name="src.dir" value="src" />
+ <property name="bin.dir" value="classes" />
+ <property name="dist.dir" value="dist" />
+ <property name="js.dir" value="js" />
+ <property name="jsmin.dir" value="jsmin" />
+ <property name="project.name" value="YUIAnt" />
+ <property name="lib.dir" value="lib" />
+ <property environment="env" />
+ <path id="compile.classpath">
+ <pathelement location="${env.ANT_HOME}/lib/ant.jar" />
+ <pathelement
location="${lib.dir}/yuicompressor-2.4.2.jar" />
+ <pathelement location="${lib.dir}/ob-rhino-1.6R7.jar" />
+ </path>
+ <mkdir dir="${bin.dir}" />
+ </target>
+
+ <target name="compile" depends="init" description="Compiles the
project">
+ <javac srcdir="${src.dir}" destdir="${bin.dir}" debug="on">
+ <classpath refid="compile.classpath" />
+ </javac>
+ </target>
+
+ <target name="jar" depends="compile" description="Generate the YUIAnt
jar">
+ <jar basedir="${bin.dir}"
destfile="${dist.dir}/${project.name}.jar" />
+ </target>
+
+
+ <target name="minify" depends="init" description="Minifiy a set of
files">
+ <available file="${dist.dir}/YUIAnt.jar"
property="YUIANT_AVAILABLE" />
+ <fail unless="YUIANT_AVAILABLE" message="Run jar target to
generate the required task"/>
+ <taskdef name="yuicompress"
classname="com.yahoo.platform.yui.compressor.YUICompressTask">
+ <classpath>
+ <pathelement
location="${lib.dir}/yuicompressor-2.4.2.jar" />
+ <pathelement
location="${lib.dir}/ob-rhino-1.6R7.jar" />
+ <pathelement location="${dist.dir}/YUIAnt.jar"
/>
+ </classpath>
+ </taskdef>
+ <mkdir dir="${jsmin.dir}" />
+ <yuicompress linebreak="300" warn="false" munge="yes"
preserveallsemicolons="true"
+ outputfolder="${jsmin.dir}">
+ <fileset dir="${js.dir}" >
+ <include name="**/*.js" />
+ <include name="**/*.css" />
+ </fileset>
+ </yuicompress>
+ </target>
+</project>
diff -r 000000000000 -r a570419ef029 js/prototype.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/js/prototype.js Fri Feb 12 13:08:30 2010 +0100
@@ -0,0 +1,3269 @@
+/* Prototype JavaScript framework, version 1.5.1
+ * (c) 2005-2007 Sam Stephenson
+ *
+ * Prototype is freely distributable under the terms of an MIT-style license.
+ * For details, see the Prototype web site: http://www.prototypejs.org/
+ *
+/*--------------------------------------------------------------------------*/
+
+var Prototype = {
+ Version: '1.5.1',
+
+ Browser: {
+ IE: !!(window.attachEvent && !window.opera),
+ Opera: !!window.opera,
+ WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
+ Gecko: navigator.userAgent.indexOf('Gecko') > -1 &&
navigator.userAgent.indexOf('KHTML') == -1
+ },
+
+ BrowserFeatures: {
+ XPath: !!document.evaluate,
+ ElementExtensions: !!window.HTMLElement,
+ SpecificElementExtensions:
+ (document.createElement('div').__proto__ !==
+ document.createElement('form').__proto__)
+ },
+
+ ScriptFragment: '<script[^>]*>([\u0001-\uFFFF]*?)</script>',
+ JSONFilter: /^\/\*-secure-\s*(.*)\s*\*\/\s*$/,
+
+ emptyFunction: function() { },
+ K: function(x) { return x }
+}
+
+var Class = {
+ create: function() {
+ return function() {
+ this.initialize.apply(this, arguments);
+ }
+ }
+}
+
+var Abstract = new Object();
+
+Object.extend = function(destination, source) {
+ for (var property in source) {
+ destination[property] = source[property];
+ }
+ return destination;
+}
+
+Object.extend(Object, {
+ inspect: function(object) {
+ try {
+ if (object === undefined) return 'undefined';
+ if (object === null) return 'null';
+ return object.inspect ? object.inspect() : object.toString();
+ } catch (e) {
+ if (e instanceof RangeError) return '...';
+ throw e;
+ }
+ },
+
+ toJSON: function(object) {
+ var type = typeof object;
+ switch(type) {
+ case 'undefined':
+ case 'function':
+ case 'unknown': return;
+ case 'boolean': return object.toString();
+ }
+ if (object === null) return 'null';
+ if (object.toJSON) return object.toJSON();
+ if (object.ownerDocument === document) return;
+ var results = [];
+ for (var property in object) {
+ var value = Object.toJSON(object[property]);
+ if (value !== undefined)
+ results.push(property.toJSON() + ': ' + value);
+ }
+ return '{' + results.join(', ') + '}';
+ },
+
+ keys: function(object) {
+ var keys = [];
+ for (var property in object)
+ keys.push(property);
+ return keys;
+ },
+
+ values: function(object) {
+ var values = [];
+ for (var property in object)
+ values.push(object[property]);
+ return values;
+ },
+
+ clone: function(object) {
+ return Object.extend({}, object);
+ }
+});
+
+Function.prototype.bind = function() {
+ var __method = this, args = $A(arguments), object = args.shift();
+ return function() {
+ return __method.apply(object, args.concat($A(arguments)));
+ }
+}
+
+Function.prototype.bindAsEventListener = function(object) {
+ var __method = this, args = $A(arguments), object = args.shift();
+ return function(event) {
+ return __method.apply(object, [event || window.event].concat(args));
+ }
+}
+
+Object.extend(Number.prototype, {
+ toColorPart: function() {
+ return this.toPaddedString(2, 16);
+ },
+
+ succ: function() {
+ return this + 1;
+ },
+
+ times: function(iterator) {
+ $R(0, this, true).each(iterator);
+ return this;
+ },
+
+ toPaddedString: function(length, radix) {
+ var string = this.toString(radix || 10);
+ return '0'.times(length - string.length) + string;
+ },
+
+ toJSON: function() {
+ return isFinite(this) ? this.toString() : 'null';
+ }
+});
+
+Date.prototype.toJSON = function() {
+ return '"' + this.getFullYear() + '-' +
+ (this.getMonth() + 1).toPaddedString(2) + '-' +
+ this.getDate().toPaddedString(2) + 'T' +
+ this.getHours().toPaddedString(2) + ':' +
+ this.getMinutes().toPaddedString(2) + ':' +
+ this.getSeconds().toPaddedString(2) + '"';
+};
+
+var Try = {
+ these: function() {
+ var returnValue;
+
+ for (var i = 0, length = arguments.length; i < length; i++) {
+ var lambda = arguments[i];
+ try {
+ returnValue = lambda();
+ break;
+ } catch (e) {}
+ }
+
+ return returnValue;
+ }
+}
+
+/*--------------------------------------------------------------------------*/
+
+var PeriodicalExecuter = Class.create();
+PeriodicalExecuter.prototype = {
+ initialize: function(callback, frequency) {
+ this.callback = callback;
+ this.frequency = frequency;
+ this.currentlyExecuting = false;
+
+ this.registerCallback();
+ },
+
+ registerCallback: function() {
+ this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency *
1000);
+ },
+
+ stop: function() {
+ if (!this.timer) return;
+ clearInterval(this.timer);
+ this.timer = null;
+ },
+
+ onTimerEvent: function() {
+ if (!this.currentlyExecuting) {
+ try {
+ this.currentlyExecuting = true;
+ this.callback(this);
+ } finally {
+ this.currentlyExecuting = false;
+ }
+ }
+ }
+}
+Object.extend(String, {
+ interpret: function(value) {
+ return value == null ? '' : String(value);
+ },
+ specialChar: {
+ '\b': '\\b',
+ '\t': '\\t',
+ '\n': '\\n',
+ '\f': '\\f',
+ '\r': '\\r',
+ '\\': '\\\\'
+ }
+});
+
+Object.extend(String.prototype, {
+ gsub: function(pattern, replacement) {
+ var result = '', source = this, match;
+ replacement = arguments.callee.prepareReplacement(replacement);
+
+ while (source.length > 0) {
+ if (match = source.match(pattern)) {
+ result += source.slice(0, match.index);
+ result += String.interpret(replacement(match));
+ source = source.slice(match.index + match[0].length);
+ } else {
+ result += source, source = '';
+ }
+ }
+ return result;
+ },
+
+ sub: function(pattern, replacement, count) {
+ replacement = this.gsub.prepareReplacement(replacement);
+ count = count === undefined ? 1 : count;
+
+ return this.gsub(pattern, function(match) {
+ if (--count < 0) return match[0];
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits