Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

upgraded external libs

  • Loading branch information...
commit 365e6ad44939ce685db94cef33c2854553a88f8e 1 parent 53ff2df
@ChrisMcKee ChrisMcKee authored
Showing with 269 additions and 37,237 deletions.
  1. +1 −1  MIT-license.txt
  2. +8 −0 Sublime.sublime-project
  3. +163 −0 Sublime.sublime-workspace
  4. +1 −1  build.cmd
  5. +3 −3 build.properties
  6. +1 −1  build.sh
  7. +1 −1  build.xml
  8. BIN  src/assets/Thumbs.db
  9. BIN  src/examples/images/Thumbs.db
  10. BIN  src/examples/images/full/Thumbs.db
  11. BIN  src/examples/images/thumb/Thumbs.db
  12. +91 −6 src/lib/klass.min.js
  13. +0 −6 tools/apache-ant-1.8.2/NOTICE
  14. +0 −5,467 tools/apache-ant-1.8.2/WHATSNEW
  15. +0 −335 tools/apache-ant-1.8.2/bin/ant
  16. +0 −218 tools/apache-ant-1.8.2/bin/ant.bat
  17. +0 −93 tools/apache-ant-1.8.2/bin/ant.cmd
  18. +0 −50 tools/apache-ant-1.8.2/bin/antRun.bat
  19. +0 −98 tools/apache-ant-1.8.2/bin/antenv.cmd
  20. +0 −114 tools/apache-ant-1.8.2/bin/complete-ant-cmd.pl
  21. +0 −131 tools/apache-ant-1.8.2/bin/envset.cmd
  22. +0 −31 tools/apache-ant-1.8.2/bin/lcp.bat
  23. +0 −60 tools/apache-ant-1.8.2/bin/runrc.cmd
  24. +0 −203 tools/apache-ant-1.8.2/docs/LICENSE
  25. +0 −70 tools/apache-ant-1.8.2/docs/ant2/FunctionalRequirements.html
  26. +0 −253 tools/apache-ant-1.8.2/docs/ant2/VFS.txt
  27. +0 −492 tools/apache-ant-1.8.2/docs/ant2/actionlist.html
  28. +0 −381 tools/apache-ant-1.8.2/docs/ant2/features.html
  29. +0 −294 tools/apache-ant-1.8.2/docs/ant2/original-specification.html
  30. +0 −1,106 tools/apache-ant-1.8.2/docs/ant2/requested-features.html
  31. +0 −782 tools/apache-ant-1.8.2/docs/ant2/requested-features.txt
  32. +0 −1,115 tools/apache-ant-1.8.2/docs/ant_in_anger.html
  33. +0 −507 tools/apache-ant-1.8.2/docs/ant_task_guidelines.html
  34. +0 −411 tools/apache-ant-1.8.2/docs/antlibs/antunit/index.html
  35. +0 −22 tools/apache-ant-1.8.2/docs/antlibs/bindownload.cgi
  36. +0 −361 tools/apache-ant-1.8.2/docs/antlibs/bindownload.html
  37. +0 −365 tools/apache-ant-1.8.2/docs/antlibs/charter.html
  38. +0 −238 tools/apache-ant-1.8.2/docs/antlibs/compress/index.html
  39. +0 −336 tools/apache-ant-1.8.2/docs/antlibs/dotnet/index.html
  40. +0 −209 tools/apache-ant-1.8.2/docs/antlibs/index.html
  41. +0 −592 tools/apache-ant-1.8.2/docs/antlibs/proper.html
  42. +0 −281 tools/apache-ant-1.8.2/docs/antlibs/props/index.html
  43. +0 −735 tools/apache-ant-1.8.2/docs/antlibs/sandbox.html
  44. +0 −22 tools/apache-ant-1.8.2/docs/antlibs/srcdownload.cgi
  45. +0 −360 tools/apache-ant-1.8.2/docs/antlibs/srcdownload.html
  46. +0 −235 tools/apache-ant-1.8.2/docs/antlibs/svn/index.html
  47. +0 −763 tools/apache-ant-1.8.2/docs/antnews.html
  48. BIN  tools/apache-ant-1.8.2/docs/appendix_e.pdf
  49. +0 −235 tools/apache-ant-1.8.2/docs/breadcrumbs.js
  50. +0 −379 tools/apache-ant-1.8.2/docs/bugs.html
  51. +0 −831 tools/apache-ant-1.8.2/docs/bylaws.html
  52. +0 −553 tools/apache-ant-1.8.2/docs/contributors.html
  53. +0 −7,561 tools/apache-ant-1.8.2/docs/external.html
  54. +0 −2,284 tools/apache-ant-1.8.2/docs/faq.html
  55. BIN  tools/apache-ant-1.8.2/docs/favicon.ico
  56. BIN  tools/apache-ant-1.8.2/docs/images/JDJEditorsChoiceAward.jpg
  57. BIN  tools/apache-ant-1.8.2/docs/images/ant_logo.ico
  58. BIN  tools/apache-ant-1.8.2/docs/images/ant_logo_large.gif
  59. BIN  tools/apache-ant-1.8.2/docs/images/ant_logo_medium.gif
  60. BIN  tools/apache-ant-1.8.2/docs/images/ant_logo_small.gif
  61. BIN  tools/apache-ant-1.8.2/docs/images/beta.png
  62. BIN  tools/apache-ant-1.8.2/docs/images/current.gif
  63. BIN  tools/apache-ant-1.8.2/docs/images/group-logo.gif
  64. BIN  tools/apache-ant-1.8.2/docs/images/jp_rcwinner_2003.gif
  65. BIN  tools/apache-ant-1.8.2/docs/images/jw_ec_logo_winner2002.gif
  66. BIN  tools/apache-ant-1.8.2/docs/images/jw_ec_logo_winner2003.gif
  67. BIN  tools/apache-ant-1.8.2/docs/images/label.gif
  68. BIN  tools/apache-ant-1.8.2/docs/images/menu-left.gif
  69. BIN  tools/apache-ant-1.8.2/docs/images/menu-right.gif
  70. BIN  tools/apache-ant-1.8.2/docs/images/page.gif
  71. BIN  tools/apache-ant-1.8.2/docs/images/printer.gif
  72. BIN  tools/apache-ant-1.8.2/docs/images/project-logo.gif
  73. BIN  tools/apache-ant-1.8.2/docs/images/sdm_productivity_award.gif
  74. BIN  tools/apache-ant-1.8.2/docs/images/search-left.gif
  75. BIN  tools/apache-ant-1.8.2/docs/images/search-right.gif
  76. BIN  tools/apache-ant-1.8.2/docs/images/spacer.gif
  77. BIN  tools/apache-ant-1.8.2/docs/images/tab-left.gif
  78. BIN  tools/apache-ant-1.8.2/docs/images/tab-right.gif
  79. BIN  tools/apache-ant-1.8.2/docs/images/tabSel-left.gif
  80. BIN  tools/apache-ant-1.8.2/docs/images/tabSel-right.gif
  81. +0 −338 tools/apache-ant-1.8.2/docs/index.html
  82. +0 −249 tools/apache-ant-1.8.2/docs/legal.html
  83. +0 −519 tools/apache-ant-1.8.2/docs/license.html
  84. +0 −338 tools/apache-ant-1.8.2/docs/mail.html
  85. +0 −328 tools/apache-ant-1.8.2/docs/manual/Tasks/concat.html
  86. +0 −1,083 tools/apache-ant-1.8.2/docs/manual/Tasks/conditions.html
  87. +0 −367 tools/apache-ant-1.8.2/docs/manual/Tasks/copy.html
  88. +0 −107 tools/apache-ant-1.8.2/docs/manual/Tasks/defaultexcludes.html
  89. +0 −215 tools/apache-ant-1.8.2/docs/manual/Tasks/delete.html
  90. +0 −1,781 tools/apache-ant-1.8.2/docs/manual/Tasks/ejb.html
  91. +0 −724 tools/apache-ant-1.8.2/docs/manual/Tasks/ftp.html
  92. +0 −570 tools/apache-ant-1.8.2/docs/manual/Tasks/jar.html
  93. +0 −842 tools/apache-ant-1.8.2/docs/manual/Tasks/javac.html
  94. +0 −204 tools/apache-ant-1.8.2/docs/manual/Tasks/javacc.html
  95. +0 −116 tools/apache-ant-1.8.2/docs/manual/Tasks/jjdoc.html
  96. +0 −556 tools/apache-ant-1.8.2/docs/manual/Tasks/jjtree.html
  97. +0 −308 tools/apache-ant-1.8.2/docs/manual/Tasks/jspc.html
Sorry, we could not display the entire diff because too many files (3,355) changed.
View
2  MIT-license.txt
@@ -1,6 +1,6 @@
The MIT License
-Copyright (C) 2011 by Code Computerlove
+Copyright (C) 2011/2012 by Code Computerlove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View
8 Sublime.sublime-project
@@ -0,0 +1,8 @@
+{
+ "folders":
+ [
+ {
+ "path": "/C/Users/ERED/Documents/GitHub/PhotoSwipe"
+ }
+ ]
+}
View
163 Sublime.sublime-workspace
@@ -0,0 +1,163 @@
+{
+ "auto_complete":
+ {
+ "selected_items":
+ [
+ [
+ "nav",
+ "navbar"
+ ]
+ ]
+ },
+ "buffers":
+ [
+ ],
+ "build_system": "",
+ "command_palette":
+ {
+ "height": 58.0,
+ "selected_items":
+ [
+ [
+ "pack",
+ "Package Control: Install Package"
+ ],
+ [
+ "pac",
+ "Package Control: Install Package"
+ ],
+ [
+ "Package",
+ "Preferences: Browse Packages"
+ ]
+ ],
+ "width": 400.0
+ },
+ "console":
+ {
+ "height": 125.0
+ },
+ "distraction_free":
+ {
+ "menu_visible": true,
+ "show_minimap": false,
+ "show_open_files": false,
+ "show_tabs": false,
+ "side_bar_visible": false,
+ "status_bar_visible": false
+ },
+ "file_history":
+ [
+ "/D/Projects/trunk/_flatTemplates/media/css/fonts.css",
+ "/D/Projects/trunk/_flatTemplates/media/css/bootstrap.css",
+ "/D/Projects/trunk/_flatTemplates/HomePage.html",
+ "/C/Users/ERED/AppData/Roaming/Sublime Text 2/Packages/Default/Preferences.sublime-settings",
+ "/C/Users/ERED/AppData/Roaming/Sublime Text 2/Packages/User/Preferences.sublime-settings",
+ "/D/Projects/trunk/_flatTemplates/media/js/bootstrap.js",
+ "/D/Projects/trunk/_flatTemplates/css/bootstrap.css"
+ ],
+ "find":
+ {
+ "height": 34.0
+ },
+ "find_in_files":
+ {
+ "height": 0.0,
+ "where_history":
+ [
+ ]
+ },
+ "find_state":
+ {
+ "case_sensitive": false,
+ "find_history":
+ [
+ "float: lef",
+ ".float",
+ "a {",
+ "mus",
+ ".btn",
+ "btn",
+ "0074CC",
+ "hide"
+ ],
+ "highlight": true,
+ "in_selection": false,
+ "preserve_case": false,
+ "regex": false,
+ "replace_history":
+ [
+ ],
+ "reverse": false,
+ "show_context": true,
+ "use_buffer2": true,
+ "whole_word": false,
+ "wrap": true
+ },
+ "groups":
+ [
+ {
+ "sheets":
+ [
+ ]
+ }
+ ],
+ "incremental_find":
+ {
+ "height": 0.0
+ },
+ "input":
+ {
+ "height": 0.0
+ },
+ "layout":
+ {
+ "cells":
+ [
+ [
+ 0,
+ 0,
+ 1,
+ 1
+ ]
+ ],
+ "cols":
+ [
+ 0.0,
+ 1.0
+ ],
+ "rows":
+ [
+ 0.0,
+ 1.0
+ ]
+ },
+ "menu_visible": true,
+ "replace":
+ {
+ "height": 62.0
+ },
+ "save_all_on_build": true,
+ "select_file":
+ {
+ "height": 0.0,
+ "selected_items":
+ [
+ ],
+ "width": 0.0
+ },
+ "select_project":
+ {
+ "height": 500.0,
+ "selected_items":
+ [
+ ],
+ "width": 380.0
+ },
+ "show_minimap": true,
+ "show_open_files": false,
+ "show_tabs": true,
+ "side_bar_visible": true,
+ "side_bar_width": 150.0,
+ "status_bar_visible": true
+}
View
2  build.cmd
@@ -1,3 +1,3 @@
cls
-call tools\apache-ant-1.8.2\bin\ant
+call tools\apache-ant-1.8.4\bin\ant
IF NOT %ERRORLEVEL% == 0 pause
View
6 build.properties
@@ -5,12 +5,12 @@
project.description = PhotoSwipe
project.src.dir = src
-project.build.version = 3.0.5
+project.build.version = 3.0.5.1
project.build.year = 2012
project.build.workdir = work
project.build.artifactdir = release
lib.code.util.version = 1.0.6
-lib.jquery.version = 1.6.4
-lib.jqm.version = 1.0rc2
+lib.jquery.version = 1.7.1
+lib.jqm.version = 1.1.0
View
2  build.sh
@@ -1,3 +1,3 @@
#!/bin/bash
clear
-tools/apache-ant-1.8.2/bin/ant
+tools/apache-ant-1.8.4/bin/ant
View
2  build.xml
@@ -9,7 +9,7 @@
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask" classpath="tools/google-closure/compiler.jar" />
- <taskdef name="jslint" classname="com.googlecode.jslint4java.ant.JSLintTask" classpath="tools/jslint4java-2.0.0/jslint4java-2.0.0.jar" />
+ <taskdef name="jslint" classname="com.googlecode.jslint4java.ant.JSLintTask" classpath="tools/jslint4java-2.0.2/jslint4java-2.0.2.jar" />
<target name="build">
View
BIN  src/assets/Thumbs.db
Binary file not shown
View
BIN  src/examples/images/Thumbs.db
Binary file not shown
View
BIN  src/examples/images/full/Thumbs.db
Binary file not shown
View
BIN  src/examples/images/thumb/Thumbs.db
Binary file not shown
View
97 src/lib/klass.min.js
@@ -1,8 +1,93 @@
-/**
- * Klass.js - copyright @dedfat
- * version 1.0
+/*!
+ * klass: a classical JS OOP façade
* https://github.com/ded/klass
- * Follow our software http://twitter.com/dedfat :)
- * MIT License
+ * License MIT (c) Dustin Diaz & Jacob Thornton 2012
*/
-!function(a,b){function j(a,b){function c(){}c[e]=this[e];var d=this,g=new c,h=f(a),j=h?a:this,k=h?{}:a,l=function(){this.initialize?this.initialize.apply(this,arguments):(b||h&&d.apply(this,arguments),j.apply(this,arguments))};l.methods=function(a){i(g,a,d),l[e]=g;return this},l.methods.call(l,k).prototype.constructor=l,l.extend=arguments.callee,l[e].implement=l.statics=function(a,b){a=typeof a=="string"?function(){var c={};c[a]=b;return c}():a,i(this,a,d);return this};return l}function i(a,b,d){for(var g in b)b.hasOwnProperty(g)&&(a[g]=f(b[g])&&f(d[e][g])&&c.test(b[g])?h(g,b[g],d):b[g])}function h(a,b,c){return function(){var d=this.supr;this.supr=c[e][a];var f=b.apply(this,arguments);this.supr=d;return f}}function g(a){return j.call(f(a)?a:d,a,1)}var c=/xyz/.test(function(){xyz})?/\bsupr\b/:/.*/,d=function(){},e="prototype",f=function(a){return typeof a===b};if(typeof module!="undefined"&&module.exports)module.exports=g;else{var k=a.klass;g.noConflict=function(){a.klass=k;return this},a.klass=g}}(this,"function")
+
+!function (name, definition) {
+ if (typeof define == 'function') define(definition)
+ else if (typeof module != 'undefined') module.exports = definition()
+ else this[name] = definition()
+}('klass', function () {
+ var context = this
+ , old = context.klass
+ , f = 'function'
+ , fnTest = /xyz/.test(function () {xyz}) ? /\bsupr\b/ : /.*/
+ , proto = 'prototype'
+
+ function klass(o) {
+ return extend.call(isFn(o) ? o : function () {}, o, 1)
+ }
+
+ function isFn(o) {
+ return typeof o === f
+ }
+
+ function wrap(k, fn, supr) {
+ return function () {
+ var tmp = this.supr
+ this.supr = supr[proto][k]
+ var ret = fn.apply(this, arguments)
+ this.supr = tmp
+ return ret
+ }
+ }
+
+ function process(what, o, supr) {
+ for (var k in o) {
+ if (o.hasOwnProperty(k)) {
+ what[k] = isFn(o[k])
+ && isFn(supr[proto][k])
+ && fnTest.test(o[k])
+ ? wrap(k, o[k], supr) : o[k]
+ }
+ }
+ }
+
+ function extend(o, fromSub) {
+ // must redefine noop each time so it doesn't inherit from previous arbitrary classes
+ function noop() {}
+ noop[proto] = this[proto]
+ var supr = this
+ , prototype = new noop()
+ , isFunction = isFn(o)
+ , _constructor = isFunction ? o : this
+ , _methods = isFunction ? {} : o
+ function fn() {
+ if (this.initialize) this.initialize.apply(this, arguments)
+ else {
+ fromSub || isFunction && supr.apply(this, arguments)
+ _constructor.apply(this, arguments)
+ }
+ }
+
+ fn.methods = function (o) {
+ process(prototype, o, supr)
+ fn[proto] = prototype
+ return this
+ }
+
+ fn.methods.call(fn, _methods).prototype.constructor = fn
+
+ fn.extend = arguments.callee
+ fn[proto].implement = fn.statics = function (o, optFn) {
+ o = typeof o == 'string' ? (function () {
+ var obj = {}
+ obj[o] = optFn
+ return obj
+ }()) : o
+ process(this, o, supr)
+ return this
+ }
+
+ return fn
+ }
+
+ klass.noConflict = function () {
+ context.klass = old
+ return this
+ }
+ context.klass = klass
+
+ return klass
+});
View
0  tools/apache-ant-1.8.2/INSTALL
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0  tools/apache-ant-1.8.2/KEYS
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0  tools/apache-ant-1.8.2/LICENSE
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
6 tools/apache-ant-1.8.2/NOTICE
@@ -1,6 +0,0 @@
- Apache Ant
- Copyright 1999-2010 The Apache Software Foundation
-
- The <sync> task is based on code Copyright (c) 2002, Landmark
- Graphics Corp that has been kindly donated to the Apache Software
- Foundation.
View
0  tools/apache-ant-1.8.2/README
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
5,467 tools/apache-ant-1.8.2/WHATSNEW
0 additions, 5,467 deletions not shown
View
335 tools/apache-ant-1.8.2/bin/ant
@@ -1,335 +0,0 @@
-#! /bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# Extract launch and ant arguments, (see details below).
-ant_exec_args=
-no_config=false
-use_jikes_default=false
-ant_exec_debug=false
-show_help=false
-for arg in "$@" ; do
- if [ "$arg" = "--noconfig" ] ; then
- no_config=true
- elif [ "$arg" = "--usejikes" ] ; then
- use_jikes_default=true
- elif [ "$arg" = "--execdebug" ] ; then
- ant_exec_debug=true
- elif [ my"$arg" = my"--h" -o my"$arg" = my"--help" ] ; then
- show_help=true
- ant_exec_args="$ant_exec_args -h"
- else
- if [ my"$arg" = my"-h" -o my"$arg" = my"-help" ] ; then
- show_help=true
- fi
- ant_exec_args="$ant_exec_args \"$arg\""
- fi
-done
-
-# Source/default ant configuration
-if $no_config ; then
- rpm_mode=false
- usejikes=$use_jikes_default
-else
- # load system-wide ant configuration (ONLY if ANT_HOME has NOT been set)
- if [ -z "$ANT_HOME" -o "$ANT_HOME" = "/usr/share/ant" ]; then
- if [ -f "/etc/ant.conf" ] ; then
- . /etc/ant.conf
- fi
- fi
-
- # load user ant configuration
- if [ -f "$HOME/.ant/ant.conf" ] ; then
- . $HOME/.ant/ant.conf
- fi
- if [ -f "$HOME/.antrc" ] ; then
- . "$HOME/.antrc"
- fi
-
- # provide default configuration values
- if [ -z "$rpm_mode" ] ; then
- rpm_mode=false
- fi
- if [ -z "$usejikes" ] ; then
- usejikes=$use_jikes_default
- fi
-fi
-
-# Setup Java environment in rpm mode
-if $rpm_mode ; then
- if [ -f /usr/share/java-utils/java-functions ] ; then
- . /usr/share/java-utils/java-functions
- set_jvm
- set_javacmd
- fi
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false;
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- Darwin*) darwin=true
- if [ -z "$JAVA_HOME" ] ; then
- JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
- fi
- ;;
- MINGW*) mingw=true ;;
-esac
-
-if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then
- ## resolve links - $0 may be a link to ant's home
- PRG="$0"
- progname=`basename "$0"`
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
- done
-
- ANT_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- ANT_HOME=`cd "$ANT_HOME" > /dev/null && pwd`
-fi
-
-# For Cygwin and Mingw, ensure paths are in UNIX format before
-# anything is touched
-if $cygwin ; then
- [ -n "$ANT_HOME" ] &&
- ANT_HOME=`cygpath --unix "$ANT_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-fi
-if $mingw ; then
- [ -n "$ANT_HOME" ] &&
- ANT_HOME="`(cd "$ANT_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
-fi
-
-# set ANT_LIB location
-ANT_LIB="${ANT_HOME}/lib"
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- JAVACMD="$JAVA_HOME/jre/sh/java"
- elif [ -x "$JAVA_HOME/jre/bin/java" ] ; then
- JAVACMD="$JAVA_HOME/jre/bin/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD=`which java 2> /dev/null `
- if [ -z "$JAVACMD" ] ; then
- JAVACMD=java
- fi
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly."
- echo " We cannot execute $JAVACMD"
- exit 1
-fi
-
-# Build local classpath using just the launcher in non-rpm mode or
-# use the Jpackage helper in rpm mode with basic and default jars
-# specified in the ant.conf configuration. Because the launcher is
-# used, libraries linked in ANT_HOME/lib will also be included, but this
-# is discouraged as it is not java-version safe. A user should
-# request optional jars and their dependencies via the OPT_JAR_LIST
-# variable
-if $rpm_mode && [ -x /usr/bin/build-classpath ] ; then
- LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)"
-
- # If no optional jars have been specified then build the default list
- if [ -z "$OPT_JAR_LIST" ] ; then
- for file in /etc/ant.d/*; do
- if [ -f "$file" ]; then
- case "$file" in
- *~) ;;
- *#*) ;;
- *.rpmsave) ;;
- *.rpmnew) ;;
- *)
- for dep in `cat "$file"`; do
- case "$OPT_JAR_LIST" in
- *"$dep"*) ;;
- *) OPT_JAR_LIST="$OPT_JAR_LIST${OPT_JAR_LIST:+ }$dep"
- esac
- done
- esac
- fi
- done
- fi
-
- # If the user requested to try to add some other jars to the classpath
- if [ -n "$OPT_JAR_LIST" ] ; then
- _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)"
- if [ -n "$_OPTCLASSPATH" ] ; then
- LOCALCLASSPATH="$LOCALCLASSPATH:$_OPTCLASSPATH"
- fi
- fi
-
- # Explicitly add javac path to classpath, assume JAVA_HOME set
- # properly in rpm mode
- if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
- LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar"
- fi
- if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then
- LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip"
- fi
-
- # if CLASSPATH_OVERRIDE env var is set, LOCALCLASSPATH will be
- # user CLASSPATH first and ant-found jars after.
- # In that case, the user CLASSPATH will override ant-found jars
- #
- # if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour
- # with ant-found jars first and user CLASSPATH after
- if [ -n "$CLASSPATH" ] ; then
- # merge local and specified classpath
- if [ -z "$LOCALCLASSPATH" ] ; then
- LOCALCLASSPATH="$CLASSPATH"
- elif [ -n "$CLASSPATH_OVERRIDE" ] ; then
- LOCALCLASSPATH="$CLASSPATH:$LOCALCLASSPATH"
- else
- LOCALCLASSPATH="$LOCALCLASSPATH:$CLASSPATH"
- fi
-
- # remove class path from launcher -cp option
- CLASSPATH=""
- fi
-else
- # not using rpm_mode; use launcher to determine classpaths
- if [ -z "$LOCALCLASSPATH" ] ; then
- LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar
- else
- LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH
- fi
-fi
-
-if [ -n "$JAVA_HOME" ] ; then
- # OSX hack to make Ant work with jikes
- if $darwin ; then
- OSXHACK="${JAVA_HOME}/../Classes"
- if [ -d "${OSXHACK}" ] ; then
- for i in "${OSXHACK}"/*.jar
- do
- JIKESPATH="$JIKESPATH:$i"
- done
- fi
- fi
-fi
-
-# Allow Jikes support (off by default)
-if $usejikes; then
- ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes"
-fi
-
-# For Cygwin, switch paths to appropriate format before running java
-# For PATHs convert to unix format first, then to windows format to ensure
-# both formats are supported. Probably this will fail on directories with ;
-# in the name in the path. Let's assume that paths containing ; are more
-# rare than windows style paths on cygwin.
-if $cygwin; then
- if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then
- format=mixed
- else
- format=windows
- fi
- [ -n "$ANT_HOME" ] && ANT_HOME=`cygpath --$format "$ANT_HOME"`
- ANT_LIB=`cygpath --$format "$ANT_LIB"`
- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
- LCP_TEMP=`cygpath --path --unix "$LOCALCLASSPATH"`
- LOCALCLASSPATH=`cygpath --path --$format "$LCP_TEMP"`
- if [ -n "$CLASSPATH" ] ; then
- CP_TEMP=`cygpath --path --unix "$CLASSPATH"`
- CLASSPATH=`cygpath --path --$format "$CP_TEMP"`
- fi
- CYGHOME=`cygpath --$format "$HOME"`
-fi
-
-# Show script help if requested
-if $show_help ; then
- echo $0 '[script options] [options] [target [target2 [target3] ..]]'
- echo 'Script Options:'
- echo ' --help, --h print this message and ant help'
- echo ' --noconfig suppress sourcing of /etc/ant.conf,'
- echo ' $HOME/.ant/ant.conf, and $HOME/.antrc'
- echo ' configuration files'
- echo ' --usejikes enable use of jikes by default, unless'
- echo ' set explicitly in configuration files'
- echo ' --execdebug print ant exec line generated by this'
- echo ' launch script'
- echo ' '
-fi
-# add a second backslash to variables terminated by a backslash under cygwin
-if $cygwin; then
- case "$ANT_HOME" in
- *\\ )
- ANT_HOME="$ANT_HOME\\"
- ;;
- esac
- case "$CYGHOME" in
- *\\ )
- CYGHOME="$CYGHOME\\"
- ;;
- esac
- case "$JIKESPATH" in
- *\\ )
- JIKESPATH="$JIKESPATH\\"
- ;;
- esac
- case "$LOCALCLASSPATH" in
- *\\ )
- LOCALCLASSPATH="$LOCALCLASSPATH\\"
- ;;
- esac
- case "$CLASSPATH" in
- *\\ )
- CLASSPATH="$CLASSPATH\\"
- ;;
- esac
-fi
-# Execute ant using eval/exec to preserve spaces in paths,
-# java options, and ant args
-ant_sys_opts=
-if [ -n "$CYGHOME" ]; then
- if [ -n "$JIKESPATH" ]; then
- ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\" -Dcygwin.user.home=\"$CYGHOME\""
- else
- ant_sys_opts="-Dcygwin.user.home=\"$CYGHOME\""
- fi
-else
- if [ -n "$JIKESPATH" ]; then
- ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\""
- fi
-fi
-ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -cp \"$CLASSPATH\""
-if $ant_exec_debug ; then
- echo $ant_exec_command $ant_exec_args
-fi
-eval $ant_exec_command "$ant_exec_args"
View
218 tools/apache-ant-1.8.2/bin/ant.bat
@@ -1,218 +0,0 @@
-@echo off
-
-REM Licensed to the Apache Software Foundation (ASF) under one or more
-REM contributor license agreements. See the NOTICE file distributed with
-REM this work for additional information regarding copyright ownership.
-REM The ASF licenses this file to You under the Apache License, Version 2.0
-REM (the "License"); you may not use this file except in compliance with
-REM the License. You may obtain a copy of the License at
-REM
-REM http://www.apache.org/licenses/LICENSE-2.0
-REM
-REM Unless required by applicable law or agreed to in writing, software
-REM distributed under the License is distributed on an "AS IS" BASIS,
-REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-REM See the License for the specific language governing permissions and
-REM limitations under the License.
-
-REM This is an inordinately troublesome piece of code, particularly because it
-REM tries to work on both Win9x and WinNT-based systems. If we could abandon '9x
-REM support, things would be much easier, but sadly, it is not yet time.
-REM Be cautious about editing this, and only add WinNT specific stuff in code that
-REM only runs on WinNT.
-
-if "%HOME%"=="" goto homeDrivePathPre
-if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
-
-:homeDrivePathPre
-if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePre
-if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePre
-if exist "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat"
-
-:userProfilePre
-if "%USERPROFILE%"=="" goto alpha
-if "%USERPROFILE%"=="%HOME%" goto alpha
-if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto alpha
-if exist "%USERPROFILE%\antrc_pre.bat" call "%USERPROFILE%\antrc_pre.bat"
-
-:alpha
-
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="WINNT" @setlocal
-
-if "%ANT_HOME%"=="" goto setDefaultAntHome
-
-:stripAntHome
-if not _%ANT_HOME:~-1%==_\ goto checkClasspath
-set ANT_HOME=%ANT_HOME:~0,-1%
-goto stripAntHome
-
-:setDefaultAntHome
-rem %~dp0 is expanded pathname of the current script under NT
-set ANT_HOME=%~dp0..
-
-:checkClasspath
-set _USE_CLASSPATH=yes
-rem CLASSPATH must not be used if it is equal to ""
-if "%CLASSPATH%"=="""" set _USE_CLASSPATH=no
-if "%CLASSPATH%"=="" set _USE_CLASSPATH=no
-
-rem Slurp the command line arguments. This loop allows for an unlimited number
-rem of arguments (up to the command line limit, anyway).
-set ANT_CMD_LINE_ARGS=
-:setupArgs
-if ""%1""=="""" goto doneStart
-if ""%1""==""-noclasspath"" goto clearclasspath
-set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
-shift
-goto setupArgs
-
-rem here is there is a -noclasspath in the options
-:clearclasspath
-set _USE_CLASSPATH=no
-shift
-goto setupArgs
-
-rem This label provides a place for the argument list loop to break out
-rem and for NT handling to skip to.
-
-:doneStart
-
-if "%_USE_CLASSPATH%"=="no" goto findAntHome
-
-:stripClasspath
-if not _%CLASSPATH:~-1%==_\ goto findAntHome
-set CLASSPATH=%CLASSPATH:~0,-1%
-goto stripClasspath
-
-:findAntHome
-rem find ANT_HOME if it does not exist due to either an invalid value passed
-rem by the user or the %0 problem on Windows 9x
-if exist "%ANT_HOME%\lib\ant.jar" goto checkJava
-
-rem check for ant in Program Files
-if not exist "%ProgramFiles%\ant" goto checkSystemDrive
-set ANT_HOME=%ProgramFiles%\ant
-goto checkJava
-
-:checkSystemDrive
-rem check for ant in root directory of system drive
-if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive
-set ANT_HOME=%SystemDrive%\ant
-goto checkJava
-
-:checkCDrive
-rem check for ant in C:\ant for Win9X users
-if not exist C:\ant\lib\ant.jar goto noAntHome
-set ANT_HOME=C:\ant
-goto checkJava
-
-:noAntHome
-echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
-goto end
-
-:checkJava
-set _JAVACMD=%JAVACMD%
-
-if "%JAVA_HOME%" == "" goto noJavaHome
-if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
-if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
-goto checkJikes
-
-:noJavaHome
-if "%_JAVACMD%" == "" set _JAVACMD=java.exe
-
-:checkJikes
-if not "%JIKESPATH%"=="" goto runAntWithJikes
-
-:runAnt
-if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath
-:runAntWithClasspath
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%
-rem Check the error code of the Ant build
-if not "%OS%"=="Windows_NT" goto onError
-set ANT_ERROR=%ERRORLEVEL%
-goto end
-
-:runAntNoClasspath
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
-rem Check the error code of the Ant build
-if not "%OS%"=="Windows_NT" goto onError
-set ANT_ERROR=%ERRORLEVEL%
-goto end
-
-:runAntWithJikes
-
-if not _%JIKESPATH:~-1%==_\ goto checkJikesAndClasspath
-set JIKESPATH=%JIKESPATH:~0,-1%
-goto runAntWithJikes
-
-:checkJikesAndClasspath
-
-if "%_USE_CLASSPATH%"=="no" goto runAntWithJikesNoClasspath
-
-:runAntWithJikesAndClasspath
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%
-rem Check the error code of the Ant build
-if not "%OS%"=="Windows_NT" goto onError
-set ANT_ERROR=%ERRORLEVEL%
-goto end
-
-:runAntWithJikesNoClasspath
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
-rem Check the error code of the Ant build
-if not "%OS%"=="Windows_NT" goto onError
-set ANT_ERROR=%ERRORLEVEL%
-goto end
-
-:onError
-rem Windows 9x way of checking the error code. It matches via brute force.
-for %%i in (1 10 100) do set err%%i=
-for %%i in (0 1 2) do if errorlevel %%i00 set err100=%%i
-if %err100%==2 goto onError200
-if %err100%==0 set err100=
-for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%%i0 set err10=%%i
-if "%err100%"=="" if %err10%==0 set err10=
-:onError1
-for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%err10%%%i set err1=%%i
-goto onErrorEnd
-:onError200
-for %%i in (0 1 2 3 4 5) do if errorlevel 2%%i0 set err10=%%i
-if err10==5 for %%i in (0 1 2 3 4 5) do if errorlevel 25%%i set err1=%%i
-if not err10==5 goto onError1
-:onErrorEnd
-set ANT_ERROR=%err100%%err10%%err1%
-for %%i in (1 10 100) do set err%%i=
-
-:end
-rem bug ID 32069: resetting an undefined env variable changes the errorlevel.
-if not "%_JAVACMD%"=="" set _JAVACMD=
-if not "%_ANT_CMD_LINE_ARGS%"=="" set ANT_CMD_LINE_ARGS=
-
-if "%ANT_ERROR%"=="0" goto mainEnd
-
-goto omega
-
-:mainEnd
-
-rem If there were no errors, we run the post script.
-if "%OS%"=="Windows_NT" @endlocal
-if "%OS%"=="WINNT" @endlocal
-
-if "%HOME%"=="" goto homeDrivePathPost
-if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
-
-:homeDrivePathPost
-if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePost
-if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePost
-if exist "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat"
-
-:userProfilePost
-if "%USERPROFILE%"=="" goto omega
-if "%USERPROFILE%"=="%HOME%" goto omega
-if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto omega
-if exist "%USERPROFILE%\antrc_post.bat" call "%USERPROFILE%\antrc_post.bat"
-
-:omega
-
-exit /b %ANT_ERROR%
View
93 tools/apache-ant-1.8.2/bin/ant.cmd
@@ -1,93 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Run ant
-*/
-
-'@echo off'
-parse arg mode envarg '::' antarg
-
-if mode\='.' & mode\='..' & mode\='/' then do
- envarg = mode envarg
- mode = ''
-end
-
-if antarg = '' then do
- antarg = envarg
- envarg = ''
-end
-
-x = setlocal()
-
-env="OS2ENVIRONMENT"
-antenv = _getenv_('antenv')
-if _testenv_() = 0 then interpret 'call "' || antenv || '"' '"' || envarg || '"'
-
-if mode = '' then mode = _getenv_('ANT_MODE' '..')
-if mode \= '/' then do
- runrc = _getenv_('runrc')
- antrc = _getenv_('antrc' 'antrc.cmd')
- if mode = '..' then mode = '-r'
- else mode = ''
- interpret 'call "' || runrc || '"' antrc '"' || mode || '"'
-end
-
-if _testenv_() = 0 then do
- say 'Ant environment is not set properly'
- x = endlocal()
- exit 16
-end
-
-settings = '-Dant.home=' || ANT_HOME '-Djava.home=' || JAVA_HOME
-
-java = _getenv_('javacmd' 'java')
-opts = value('ANT_OPTS',,env)
-args = value('ANT_ARGS',,env)
-lcp = value('LOCALCLASSPATH',,env)
-cp = value('CLASSPATH',,env)
-if value('ANT_USE_CP',,env) \= '' then do
- if lcp \= '' & right(lcp, 1) \= ';' then lcp = lcp || ';'
- lcp = lcp || cp
- 'SET CLASSPATH='
-end
-if lcp\='' then lcp = '-classpath' lcp
-
-cmd = java opts lcp '-jar' ANT_HOME ||'\lib\ant-launcher.jar' settings args antarg
-launcher = stream(ANT_HOME ||'\lib\ant-launcher.jar', 'C', 'query exists')
-if launcher = '' then entry = 'org.apache.tools.ant.Main'
-else entry = 'org.apache.tools.ant.launch.Launcher'
-java opts lcp entry settings args antarg
-
-x = endlocal()
-
-return rc
-
-_testenv_: procedure expose env ANT_HOME JAVA_HOME
-ANT_HOME = value('ANT_HOME',,env)
-if ANT_HOME = '' then return 0
-JAVA_HOME = value('JAVA_HOME',,env)
-if JAVA_HOME = '' then return 0
-cp = translate(value('CLASSPATH',,env))
-if pos(translate(ANT_HOME), cp) = 0 then return 0
-if pos(translate(JAVA_HOME), cp) = 0 then return 0
-return 1
-
-_getenv_: procedure expose env
-parse arg envar default
-if default = '' then default = envar
-var = value(translate(envar),,env)
-if var = '' then var = default
-return var
View
0  tools/apache-ant-1.8.2/bin/antRun
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
50 tools/apache-ant-1.8.2/bin/antRun.bat
@@ -1,50 +0,0 @@
-@echo off
-
-REM Licensed to the Apache Software Foundation (ASF) under one or more
-REM contributor license agreements. See the NOTICE file distributed with
-REM this work for additional information regarding copyright ownership.
-REM The ASF licenses this file to You under the Apache License, Version 2.0
-REM (the "License"); you may not use this file except in compliance with
-REM the License. You may obtain a copy of the License at
-REM
-REM http://www.apache.org/licenses/LICENSE-2.0
-REM
-REM Unless required by applicable law or agreed to in writing, software
-REM distributed under the License is distributed on an "AS IS" BASIS,
-REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-REM See the License for the specific language governing permissions and
-REM limitations under the License.
-
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="WINNT" @setlocal
-
-if ""%1""=="""" goto runCommand
-
-rem Change drive and directory to %1
-if "%OS%"=="Windows_NT" goto nt_cd
-if "%OS%"=="WINNT" goto nt_cd
-cd ""%1""
-goto end_cd
-:nt_cd
-cd /d ""%1""
-:end_cd
-shift
-
-rem Slurp the command line arguments. This loop allows for an unlimited number
-rem of arguments (up to the command line limit, anyway).
-set ANT_RUN_CMD=%1
-if ""%1""=="""" goto runCommand
-shift
-:loop
-if ""%1""=="""" goto runCommand
-set ANT_RUN_CMD=%ANT_RUN_CMD% %1
-shift
-goto loop
-
-:runCommand
-rem echo %ANT_RUN_CMD%
-%ANT_RUN_CMD%
-
-if "%OS%"=="Windows_NT" @endlocal
-if "%OS%"=="WINNT" @endlocal
-
View
0  tools/apache-ant-1.8.2/bin/antRun.pl
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
98 tools/apache-ant-1.8.2/bin/antenv.cmd
@@ -1,98 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
-'@echo off'
-call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
-call SysLoadFuncs
-
-/* Prepare the parameters for later use */
-parse arg argv
-mode = ''
-args = ''
-opts = ''
-cp = ''
-lcp = ''
-
-do i = 1 to words(argv)
- param = word(argv, i)
- select
- when param='-lcp' then mode = 'l'
- when param='-cp' | param='-classpath' then mode = 'c'
- when abbrev('-opts', param, 4) then mode = 'o'
- when abbrev('-args', param, 4) then mode = 'a'
- otherwise
- select
- when mode = 'a' then args = space(args param, 1)
- when mode = 'c' then cp = space(cp param, 1)
- when mode = 'l' then lcp = space(lcp param, 1)
- when mode = 'o' then opts = space(opts param, 1)
- otherwise
- say 'Option' param 'ignored'
- end
- end
-end
-
-env="OS2ENVIRONMENT"
-antconf = _getenv_('antconf' 'antconf.cmd')
-runrc = _getenv_('runrc')
-interpret 'call "' || runrc || '"' '"' || antconf || '"' 'ETC'
-ANT_HOME = value('ANT_HOME',,env)
-JAVA_HOME = value('JAVA_HOME',,env)
-classpath = value('CLASSPATH',,env)
-classes = stream(JAVA_HOME || "\lib\classes.zip", "C", "QUERY EXISTS")
-if classes \= '' then classpath = prepend(classpath classes)
-classes = stream(JAVA_HOME || "\lib\tools.jar", "C", "QUERY EXISTS")
-if classes \= '' then classpath = prepend(classpath classes)
-
-classpath = prepend(classpath ANT_HOME || '\lib\ant-launcher.jar')
-'SET CLASSPATH=' || classpath
-
-/* Setting classpathes, options and arguments */
-envset = _getenv_('envset')
-if cp\='' then interpret 'call "' || envset || '"' '"; CLASSPATH"' '"' || cp || '"'
-if lcp\='' then interpret 'call "' || envset || '"' '"; LOCALCLASSPATH"' '"' || lcp || '"'
-if opts\='' then interpret 'call "' || envset || '"' '"-D ANT_OPTS"' '"' || opts || '"'
-if args\='' then interpret 'call "' || envset || '"' '"ANT_ARGS"' '"' || args || '"'
-
-exit 0
-
-addpath: procedure
-parse arg path elem
-if elem = '' then do
- if path\='' & right(path, 1)\=';' then path = path || ';'
- return path
-end
-if substr(path, length(path)) = ';' then glue = ''
-else glue = ';'
-if pos(translate(elem), translate(path)) = 0 then path = path || glue || elem || ';'
-return path
-
-prepend: procedure
-parse arg path elem
-if elem = '' then do
- if path\='' & right(path, 1)\=';' then path = path || ';'
- return path
-end
-if pos(translate(elem), translate(path)) = 0 then path = elem || ';' || path
-return path
-
-_getenv_: procedure expose env
-parse arg envar default
-if default = '' then default = envar
-var = value(translate(envar),,env)
-if var = '' then var = default
-return var
View
114 tools/apache-ant-1.8.2/bin/complete-ant-cmd.pl
@@ -1,114 +0,0 @@
-#!/usr/bin/perl
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# A script to allow Bash or Z-Shell to complete an Ant command-line.
-#
-# To install for Bash 2.0 or better, add the following to ~/.bashrc:
-#
-# $ complete -C complete-ant-cmd ant build.sh
-#
-# To install for Z-Shell 2.5 or better, add the following to ~/.zshrc:
-#
-# function ant_complete () {
-# local args_line args
-# read -l args_line
-# set -A args $args_line
-# set -A reply $(COMP_LINE=$args_line complete-ant-cmd ${args[1]} $1)
-# }
-# compctl -K ant_complete ant build.sh
-#
-# @author Mike Williams <mikew@cortexebusiness.com.au>
-
-my $cmdLine = $ENV{'COMP_LINE'};
-my $antCmd = $ARGV[0];
-my $word = $ARGV[1];
-
-my @completions;
-if ($word =~ /^-/) {
- list( restrict( $word, getArguments() ));
-} elsif ($cmdLine =~ /-(f|buildfile)\s+\S*$/) {
- list( getBuildFiles($word) );
-} else {
- list( restrict( $word, getTargets() ));
-}
-
-exit(0);
-
-sub list {
- for (@_) {
- print "$_\n";
- }
-}
-
-sub restrict {
- my ($word, @completions) = @_;
- grep( /^\Q$word\E/, @completions );
-}
-
-sub getArguments {
- qw(-buildfile -debug -emacs -f -find -help -listener -logfile
- -logger -projecthelp -quiet -verbose -version);
-}
-
-
-sub getBuildFiles {
- my ($word) = @_;
- grep( /\.xml$/, glob( "$word*" ));
-}
-
-sub getTargets {
-
- # Look for build-file
- my $buildFile = 'build.xml';
- if ($cmdLine =~ /-(f|buildfile)\s+(\S+)/) {
- $buildFile = $2;
- }
- return () unless (-f $buildFile);
-
- # Run "ant -projecthelp" to list targets. Keep a cache of results in a
- # cache-file.
- my $cacheFile = $buildFile;
- $cacheFile =~ s|(.*/)?(.*)|${1}.ant-targets-${2}|;
- if ((!-e $cacheFile) || (-z $cacheFile) || (-M $buildFile) < (-M $cacheFile)) {
- open( CACHE, '>'.$cacheFile ) || die "can\'t write $cacheFile: $!\n";
- open( HELP, "$antCmd -projecthelp -f '$buildFile'|" ) || return();
- my %targets;
- while( <HELP> ) {
- if (/^\s+(\S+)/) {
- $targets{$1}++;
- }
- }
- my @targets = sort keys %targets;
- for (@targets) { print CACHE "$_\n"; }
- return @targets;
- }
-
- # Read the target-cache
- open( CACHE, $cacheFile ) || die "can\'t read $cacheFile: $!\n";
- my @targets;
- while (<CACHE>) {
- chop;
- s/\r$//; # for Cygwin
- push( @targets, $_ );
- }
- close( CACHE );
- @targets;
-
-}
-
-
-
View
131 tools/apache-ant-1.8.2/bin/envset.cmd
@@ -1,131 +0,0 @@
-/*
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
-SET environment variables
-First optional parameter:
- ; parameters are considered parts of a path variable, semicolons are
- appended to each element if not already present
- -D parameters are properties for Java or Makefile etc., -D will be
- prepended and the parameters will be separated by a space
- =D the same as above but equal sign is not required
- , parameters should be comma separated in the environment variable
- - parameters should be separated by the next parameter
- Other values mean that the first parameter is missing and the environment
- variable will be set to the space separated parameters
-
-Second parameter: name of the environment variable
-
-Next parameters: values
-; implies that the equal sign is considered a part of the parameter and is
-not interpreted
-
--D requires parameters in the form name=value. If the equal sign is not found,
-the parameters are changed to name=expanded_name
-
-Other options have optional equal sign. If it is found, only the part after
-the equal sign will be oprionally expanded.
-
-If the parameter is the minus sign, the next parameter will not be expanded.
-If the parameter is a single dot, it will be replaced with the value of the
-environment variable as it existed before envset was invoked.
-
-For other parameters the batch looks for the environment variable with the
-same name (in uppercase). If it is found, it forms the expanded_name. If
-the environment variable with such a name does not exist, the expanded_name
-will hold the parameter name without case conversion.
-*/
-
-parse arg mode envar args
-
-equal = 0
-sep = ' '
-
-/* Parse command line parameters */
-select
- when mode='-' then do
- sep = envar
- parse var args envar args
- end
- when mode=';' then do
- sep = ''
- equal = -1
- end
- when mode='-D' then equal = 1
- when mode='=D' then mode = '-D'
- when mode=',' then sep = ','
-otherwise
- args = envar args
- envar = mode
- mode = ''
-end
-
-env = 'OS2ENVIRONMENT'
-envar = translate(envar)
-orig = value(envar,,env)
-newval = ''
-expand = 1
-
-/* for each parameter... */
-do i = 1 to words(args)
- if expand > 0 & word(args, i) = '-' then expand = 0
- else call addval word(args, i)
-end
-
-/* Optionally enclose path variable by quotes */
-if mode = ';' & pos(' ', newval) > 0 then newval = '"' || newval || '"'
-
-/* Set the new value, 'SET' cannot be used since it does not allow '=' */
-x = value(envar, newval, env)
-exit 0
-
-addval: procedure expose sep equal orig expand newval mode env
-parse arg var
-
-if var = '.' then expvar = orig
-else do
- if equal >= 0 then do
- parse var var name '=' val
- if val = '' then var = name
- else var = val
- end
- if expand = 0 then expvar = var
- else expvar = value(translate(var),,env)
- if expvar = '' then expvar = var
- if equal >= 0 then do
- if val = '' then do
- parse var expvar key '=' val
- if val <> '' then name = key
- else do
- if equal > 0 then val = key
- else name = key
- end
- end
- else val = expvar
- if pos(' ', val) > 0 | pos('=', val) > 0 then val = '"' || val || '"'
- if val = '' then expvar = name
- else expvar = name || '=' || val
- end
- if mode = '-D' then expvar = '-D' || expvar
- if mode = ';' then do
- if right(expvar, 1) <> ';' then expvar = expvar || ';'
- end
-end
-
-if newval = '' then newval = expvar
-else newval = newval || sep || expvar
-expand = 1
-return
View
31 tools/apache-ant-1.8.2/bin/lcp.bat
@@ -1,31 +0,0 @@
-REM
-REM Licensed to the Apache Software Foundation (ASF) under one or more
-REM contributor license agreements. See the NOTICE file distributed with
-REM this work for additional information regarding copyright ownership.
-REM The ASF licenses this file to You under the Apache License, Version 2.0
-REM (the "License"); you may not use this file except in compliance with
-REM the License. You may obtain a copy of the License at
-REM
-REM http://www.apache.org/licenses/LICENSE-2.0
-REM
-REM Unless required by applicable law or agreed to in writing, software
-REM distributed under the License is distributed on an "AS IS" BASIS,
-REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-REM See the License for the specific language governing permissions and
-REM limitations under the License.
-REM
-REM
-
-set _CLASSPATHCOMPONENT=%1
-if ""%1""=="""" goto gotAllArgs
-shift
-
-:argCheck
-if ""%1""=="""" goto gotAllArgs
-set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1
-shift
-goto argCheck
-
-:gotAllArgs
-set LOCALCLASSPATH=%LOCALCLASSPATH%;%_CLASSPATHCOMPONENT%
-
View
0  tools/apache-ant-1.8.2/bin/runant.pl
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0  tools/apache-ant-1.8.2/bin/runant.py
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
60 tools/apache-ant-1.8.2/bin/runrc.cmd
@@ -1,60 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- Run RC file, name is in the first arg, second arg is either PATH
- ENV or -r or nothing
-*/
-
-parse arg name path rest
-
-if name = '' then do
- say 'RC file name is missing'
- exit 1
-end
-
-if rest \= '' then do
- say 'Too many parameters'
- exit 1
-end
-
-call runit name path
-exit 0
-
-runit: procedure
-parse arg name path dir
-
-if path \= '' & path \= '-r' then do
- dir = value(translate(path),,'OS2ENVIRONMENT')
- if dir = '' then return
- dir = translate(dir, '\', '/') /* change UNIX-like path to OS/2 */
-end
-
-if dir = '' then dir = directory()
-
-if path = '-r' then do /* recursive call */
- subdir = filespec('path', dir)
- if subdir \= '\' then do
- subdir = left(subdir, length(subdir)-1)
- call runit name path filespec('drive', dir) || subdir
- end
-end
-
-/* Look for the file and run it */
-if right(dir, 1) \= '\' then dir = dir || '\'
-rcfile = stream(dir || name, 'c', 'query exists')
-if rcfile \= '' then interpret 'call "' || rcfile || '"'
-
-return
View
203 tools/apache-ant-1.8.2/docs/LICENSE
@@ -1,203 +0,0 @@
-/*
- * Apache License
- * Version 2.0, January 2004
- * http://www.apache.org/licenses/
- *
- * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
- *
- * 1. Definitions.
- *
- * "License" shall mean the terms and conditions for use, reproduction,
- * and distribution as defined by Sections 1 through 9 of this document.
- *
- * "Licensor" shall mean the copyright owner or entity authorized by
- * the copyright owner that is granting the License.
- *
- * "Legal Entity" shall mean the union of the acting entity and all
- * other entities that control, are controlled by, or are under common
- * control with that entity. For the purposes of this definition,
- * "control" means (i) the power, direct or indirect, to cause the
- * direction or management of such entity, whether by contract or
- * otherwise, or (ii) ownership of fifty percent (50%) or more of the
- * outstanding shares, or (iii) beneficial ownership of such entity.
- *
- * "You" (or "Your") shall mean an individual or Legal Entity
- * exercising permissions granted by this License.
- *
- * "Source" form shall mean the preferred form for making modifications,
- * including but not limited to software source code, documentation
- * source, and configuration files.
- *
- * "Object" form shall mean any form resulting from mechanical
- * transformation or translation of a Source form, including but
- * not limited to compiled object code, generated documentation,
- * and conversions to other media types.
- *
- * "Work" shall mean the work of authorship, whether in Source or
- * Object form, made available under the License, as indicated by a
- * copyright notice that is included in or attached to the work
- * (an example is provided in the Appendix below).
- *
- * "Derivative Works" shall mean any work, whether in Source or Object
- * form, that is based on (or derived from) the Work and for which the
- * editorial revisions, annotations, elaborations, or other modifications
- * represent, as a whole, an original work of authorship. For the purposes
- * of this License, Derivative Works shall not include works that remain
- * separable from, or merely link (or bind by name) to the interfaces of,
- * the Work and Derivative Works thereof.
- *
- * "Contribution" shall mean any work of authorship, including
- * the original version of the Work and any modifications or additions
- * to that Work or Derivative Works thereof, that is intentionally
- * submitted to Licensor for inclusion in the Work by the copyright owner
- * or by an individual or Legal Entity authorized to submit on behalf of
- * the copyright owner. For the purposes of this definition, "submitted"
- * means any form of electronic, verbal, or written communication sent
- * to the Licensor or its representatives, including but not limited to
- * communication on electronic mailing lists, source code control systems,
- * and issue tracking systems that are managed by, or on behalf of, the
- * Licensor for the purpose of discussing and improving the Work, but
- * excluding communication that is conspicuously marked or otherwise
- * designated in writing by the copyright owner as "Not a Contribution."
- *
- * "Contributor" shall mean Licensor and any individual or Legal Entity
- * on behalf of whom a Contribution has been received by Licensor and
- * subsequently incorporated within the Work.
- *
- * 2. Grant of Copyright License. Subject to the terms and conditions of
- * this License, each Contributor hereby grants to You a perpetual,
- * worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- * copyright license to reproduce, prepare Derivative Works of,
- * publicly display, publicly perform, sublicense, and distribute the
- * Work and such Derivative Works in Source or Object form.
- *
- * 3. Grant of Patent License. Subject to the terms and conditions of
- * this License, each Contributor hereby grants to You a perpetual,
- * worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- * (except as stated in this section) patent license to make, have made,
- * use, offer to sell, sell, import, and otherwise transfer the Work,
- * where such license applies only to those patent claims licensable
- * by such Contributor that are necessarily infringed by their
- * Contribution(s) alone or by combination of their Contribution(s)
- * with the Work to which such Contribution(s) was submitted. If You
- * institute patent litigation against any entity (including a
- * cross-claim or counterclaim in a lawsuit) alleging that the Work
- * or a Contribution incorporated within the Work constitutes direct
- * or contributory patent infringement, then any patent licenses
- * granted to You under this License for that Work shall terminate
- * as of the date such litigation is filed.
- *
- * 4. Redistribution. You may reproduce and distribute copies of the
- * Work or Derivative Works thereof in any medium, with or without
- * modifications, and in Source or Object form, provided that You
- * meet the following conditions:
- *
- * (a) You must give any other recipients of the Work or
- * Derivative Works a copy of this License; and
- *
- * (b) You must cause any modified files to carry prominent notices
- * stating that You changed the files; and
- *
- * (c) You must retain, in the Source form of any Derivative Works
- * that You distribute, all copyright, patent, trademark, and
- * attribution notices from the Source form of the Work,
- * excluding those notices that do not pertain to any part of
- * the Derivative Works; and
- *
- * (d) If the Work includes a "NOTICE" text file as part of its
- * distribution, then any Derivative Works that You distribute must
- * include a readable copy of the attribution notices contained
- * within such NOTICE file, excluding those notices that do not
- * pertain to any part of the Derivative Works, in at least one
- * of the following places: within a NOTICE text file distributed
- * as part of the Derivative Works; within the Source form or
- * documentation, if provided along with the Derivative Works; or,
- * within a display generated by the Derivative Works, if and
- * wherever such third-party notices normally appear. The contents
- * of the NOTICE file are for informational purposes only and
- * do not modify the License. You may add Your own attribution
- * notices within Derivative Works that You distribute, alongside
- * or as an addendum to the NOTICE text from the Work, provided
- * that such additional attribution notices cannot be construed
- * as modifying the License.
- *
- * You may add Your own copyright statement to Your modifications and
- * may provide additional or different license terms and conditions
- * for use, reproduction, or distribution of Your modifications, or
- * for any such Derivative Works as a whole, provided Your use,
- * reproduction, and distribution of the Work otherwise complies with
- * the conditions stated in this License.
- *
- * 5. Submission of Contributions. Unless You explicitly state otherwise,
- * any Contribution intentionally submitted for inclusion in the Work
- * by You to the Licensor shall be under the terms and conditions of
- * this License, without any additional terms or conditions.
- * Notwithstanding the above, nothing herein shall supersede or modify
- * the terms of any separate license agreement you may have executed
- * with Licensor regarding such Contributions.
- *
- * 6. Trademarks. This License does not grant permission to use the trade
- * names, trademarks, service marks, or product names of the Licensor,
- * except as required for reasonable and customary use in describing the
- * origin of the Work and reproducing the content of the NOTICE file.
- *
- * 7. Disclaimer of Warranty. Unless required by applicable law or
- * agreed to in writing, Licensor provides the Work (and each
- * Contributor provides its Contributions) on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied, including, without limitation, any warranties or conditions
- * of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- * PARTICULAR PURPOSE. You are solely responsible for determining the
- * appropriateness of using or redistributing the Work and assume any
- * risks associated with Your exercise of permissions under this License.
- *
- * 8. Limitation of Liability. In no event and under no legal theory,
- * whether in tort (including negligence), contract, or otherwise,
- * unless required by applicable law (such as deliberate and grossly
- * negligent acts) or agreed to in writing, shall any Contributor be
- * liable to You for damages, including any direct, indirect, special,
- * incidental, or consequential damages of any character arising as a
- * result of this License or out of the use or inability to use the
- * Work (including but not limited to damages for loss of goodwill,
- * work stoppage, computer failure or malfunction, or any and all
- * other commercial damages or losses), even if such Contributor
- * has been advised of the possibility of such damages.
- *
- * 9. Accepting Warranty or Additional Liability. While redistributing
- * the Work or Derivative Works thereof, You may choose to offer,
- * and charge a fee for, acceptance of support, warranty, indemnity,
- * or other liability obligations and/or rights consistent with this
- * License. However, in accepting such obligations, You may act only
- * on Your own behalf and on Your sole responsibility, not on behalf
- * of any other Contributor, and only if You agree to indemnify,
- * defend, and hold each Contributor harmless for any liability
- * incurred by, or claims asserted against, such Contributor by reason
- * of your accepting any such warranty or additional liability.
- *
- * END OF TERMS AND CONDITIONS
- *
- * APPENDIX: How to apply the Apache License to your work.
- *
- * To apply the Apache License to your work, attach the following
- * boilerplate notice, with the fields enclosed by brackets "[]"
- * replaced with your own identifying information. (Don't include
- * the brackets!) The text should be enclosed in the appropriate
- * comment syntax for the file format. We also recommend that a
- * file or class name and description of purpose be included on the
- * same "printed page" as the copyright notice for easier
- * identification within third-party archives.
- *
- * Copyright [yyyy] [name of copyright owner]
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
View
70 tools/apache-ant-1.8.2/docs/ant2/FunctionalRequirements.html
@@ -1,70 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <title>Ant Functional Requirements Document</title>
-</head>
-<body>
-<h2>Ant Functional Requirements</h2>
-<h3>Roles</h3>
-<p><b>User: </b>runs Ant with a complete build specification and/or
-writes Ant build specifications.</p>
-<p><b>Task Developer: </b>writes/modifies Ant tasks.</p>
-<p><b>Extensions Developer: </b>develops extensions like a GUI, IDE plugin,
- (scripting extension?)</p>
-<p><b>Core Developer: </b>works on the Ant core</p>
-<h3>Requirements from the Ant User perspective</h3>
-<p>It should be easy to write a build file for small Java programs. It should
- be possible to write a build file set for large Java systems. Maintenance
- of such a set should be easy (e.g. no duplication of information).</p>
-<p>Every build process contains dependencies (e.g. item A needs B to be available
- before its own build can start). It should be possible to specify these
- dependencies in a declarative way.</p>
-<p>Suppose a working build specification for system A is available. It should
- be possible for system B to declare dependencies to <i>(modules of?)</i> system
- A without touching the build specification of A. Ant should be able to handle
- dependencies between modules which form a DAG.</p>
-<p>It should be possible to modify details of the actual build (e.g. classpath,
- used compiler) without the need to change the build specification. This
- feature is needed when starting Ant (e.g. configuration with command line
- parameters) and for a subproject build driven by the build of a dependent
- project.</p>
-<p>Often similar items have to be built. Therefore it should be possible
- to provide general <i>(template?)</i> build specifications, and to declare for
- a concrete item that it should be built according to such a general specification.</p>
-<p>One result of the build process should be a log which shows what has been done.</p>
-<h3>Requirements from the task developer perspective</h3>
-<p>A task should not need to know the structure of a build specification.
- It would have to provide an interface (not necessarily in the Java language
- sense) for the Ant core to input the necessary configuration attributes
- and to execute the task). There should be a standard functionality to allow
- a task doing log output.</p>
-<p>An interface (again not necessarily in the Java language sense) should
- be provided which allows a task to get <i>(and set?)</i> information about it's
- context in the build process.</p>
-<h3>Requirements from the extensions developer perspective</h3>
-<p>The Ant core should be independent from a specific representation of the
- build specification. It should be possible to create a specification programmatically
- (thereby allowing the introduction of new representations). The core should
- do no in- or output itself. Build errors should always lead to throwing
- an Exception.</p>
-<p>Access to the current state of a build should be available, and its modification
- possible.</p>
-</body>
-</html>
-
View
253 tools/apache-ant-1.8.2/docs/ant2/VFS.txt
@@ -1,253 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-From: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
-Subject: RE: Virtual FileSystem Layer
-Date: Sat, 22 Dec 2001 12:06:37 +1000
-
-Hi,
-
-I've also been doing a bit of work on the VFS. No code yet - instead, I've
-done a survey of the Ant 1 code, to help get a better idea of what we need
-the VFS to actually do.
-
-I've put together a rough list of the sort of features the current tasks
-require from the file system. This list is entirely from the task writer's
-POV. I've ignored the build file writer completely - though, the action
-list is a good summary of the build file writer's concerns. I've tried to
-steer clear of assumptions about what is actually going to provide each
-feature to the tasks, or what the API will look like to the tasks.
-
-The goal for doing up this list, was to help identify the features we want
-to support, and the API that the tasks will use to get at them. This should
-be largely independent of how we decide to represent the file system in the
-build files. In addition, it doesn't matter too much whether the list below
-is complete (I'm sure it isn't), or that the VFS provide every single one of
-the features. Whatever it doesn't provide, can stay up in the tasks, and be
-refactored down later.
-
-The assumption here is that we do actually want to put together a file
-system API. I think it's a good idea to at least put together some
-interfaces, even if the implementation is stolen from somewhere else.
-Without a doubt, the file system is the most widely used "service" in the
-current crop of tasks. The API that we choose has to have a good semantic
-match with what the tasks need to do, so that writing the tasks is easy.
-The API also has to be general enough to deal with stuff we haven't thought
-of yet. On that note, I personally think that JNDI might be a touch too
-general for what we need.
-
-So, the features. Note that many of these will be optional - not every
-feature will be available for every node in the file system. I've used the
-term "node" to mean both directories and files. I'm not suggesting we
-actually call them "nodes" in the API. I've used the term "root node" to
-mean the root of a file system.
-
-* Naming
-
-- Locate a node by absolute name.
-- Get the absolute name for a node.
-- Resolve a name to a node, relative to some base node - like
-FileUtils.resolveFile().
-- Get the relative name of a node, relative to some base node.
-- Determine the base name (with and without the extension), and extension of
-the node.
-- Deal with file systems that are case sensitive, and case insentitive.
-
-* Properties
-
-- Determine what properties are available on the node.
-- Determine if the node exists.
-- Determine the type of node (file vs. directory, could be "has-content" vs
-"has-children").
-- Determine if the node is readable.
-- Determine if the node is writeable.
-- Get/set the permissions on the node. This covers things like chmod &
-chown, making read-only, making executable, etc.
-
-* Content
-
-- Determine if the node can/does have content.
-- Get the size of the node.
-- Get/set the last-modified time of the node.
-- Get/set the mime-type of the node.
-- Get/set the encoding of the node.
-- Get a checksum of the node.
-- Get content as InputStream.
-- Get content as Reader.
-- Set content as an OutputStream.
-- Set content as a Writer.
-- Implicit creation of node and its ancestors when content is written.
-- Compare nodes for equality (last modified timestamp, checksum, bytewise
-compare).
-
-* Hierarchy
-
-- Get the parent node of a node.
-- Get the child nodes of a node.
-- Iterate over (or visit) the descendants of a node.
- - With or without a selector.
- - In various orders - depthwise, etc.
- - Be able to modify the nodes during traversal.
-
-* Modification
-
-- Create a new node of a particular type. Create all missing ancestors.
-- Move, copy, delete a node.
- - All descendants.
- - Optional selector. E.g. ignore empty dirs, ignore default excludes, etc.
- - Optional filter.
-
-* Conversion
-
-- Convert the node to a java.net.URL.
-- Make the node content available as a local file (to hand off to external
-commands).
-- Get the OS specific *filename* for a node.
-- Resolve an OS specific *filename* to a node.
-
-* File System Types
-
-- Local file.
-- HTTP.
-- FTP.
-- Classloader, uses Classloader.getResource().
-- Temporary files.
-- etc ...
-
-- Compound file system. Made up of a bunch of mount points. The VFS
-itself.
-
-- Layered file systems (that sit on top of another file system or node):
- - zip, bzip, jar, tar
- - filtering - token replacement, etc
-
-- Factories for creating and configuring file system root nodes.
-- Ability to easily add new file system implementations.
-
-* Task Container
-
-- A mechanism for a task to get hold of the project's root node.
-
-- A mechanism that allows a task to create its own private root nodes,
-without letting it mess with the project's file system, or the file systems
-of other tasks.
-
-- A mechanism for cleaning up all the node InputStream, OutputStream, Reader
-and Writers opened by a task during its execute() method. Cleaning up files
-is one thing the current tasks don't do very well at all. Something like
-this would take care of anything the task did not explictly close. Would
-include root nodes it created.
-
-* Other things
-
-- Maybe some way to explicitly close a node and release all resources used
-by it.
-
-- Maybe detection of concurrent updates, in the case of parallel tasks.
-
-- Netbeans has an event model in its VFS. Something like this might be
-useful in dependency management.
-
-- nodesets. The replacement for, or generalisation of, FileSet, Path,
-FileList, etc
- - A nodeset that contains the descendents of a node that match a selector
-(like the current FileSet implementation).
- - A nodeset that contains arbitrary nodes.
- - An aggregating nodeset.
- - Custom nodeset implementations.
-
-- Reimplement the Ant 1 Fileset, Path and Filelist as adaptors sitting on
-top of the VFS.
-
-- A classloader that can load classes from a node.
-
-- etc ..
-
-What's missing? What shouldn't be on the list?
-
-
-Adam
-
-> -----Original Message-----
-> From: Magesh Umasankar
-> Sent: Saturday, 22 December 2001 10:44 AM
-> To: ant-dev@jakarta.apache.org
-> Subject: Virtual FileSystem Layer
->
->
-> I have been spending some time now on the VFS
-> layer... Nothing major to report yet, but I just wanted
-> to sound off so that if I am going down the wrong
-> route, I correct it right away.
->
-> I evaluated at WebNFS, NetBeansFS (NBFS) and
-> JNDI.
->
-> 1. WebNFS seems to be going nowhere. It has
-> been dormant for quite sometime now. Licensing
-> is rigid. Technically, it doesn't look so bad as it
-> closely replicates java.io.File's API. But then,
-> that really gives us very little.
->
-> 2. NBFS looks OK. It has got a few filesystems
-> already built. There may be some licensing issues,
-> I don't know, but that shouldn't concern us too
-> much as, according to Peter, it is Mozilla (I haven't
-> really check the license out, sorry). But, as far as I
-> can see, it seems to lack in sophisticated API features
-> like searching based on attributes, etc., which
-> we will definitely be needing for the Selector APIs.
->
-> 3. JNDI, by far, beats the above to, in my
-> evaluation. It is generic enough. We don't have
-> any licensing issues. It has also become part of
-> the core JRE (1.4 onwards). Technically, it fits to a T
-> what we are looking for - virtual file system that
-> provides search controls, access attributes,
-> url mounting, etc. Furthermore, there's been
-> some ground work already done for us at Jakarta/Apache
-> (Catalina). I have written a SPI for a FTPFileSystem
-> - though it is in a real crude stage right now. I believe
-> this is the way to go because Ant's code would be
-> operating at the (Dir)Context level and we can keep
-> adding SPIs as we need them. Furthermore,
-> JNDI has been stable for quite sometime now and
-> we can depend on a widely used API.
->
-> I don't think JNDI is a heavyweight API for our needs.
-> It seems to be the only one, so far, which encompasses
-> at the APIP level, all the new functionalities that we
-> desire to introduce.
->
-> Let me know if my approach, so far, to go the JNDI
-> route seems reasonable.
->
-> Cheers,
-> Magesh
->
->
->
->
-> --
-> To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
-> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
-
-
---
-To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
-For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
-
-
View
492 tools/apache-ant-1.8.2/docs/ant2/actionlist.html
@@ -1,492 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<html>
- <head><title>Ant1.9 Action List</title></head>
- <body bgcolor="#ffffff">
- <center>
- <h1>Ant1.9 Action List</h1>
- <h2>Precursor to Ant2</h2>
- <i>Peter Donald [<a href="mailto:peter at apache.org">peter at apache.org</a>]</i>
- </center>
-
- <div align="center">
- <table width="80%"><tr><td>
- <blockquote>
- <p>
- This document aims to contain a list of actions that people can take
- to produce Ant1.9. Ant1.9 is a refactoring of the Ant1.x line and a jump
- point for Ant2. Some changes will be backported to Ant1.x over time when
- they have proven themselves while other changes may only become available
- via Ant2.0. Ant1.9 is our melting pot where we can experiment and refactor
- without a thought to backwards compatability but only to the "right" way
- of doing things.
- </p>
- </blockquote></td></tr>
- </table>
- </div>
-
- <h2>Introduction</h2>
-
- <blockquote>
- <p>
- This document will list a bunch of actions that will guide us in the evolution
- of Ant1.x and provide a solid basis on which to launch Ant2.0. Feel free to add to
- this list of actions as our vision of Ant2 solidifies. Associated with each action
- is a list of victims who have "volunteered" to have a go at the action and a status.
- The status just tells us where they are at while the victim column will tell us exactly
- who is doing what. It is fine for a group of people to work on a single area.
- </p>
- <br />
- <br />
- <br />
- <div align="center">
- <table cellspacing="2" cellpadding="5" width="80%">
- <tr>
- <td bgcolor="#eeeeee" align="center">Action</td>
- <td bgcolor="#eeeeee" align="center">Victims</td>
- <td bgcolor="#eeeeee" align="center">Status</td>
- </tr>
- <tr>
- <td><a href="#vfs">Create a Virtual Filesystem layer</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#naming">Formalize a naming scheme for task attributes/elements</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#selector">Design and implement s Selector API for Filesets and other Itemsets</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#coloring">Develope the infrastructure for coloring (or "environmental" dependency analysis)</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#structural">Develope the infrastructure for structural dependency analysis</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#exec">Refactor the Exec infrastructure into JavaBeans</a></td>
- <td>Peter Donald</td>
- <td>80%</td>
- </tr>
- <tr>
- <td><a href="#java">Refactor the Java infrastructure into JavaBeans</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#facade">Design and implement a generic solution for creating Task facades</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#packaging">Sketch out a basic way of separating all the tasks into type libraries</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#mapperext">Design and implement an API that allows mapping of file attributes during copy/move/etc tasks</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#filters">Design and implement an API so that Filters could be implemented as FilteredOutputStreams</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#catalog">Design and implement a XML "catalog" so the snippets of XML can be injected based on URI rather than relative location</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#i18n">Look at the feasability of i18n'ing tasks and the runtime</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#doco">Write a document describing the way that tasks should be written in context of Ant2</a></td>
- <td>Peter Donald<br />(peter at apache.org)</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#embeddor">Design an API to embed Ant into other applications</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#info">Design a TypeInfo system similar to BeanInfo to describe Tasks</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- <tr>
- <td><a href="#antdoc">Design Antdoc to generate manual from .java files</a></td>
- <td>None</td>
- <td>Not Started</td>
- </tr>
- </table>
- </div>
- </blockquote>
-
- <h3>Virtual File System</h3>
- <a name="vfs" />
- <blockquote>
- <p>
- There has long been a recognition that it would be nice if ant supported some
- notion of a virtual filesystem layer. This layer would allow you to treat
- resources located and retrieved from different mechanisms in a uniform way.
- For instance it would allow the copy task to copy from a http server, a cvs server,
- a ftp server or the local filesystem using a uniform mechanism. So instead of
- having separate tasks to operate on each different resource type we would use
- just one task that plugged into multiple filesystems.
- </p>
- <p>
- When we are talking about a virtual filesystem or VFS, one of the concerns we must
- address is how to "name" the resource. In most cases a URL or URI style access will
- be sufficient but in other cases we may need to consider other options. So
- "cvs://localhost:/home/cvs/jakarta-avalon/README.txt?version=1.1",
- "ftp://some.server.com/dir/file.zip" and "file://C/WINDOWS/Desktop/MyFile.txt"
- are all examples of referring to different resources.
- </p>
- <p>
- Another concern that must be addressed is capabilities of both the resources and
- the filesystem. For instance it is possible to both read and write to resources
- using the "file" protocol but only possible to write resources using "mailto".
- The act of copying a file to a "mailto" url would actuall post the files as
- resources while copying to a "file" would duplicate the resource somewhere on
- the local filesystem.
- </p>
- <p>
- So we need to determine a list of capabilities. Some examples would be "read",
- "write", "list" (can you list dirs), "type" (can you get mime type),
- "access permissions" (can you tell if resource has permissions),
- "modify permissions" (can you modify permissions) etc. Some of these capabilities
- can be associated with the particular reosurces, while others may need to be
- associated with a whole filesystem/protocol (ie there is no standard mechanism
- to perform "list" on general "http" URLs). Thus a list of all these capabilities
- and mapping to various protocols will need to be established.
- </p>
- <p>
- Next we need to determine if we are going to support the notion of "mounting"
- URLs. For instance if we need to copy files from a FTP server do we allways
- need to specify the full URL - no matter how convoluted it is (ie
- "ftp://fred:secret@some.server.com:28763/home/fred/project2/dir/file.zip")
- or can we mount this on a VFS and access it via that shorter url. ie We could
- mount "ftp://fred:secret@some.server.com:28763/home/fred/" onto "vfs:/home"
- and then just access the resources via "vfs:/home/project2/dir/file.zip".
- This would make dealing with large urls easier and more uniform.
- </p>
- <p>
- So after we have decided what our options are we need to actually go about
- implementing the solution. It may be the case that existing VFS solutions
- could be reused with minor changes and thus we could save ourselves a lot of
- work. Candidates would be the Netbeans VFS, Suns XFile API or other
- available directory APIs (like JNDI). If none of them suit then we will need
- to write our own layer.
- </p>
- </blockquote>
-
- <h3>Naming</h3>
- <a name="naming" />
- <blockquote>
- <p>
- Currently Ant has a mixture of tasks from various stages it's evolution, with different
- authors and each utilizing different naming patterns. Some tasks use names such as
- "src" and "dest" while others use "file" and "tofile". It would be preferrable if
- consistent naming patterns were used. It is recomended that we come up with a "best
- practices" document to document our recomended naming patterns.
- </p>
- <p>
- Before we can come up with such a document we need to identify common patterns through
- out the tasks. Several tasks have the notion of transforming input from a "source"
- to a "destination". So we should have consistent naming schemes for these attributes and
- elements. Analysis of existing tasks will likely bring out other similar patterns. Once
- we have identified and documented these similarities then we can establish conventions.
- </p>
- </blockquote>
-
- <h3>Selector API</h3>
- <a name="selector" />
- <blockquote>
- <p>
- Currently our filesets allow us to select a set of files based on name patterns.
- For instance we could create a set of all the files that end with ".java". However
- there are cases when you wish to select files based on their other attributes, such as
- if they are read only or if they are older than a specified date etc.
- </p>
- <p>
- The selector API is one such mechanism to do this. The selector API will allow you to
- build file sets based on criteria other than name. Some possible criteria would be
- </p>
- <ul>
- <li>Is the file readable?</li>
- <li>Is the file writeable?</li>
- <li>What date was the file modified on?</li>
- <li>What size is the file?</li>
- <li>Does the contents contain the string "magic"?</li>
- </ul>
- <p>
- If we end up supporting a VFS then we could expand the number of selectors
- considerably. A mock representation that has been proposed before is the following.
- Of course this is subject to change as soon as someone wants to tackle this action ;)
- </p>
-<pre>
- &lt;include&gt;
- &lt;selector type="name" value="**/*.java"/&gt;
- &lt;selector type="permission" value="r"/&gt;
-
- &lt;!-- could optionally be directory/or some other system specific features --&gt;
- &lt;selector type="type" value="file"/&gt;
- &lt;selector type="modify-time"
- operation="greater-than"
- value="29th Feb 2003"/&gt;
- &lt;/include&gt;
-</pre>
- </blockquote>
-
- <h3>Coloring API</h3>
- <a name="coloring" />
- <blockquote>
- <p>
- When you execute a task such as "javac" there is two types of dependency information
- that is important to analyze before we determine if we need to recompile a file. Say
- we are compiling <code>Foo.java</code>, it may depend on the <code>Bar.java</code>
- file. We call this "structural" dependency information - the structure of the source file
- determines what other files it depend upon. However there is also "environmental"
- dependency information. For instance if the <code>Foo.java</code> file was compiled with
- <code>debug="true"</code> last run and this time needs to be compiled with
- <code>debug="false"</code> then it is out of date and needs to be recompiled. We call this
- "environmental" dependency information "coloring".
- </p>
- <p>
- So we need to create an infrastructure that allows tasks to manage "coloring". So a task
- should be able to add coloring information for each resource processed. When the task
- comes to process the resource again it will detect if the coloring has changed and if it
- has will force a recompile.
- </p>
- <p>
- An API for such a bean has yet to be established but an example API would be.
- </p>
- <pre>
-ColoringManager cm = ...;
-cm.addColor( "debug", "true" );
-cm.addColor( "optimize", "false" );
-cm.setFileSet( myFileSet );
-File[] files = cm.getOutOfDate();
- </pre>
- </blockquote>
-
- <h3>Structural Dependency Utils</h3>
- <a name="structural" />
- <blockquote>
- <p>
- In the present ant, it is required that each task manage dependency separately.
- This makes it a lot of work to implement even simple dependency checking. To this
- day many of the core tasks do not implement it correctly. I am specifically
- talking about "structural" dependency information. The main reason is that it is
- painful to implement.
- </p>
- <p>
- Some tasks do no dependency checking and will recompile/transform/etc everytime.
- Others may perform a simple dependency checking (ie if source file is newer than
- destination file then recompile). Ideally a dependency system would actually
- calculate the dependencies correctly. So we need to have some mechanism to determine
- that <code>foo.c</code> actually depends upon <code>foo.h</code>, <code>bar.h</code>
- and <code>baz.h</code>. As this information is particular to each different task
- we need to allow tasks to implement this behaviour. Possibly by supplying an interface
- of the form;
- </p>
- <pre>
-public interface DependencyGenerator
-{
- File[] generateDependencies( File file );
-}
- </pre>
- <p>
- Generating the dependency information is a costly operation and thus we do not want to
- be doing it everytime you run ant. We want to generate it on the initial build and then
- persist somewhere. Everytime a file is out of date, it's dependency information would
- be regenerated and stored in the dependency cache. Ideally this cache would also store the
- above mentioned coloring information. So the entry for <code>foo.c</code> may declare that
- it is dependent upon <code>foo.h</code>, <code>bar.h</code> and <code>baz.h</code>, aswell
- as being compiled with -O2 flag. If any of the dependencies have changed or are out of date
- then foo.c would need to be recompiled.
- </p>
- <p>
- A possible API would be
- </p>
- <pre>
-DependencyManager dm = ...;
-dm.setFileSet( myFileSet );
-dm.setDependencyCache( myDependencyCacheFile );
-File[] files = cm.getOutOfDate();
- </pre>
- </blockquote>
-
- <h3>Refactor &lt;exec&gt; infrastructure into Beans</h3>
- <a name="exec" />
- <blockquote>
- <p>
- Exec and its related classes have currently evolved through several iterations and thus
- it is not as cleanly designed and as reusable as it could be. Someone needs to pull apart
- exec and analyze which parts can be turned into JavaBeans and decouple them from the Ant
- infrastructure. Once that is done it will make these beans much easier to reuse from other
- tasks without relying on gaining access to the other task instance.
- </p>
- </blockquote>
-
- <h3>Refactor &lt;java&gt; infrastructure into Beans</h3>
- <a name="java" />
- <blockquote>
- <p>
- Much like Exec should be decoupled from Ant runtime, so should classes to implement java
- task for the same benefits.
- </p>
- </blockquote>
-
- <h3>Generic Task Facades</h3>
- <a name="facade" />
- <blockquote>
- <p>
- Currently we have a few tasks that have multiple implementations. For instance Javac task
- can actually call jikes, jvc, classic javac or modern javac. Similar things will be seen
- with the jspc task and the cc task (if it ever gets written). We need to examine this
- pattern and see if there is a way to generalize this and make it easier to write such tasks.