incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1071697 [3/42] - in /incubator/easyant: buildtypes/ buildtypes/trunk/ buildtypes/trunk/build-osgi-bundle-java/ buildtypes/trunk/build-osgi-bundle-java/src/ buildtypes/trunk/build-osgi-bundle-java/src/main/ buildtypes/trunk/build-osgi-bundl...
Date Thu, 17 Feb 2011 17:01:56 GMT
Added: incubator/easyant/core/trunk/LICENSE
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/LICENSE?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/LICENSE (added)
+++ incubator/easyant/core/trunk/LICENSE Thu Feb 17 17:01:07 2011
@@ -0,0 +1,258 @@
+                                 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.
+
+
+------------------------------------------------------------------------------
+License for JCraft JSch package
+------------------------------------------------------------------------------
+Copyright (c) 2002,2003,2004,2005,2006,2007 Atsuhiko Yamanaka, JCraft,Inc. 
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+  1. Redistributions of source code must retain the above copyright notice,
+     this list of conditions and the following disclaimer.
+
+  2. Redistributions in binary form must reproduce the above copyright 
+     notice, this list of conditions and the following disclaimer in 
+     the documentation and/or other materials provided with the distribution.
+
+  3. The names of the authors may not be used to endorse or promote products
+     derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,
+INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ 
+
+------------------------------------------------------------------------------
+License for jQuery
+------------------------------------------------------------------------------
+Copyright (c) 2007 John Resig, http://jquery.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ 
\ No newline at end of file

Added: incubator/easyant/core/trunk/NOTICE
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/NOTICE?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/NOTICE (added)
+++ incubator/easyant/core/trunk/NOTICE Thu Feb 17 17:01:07 2011
@@ -0,0 +1,24 @@
+=========================================================================
+== NOTICE file corresponding to the section 4 d of ==
+== the Apache License, Version 2.0, ==
+== in this case for the EasyAnt distribution. ==
+=========================================================================
+
+This product includes software developed by
+the EasyAnt project members, who are :
+Jean Louis Boudart
+Xavier Hanin
+Siddhartha Purkayastha
+Jérôme Benois
+Jason Trump
+Nicolas Lalevée
+
+The following people contributed to EasyAnt :
+Markus M. May
+Nicolas Gapaillard
+
+This software is based on Apache Ant and Apache Ivy, 
+which are open source software, available under
+the terms of an Apache v2 License
+The original software and related information are available
+at http://ant.apache.org/ and http://ant.apache.org/ivy/.

Added: incubator/easyant/core/trunk/README
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/README?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/README (added)
+++ incubator/easyant/core/trunk/README Thu Feb 17 17:01:07 2011
@@ -0,0 +1,120 @@
+**********************
+* Welcome to easyant * 
+**********************
+
+Easyant is a toolbox focusing on easing project build processes.
+It's based on Apache Ant and Apache Ivy, and allows for maximum flexibily, improved integration in existing build systems and provides conventions and guidelines.
+
+Our goals are :
+
+    * to simplify build process by providing a set of ready to use build scripts (or modules) to ease the implementation of build system.
+    * to provide conventions and guidelines
+    * to leverage your ant knowledge (no need to learn another language)
+    * to remain adaptable :
+          o what about conventions ? : Even if Easyant comes with a lot of conventions, we never lock you in.
+          o what about modules ? : You can easily adapt it to your projects. The architecture of Easyant allows you to easily extends existing modules and to provide your own one.
+          o what if you already have an existing project ? Since Easyant is fully based on top of ant, you can keep your existing project along with the "old school" ant scripts. This should ease the migration to Easyant. 
+
+************************
+* How to run examples  *
+************************
+
+The Easyant source has a few sample projects that demonstrate how Easyant may be used in a project. Check the 'example' directory for all such examples.
+
+    * standard-java-app use build-std-java build type.
+    * webapp-java use build-webapp-java build type and jetty-deploy plugin.
+    * standard-scala-app uses build-std-scala build type
+    * example-multimodule shows a multi-module project.
+    * std-java-with-documentation shows another project using build-std-java build type with documentation samples. 
+
+To run the build of an example, you should first set up in your environment the EASYANT_HOME variable :
+
+    * for windows users : set EASYANT_HOME=path\to\easyant
+    * for unix users : export EASYANT_HOME=path/to/easyant 
+
+Then go to the example directory, and run:
+
+    * for windows users : %EASYANT_HOME%\bin\easyant -p
+    * for unix users : $EASYANT_HOME/bin/easyant -p 
+
+You may also add EASYANT_HOME to your path :
+
+    * for windows users : set PATH=%EASYANT_HOME%\bin;%PATH%
+    * for unix users : export PATH=$EASYANT_HOME/bin:$PATH 
+
+Then you should see all the available targets, which include all build phases inspired by maven 2, and some additional targets contributed by some plugins. 
+Main phases:
+
+ clean                                           delete any artifacts from previous builds
+ compile                                         compile the source code of the project
+ documentation                                   generate documentation
+ generate-local-version                          generate a local version number
+ generate-release-version                        generate a version number for a release
+ generate-resources                              generate resources for inclusion in the package
+ generate-shared-version                         generate a version number for shared publication
+ generate-sources                                generate any source code for inclusion in compilation
+ integration-test                                process and deploy the package if necessary into an environment where integration tests can be run
+ org.apache.easyant.plugins#phases-std.validate  validate the project is correct and all necessary information is available
+ package                                         take the compiled code and package it in its distributable format, such as a JAR.
+ post-integration-test                           perform actions required after integration tests have been executed. This may including cleaning up the environment
+ pre-integration-test                            perform actions required before integration tests are executed. This may involve things such as setting up the required environment
+ prepare-package                                 perform any operations necessary to prepare a package before the actual packaging. This often results in an unpacked, processed version of the package
+ prepare-publish-local                           prepare a publish for a local repository
+ prepare-publish-shared                          prepare a publish for a shared repository (snapshot)
+ prepare-release                                 prepare a release
+ process-classes                                 post-process the generated files from compilation, for example to do bytecode enhancement on Java classes
+ process-documentation-resources                 copy and process the documentation resources into the destination directory
+ process-resources                               copy and process the resources into the destination directory, ready for packaging
+ process-sources                                 process the source code, for example to filter any values
+ provision                                       supply provision required by this project
+ publish-local                                   publish the package into the local repository, for use as a dependency in other projects locally
+ publish-shared                                  done in an integration environment, copies the final package to the remote repository for sharing with other developers and projects
+ release                                         done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects
+ report                                          generate report
+ test                                            run tests using a suitable unit testing framework. These tests should not require the code be packaged or deployed
+ test-compile                                    compile the test source code into the test destination directory
+ test-generate-resources                         create resources for testing
+ test-generate-sources                           generate any test source code for inclusion in compilation
+ test-process-resources                          copy and process the resources into the test destination directory
+ test-process-sources                            process the test source code, for example to filter any values
+ test-provision                                  supply provision required to test this project
+ validate                                        validate the project is correct and all necessary information is available
+ verify                                          run any checks to verify the package is valid and meets quality criteri
+
+Default target: doit
+
+Then run: %EASYANT_HOME%\bin\easyant
+
+The example should be compiled, as well as unit tests, which should then be executed, and a jar should be produced in target/artifacts.
+
+To find more informations check the online documentation (http://www.easyant.org/doc/) or download it through our website.
+
+
+***************
+* Source code *
+***************
+Easyant is released under Apache License 2.0.
+
+Sources can be found here
+SVN Url : http://svn.easyant.org
+
+****************
+* Google group *
+**************** 
+
+A google group is accessible here http://groups.google.com/group/easyant
+
+************************
+* Others Notifications *
+************************
+notifications@easyant.org is a fairly high traffic mailing list for ticket changes. Every time a easyant ticket is modified a new message is posted on this list. You can subscribe to this list here : http://easyant.org/mailman/listinfo/notifications. Archives are available here : http://easyant.org/pipermail/notifications
+
+**************************************
+* IRC Channel (#easyant on freenode) *
+**************************************
+We've registered an IRC channel on the freenode network for informal easyant discussions, asking questions or just hanging out and "socializing".
+
+The channel is #easyant on irc.freenode.net.
+
+Drop by if you are interested in the development of easyant, have a quick question or just want to get to know the people developing and using it. If you're new to IRC, be sure to learn how to get answers. A free web irc client is available here http://www.mibbit.com/ 
+

Propchange: incubator/easyant/core/trunk/README
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/README
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/README
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/bin/antRun
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/bin/antRun?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/bin/antRun (added)
+++ incubator/easyant/core/trunk/bin/antRun Thu Feb 17 17:01:07 2011
@@ -0,0 +1,24 @@
+#! /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.
+
+# Args: DIR command
+cd "$1"
+CMD="$2"
+shift
+shift
+
+exec "$CMD" "$@"

Propchange: incubator/easyant/core/trunk/bin/antRun
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/easyant/core/trunk/bin/antRun.bat
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/bin/antRun.bat?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/bin/antRun.bat (added)
+++ incubator/easyant/core/trunk/bin/antRun.bat Thu Feb 17 17:01:07 2011
@@ -0,0 +1,50 @@
+@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
+

Propchange: incubator/easyant/core/trunk/bin/antRun.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/bin/antRun.bat
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Added: incubator/easyant/core/trunk/bin/antRun.pl
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/bin/antRun.pl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/bin/antRun.pl (added)
+++ incubator/easyant/core/trunk/bin/antRun.pl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,66 @@
+#!/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.
+#
+#######################################################################
+#
+# antRun.pl
+#
+# wrapper script for invoking commands on a platform with Perl installed
+# this is akin to antRun.bat, and antRun the SH script 
+#
+# created:         2001-10-18
+# author:          Jeff Tulley jtulley@novell.com 
+#######################################################################
+#be fussy about variables
+use strict;
+
+#turn warnings on during dev; generates a few spurious uninitialised var access warnings
+#use warnings;
+
+#and set $debug to 1 to turn on trace info (currently unused)
+my $debug=1;
+
+#######################################################################
+# change drive and directory to "%1"
+my $ANT_RUN_CMD = @ARGV[0];
+
+# assign current run command to "%2"
+chdir (@ARGV[0]) || die "Can't cd to $ARGV[0]: $!\n";
+if ($^O eq "NetWare") {
+    # There is a bug in Perl 5 on NetWare, where chdir does not
+    # do anything.  On NetWare, the following path-prefixed form should 
+    # always work. (afaict)
+    $ANT_RUN_CMD .= "/".@ARGV[1];
+}
+else {
+    $ANT_RUN_CMD = @ARGV[1];
+}
+
+# dispose of the first two arguments, leaving only the command's args.
+shift;
+shift;
+
+# run the command
+my $returnValue = system $ANT_RUN_CMD, @ARGV;
+if ($returnValue eq 0) {
+    exit 0;
+}
+else {
+    # only 0 and 1 are widely recognized as exit values
+    # so change the exit value to 1
+    exit 1;
+}

Propchange: incubator/easyant/core/trunk/bin/antRun.pl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/bin/antRun.pl
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/easyant/core/trunk/bin/antRun.pl
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/bin/antRun.pl
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/bin/easyant
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/bin/easyant?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/bin/easyant (added)
+++ incubator/easyant/core/trunk/bin/easyant Thu Feb 17 17:01:07 2011
@@ -0,0 +1,418 @@
+#!/bin/sh 
+#    ***************************************************************
+#    * Copyright 2008-2010 the EasyAnt project
+#    *
+#    * See the NOTICE file distributed with this work for additional information 
+#    * regarding copyright ownership.
+#    * 
+#    * 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.
+#    ****************************************************************
+
+#check EASYANT_HOME initialization
+if [ -z "$EASYANT_HOME" ]; then
+    echo "EASYANT_HOME is set incorrectly or easyant could not be located. Please set EASYANT_HOME."
+    exit 3
+fi
+
+# This part is fully inspirated by ant's script with some easyant customisation
+ant_exec_args=
+no_config=false
+use_jikes_default=false
+ant_exec_debug=false
+show_help=false
+use_custom_ant=false
+for arg in "$@" ; do
+  if [ "$arg" = "--noconfig" ] ; then
+    no_config=true
+  elif [ "$arg" = "--usejikes" ] ; then
+    use_jikes_default=true
+  elif [ "$arg" = "--use-custom-ant" ] ; then
+    use_custom_ant=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 easyant configuration
+  if [ -z "$EASYANT_HOME" -o "$EASYANT_HOME" = "/usr/share/easyant" ]; then
+	 if [ -f "/etc/easyant.conf" ] ; then
+	      . /etc/easyant.conf
+	 fi
+  fi
+	
+  # load user easyant configuration
+  if [ -f "$HOME/.easyant/easyant.conf" ] ; then
+	 . $HOME/.easyant/easyant.conf
+  fi
+  if [ -f "$HOME/.easyantrc" ] ; then
+	 . "$HOME/.easyantrc"
+  fi
+  # 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
+  
+  #Ignore the ant configuration if we use a custom ant (ie. not the one shipped with easyant) 
+  if $use_custom_ant ; then
+	  # load user ant configuration
+	  if [ -f "$HOME/.ant/ant.conf" ] ; then
+	    . $HOME/.ant/ant.conf
+	  fi
+	  if [ -f "$HOME/.antrc" ] ; then
+	    . "$HOME/.antrc"
+	  fi
+  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
+
+
+# By default we use the ant distribution shipped with easyant
+if ! $use_custom_ant ; then
+ 	if [ -d "$ANT_HOME" ] ; then
+ 		echo "WARNING:  ANT_HOME environment variable detected. If you want to use this ant installation, you must start easyant with '-use-custom-ant'." 
+ 	fi
+	ANT_HOME="$EASYANT_HOME"
+	
+else
+	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
+fi
+
+# For Cygwin and Mingw, ensure paths are in UNIX format before
+# anything is touched.  we define a routine called 'normalize_path'
+# that can be used to switch paths to windows format before trying
+# to execute Java commands.
+
+if $cygwin ; then
+
+  [ -n "$ANT_HOME" ] &&
+    ANT_HOME=`cygpath --unix "$ANT_HOME"`
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+
+  # 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 [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then
+    format=mixed
+  else
+    format=windows
+  fi
+
+  normalize_path() {
+    local unix_val
+    if [ -n "$1" ]; then
+      unix_val=`cygpath --path --unix "$1"`
+      echo `cygpath --path --$format "$unix_val"`
+    else
+      echo $1
+    fi
+  }
+
+  CYGHOME=`cygpath --$format "$HOME"`
+else
+  # for other environments, this is just a no-op
+  normalize_path() {
+    echo $1
+  }
+fi
+
+if $mingw ; then
+  [ -n "$ANT_HOME" ] &&
+    ANT_HOME="`(cd "$ANT_HOME"; pwd)`"
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+fi
+
+ANT_LIB="${ANT_HOME}/lib"
+
+if [ -z "$JAVACMD" ] ; then
+
+  # try in JAVA_HOME
+  if [ -n "$JAVA_HOME"  ] ; then
+    # we prefer the JDK version if available, otherwise fall through to the JRE.
+    if [ -x "$JAVA_HOME/bin/java" ] ; then
+      JAVACMD="$JAVA_HOME/bin/java"
+    elif [ -x "$JAVA_HOME/jre/bin/java" ] ; then
+      JAVACMD="$JAVA_HOME/jre/bin/java"
+    elif [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+      # IBM's JDK on AIX uses strange locations for the executables
+      JAVACMD="$JAVA_HOME/jre/sh/java"
+    fi
+  fi
+
+  # if we still haven't found anything, then search the path
+  if [ -z "$JAVACMD" ] ; then
+    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
+
+EASYANT_BOOTSTRAP_PATH="@unix.dist.path@"
+
+# prepend custom ant launcher if requested.
+if $use_custom_ant; then
+  EASYANT_BOOTSTRAP_PATH=${ANT_LIB}/ant-launcher.jar:${EASYANT_BOOTSTRAP_PATH}
+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
+
+  if $use_custom_ant; then
+    LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis):${EASYANT_BOOTSTRAP_PATH}"
+  else
+    LOCALCLASSPATH=${EASYANT_BOOTSTRAP_PATH}
+  fi
+
+  # 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
+
+  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=${EASYANT_BOOTSTRAP_PATH}
+  else
+    LOCALCLASSPATH=${EASYANT_BOOTSTRAP_PATH}:$LOCALCLASSPATH
+  fi
+fi
+
+# Explicitly add javac path to classpath
+if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
+  LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar"
+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
+
+ANT_HOME=$(normalize_path "$ANT_HOME")
+ANT_LIB=$(normalize_path "$ANT_LIB")
+JAVA_HOME=$(normalize_path "$JAVA_HOME")
+LOCALCLASSPATH=$(normalize_path "$LOCALCLASSPATH")
+CLASSPATH=$(normalize_path "$CLASSPATH")
+EASYANT_HOME=$(normalize_path "$EASYANT_HOME")
+
+# 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 '  --use-custom-ant       enable use of your own ant distribution'
+  echo '  --noconfig             suppress sourcing of /etc/easyant.conf,'
+  echo '                         $HOME/.easyant/easyant.conf, and $HOME/.easyantrc.'
+  echo '                         if you use your own ant distribution'
+  echo '                         this parameter will also supress sourcing of '
+  echo '                         /etc/ant.conf, $HOME/.ant/ant.conf, '
+  echo '                         and $HOME/.antrc 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
+
+#set default EASYANT_ARGS
+EASYANT_ARGS="-config-file \"$EASYANT_HOME/easyant-conf.xml\" -Dbasedir=. -main org.apache.easyant.core.EasyAntMain -Deasyant.home=\"$EASYANT_HOME\" $EASYANT_ARGS"
+
+ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS $EASYANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS $EASYANT_ARGS -cp \"$CLASSPATH\""
+if $ant_exec_debug ; then
+    echo $ant_exec_command $ant_exec_args
+fi
+eval $ant_exec_command  "$ant_exec_args" 
+

Propchange: incubator/easyant/core/trunk/bin/easyant
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/easyant/core/trunk/bin/easyant.bat
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/bin/easyant.bat?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/bin/easyant.bat (added)
+++ incubator/easyant/core/trunk/bin/easyant.bat Thu Feb 17 17:01:07 2011
@@ -0,0 +1,267 @@
+@echo off
+
+REM    ***************************************************************
+REM    * Copyright 2008-2010 the EasyAnt project
+REM    *
+REM    * See the NOTICE file distributed with this work for additional information 
+REM    * regarding copyright ownership.
+REM    * 
+REM    * Licensed under the Apache License, Version 2.0 (the "License");
+REM    * you may not use this file except in compliance with the License.
+REM    * 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 environment variable changes local to the batch file
+if "%OS%" == "Windows_NT" setlocal
+
+REM load user ant configuration
+if exist "%USERPROFILE%\.easyant\easyant_pre.bat" call "%USERPROFILE%\.easyant\easyant_pre.bat"
+
+rem By default we use the ant distribution shipped with easyant
+set _USE_CUSTOM_ANT=no
+
+if not exist "%EASYANT_HOME%\bin\easyant.bat" goto noEasyAntHome
+goto run
+
+:noEasyAntHome
+echo EASYANT_HOME is set incorrectly or easyant could not be located. Please set EASYANT_HOME.
+goto end
+
+:run
+rem set the default parameters for easyant
+set EASYANT_ARGS=-Dbasedir=. -main org.apache.easyant.core.EasyAntMain -config-file %EASYANT_HOME%/easyant-conf.xml -Deasyant.home=%EASYANT_HOME% %EASYANT_ARGS%
+
+
+rem This part is fully inspirated by ant's script with some easyant customisation
+
+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
+
+
+
+rem Slurp the command line arguments. This loop allows for an unlimited number
+rem of arguments (up to the command line limit, anyway).
+:setupArgs
+if ""%1""=="""" goto doneStart
+if ""%1""==""--use-custom-ant"" goto usecustomant
+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
+
+:usecustomant
+set _USE_CUSTOM_ANT=yes
+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_CUSTOM_ANT%"=="no" goto useShippedAntDistro
+
+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..
+
+:useShippedAntDistro
+if not "%ANT_HOME%"=="" echo "WARNING:  ANT_HOME environment variable detected. If you want to use this ant installation, you must start easyant with '-use-custom-ant'."
+set ANT_HOME=%EASYANT_HOME%
+goto findAntHome
+
+: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
+
+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%" 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
+
+set EASYANT_BOOTSTRAP_PATH="@windows.dist.path@"
+
+rem add Javac classes to path, so that Ant doesn't have to try too hard to find it.
+if exist "%JAVA_HOME%\lib\tools.jar" set EASYANT_BOOTSTRAP_PATH=%EASYANT_BOOTSTRAP_PATH%;%JAVA_HOME%\lib\tools.jar
+
+rem prepend custom ant launcher if requested.
+if "%_USE_CUSTOM_ANT%" == "yes" set EASYANT_BOOTSTRAP_PATH=%ANT_HOME%\lib\ant-launcher.jar;%EASYANT_BOOTSTRAP_PATH%
+
+:runAnt
+if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath
+:runAntWithClasspath
+"%_JAVACMD%" %ANT_OPTS% %EASYANT_OPTS% -classpath "%EASYANT_BOOTSTRAP_PATH%" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %EASYANT_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% %EASYANT_OPTS% -classpath "%EASYANT_BOOTSTRAP_PATH%" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %EASYANT_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% %EASYANT_OPTS% -classpath "%EASYANT_BOOTSTRAP_PATH%" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %EASYANT_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% %EASYANT_OPTS% -classpath "%EASYANT_BOOTSTRAP_PATH%" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %EASYANT_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
+
+rem Set the return code if we are not in NT.  We can only set
+rem a value of 1, but it's better than nothing.
+if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1
+
+rem Set the ERRORLEVEL if we are running NT.
+if "%OS%"=="Windows_NT" color 00
+
+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
+

Propchange: incubator/easyant/core/trunk/bin/easyant.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/bin/easyant.bat
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/easyant/core/trunk/bin/easyant.bat
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Added: incubator/easyant/core/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/build.xml?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/build.xml (added)
+++ incubator/easyant/core/trunk/build.xml Thu Feb 17 17:01:07 2011
@@ -0,0 +1,77 @@
+<!--
+        Copyright 2008-2010 the EasyAnt project
+
+        See the NOTICE file distributed with this work for additional information
+        regarding copyright ownership.
+
+        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.
+-->
+<project name="boostrap" default="dist" xmlns:ivy="antlib:org.apache.ivy.ant">
+
+    <target name="ivy:init">
+        <path id="ivy.lib.path">
+            <fileset dir="${basedir}/repository/third-party-lib/org.apache.ivy/ivy/" includes="*/*.jar" />
+        </path>
+        <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path" />
+    </target>
+
+    <target name="clean">
+        <delete dir="${basedir}/target/bootstrap" failonerror="false" />
+    </target>
+
+    <target name="compile" depends="ivy:init">
+        <ivy:configure file="${basedir}/repository/third-party-lib/third-party-ivysettings.xml" />
+        <ivy:resolve file="${basedir}/module.ivy" />
+        <ivy:cachepath pathid="default.classpath" conf="default" />
+        <mkdir dir="${basedir}/target/bootstrap/classes" />
+        <javac srcdir="${basedir}/src/main/java" destdir="${basedir}/target/bootstrap/classes" includeantruntime="false">
+            <classpath refid="default.classpath" />
+        </javac>
+        <copy todir="${basedir}/target/bootstrap/classes">
+            <fileset dir="${basedir}/src/main/resources" />
+        </copy>
+        <ivy:info file="${basedir}/module.ivy" />
+        <tstamp>
+            <format property="now" pattern="yyyyMMddHHmmss" />
+        </tstamp>
+        <property name="version" value="${ivy.revision}-build-${now}" />
+        <propertyfile file="${basedir}/target/bootstrap/classes/META-INF/version.properties" comment="Generated by easyant">
+            <entry key="APPLICATION-NAME" value="${ivy.module}" />
+            <entry key="SPEC-VERSION" value="${ivy.revision}" />
+            <entry key="APPLICATION_ORG" value="${ivy.organisation}" />
+            <entry key="VERSION" value="${version}" />
+            <entry key="DATE" type="date" value="now" />
+        </propertyfile>
+    </target>
+
+    <target name="dist" depends="compile">
+    	<property name="bootstrap.fork" value="false"/>
+        <java classname="org.apache.easyant.core.EasyAntMain" failonerror="true" fork="${bootstrap.fork}">
+            <classpath>
+                <path refid="default.classpath" />
+                <pathelement location="${basedir}/target/bootstrap/classes" />
+	<!--
+           Ant will try to find the tools.jar using java.home System property, but sometimes
+           this points to JDK, and sometimes to JRE.
+           See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4200300
+        -->
+		<path path="${java.class.path}"/>
+            </classpath>
+            <sysproperty key="easyant.home" file="${basedir}" />
+            <arg line="-config-file ${basedir}/easyant-conf.xml" />
+            <arg line="-f ${basedir}/module.ivy" />
+            <arg line="dist" />
+        </java>
+    </target>
+
+</project>

Propchange: incubator/easyant/core/trunk/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/build.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/easyant-conf.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/easyant-conf.xml?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/easyant-conf.xml (added)
+++ incubator/easyant/core/trunk/easyant-conf.xml Thu Feb 17 17:01:07 2011
@@ -0,0 +1,8 @@
+<easyant-config>
+	<ivysettings file="${easyant.home}/ivysettings.xml"/>
+	<system-plugins>
+		<plugin mrid="org.apache.easyant.plugins#skeleton;0.2" as="skeleton"/>
+		<plugin mrid="org.apache.easyant.plugins#ivy-repo-management;0.1" as="repo-management"/>
+		
+	</system-plugins>
+</easyant-config>

Propchange: incubator/easyant/core/trunk/easyant-conf.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/easyant-conf.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/easyant-conf.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/example/build-configurations/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/build-configurations/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/build-configurations/module.ivy (added)
+++ incubator/easyant/core/trunk/example/build-configurations/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,51 @@
+<!--
+	Copyright 2008-2010 the EasyAnt project
+	
+	See the NOTICE file distributed with this work for additional information 
+	regarding copyright ownership.
+	
+	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.  
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org"> 
+	<info organisation="org.apache.easyant" module="build-configurations" revision="0.1" status="integration" >
+		<description>
+			this project is an example of a java standard application using build configurations
+		</description>
+		<!--
+			This easyant section is equivalent to having a module.ant like this:
+			
+			<project name="org.apache.easyant#build-configurations"
+				xmlns:ea="antlib:org.apache.easyant">
+				
+				<property name="run.main.classname" value="org.apache.easyant.example.Example" buildConfigurations="custom"/>
+			
+				<ea:import organisation="org.apache.easyant.buildtypes" module="build-std-java" revision="0.2"/>
+				<ea:include organisation="org.apache.easyant.plugins" module="run-java" revision="0.1" as="run" conf="custom"/>
+			</project>				
+		  -->
+		<ea:build organisation="org.apache.easyant.buildtypes" module="build-std-java" revision="0.2">
+			<ea:property name="run.main.classname" value="org.apache.easyant.example.Example" conf="custom"/>
+			<ea:plugin organisation="org.apache.easyant.plugins" module="run-java" revision="0.1" as="run" conf="custom"/>			
+		</ea:build>
+	</info>
+	<configurations>
+		<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf"/>
+		<conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases."/>
+		<conf name="custom" visibility="private" description="blabla" ea:type="profile"/>
+	</configurations>
+	<dependencies>
+		<dependency org="hsqldb" name="hsqldb" rev="1.8.0.7" conf="custom->default"/>
+		<dependency org="junit" name="junit" rev="4.4" conf="test->default" />
+
+	</dependencies>
+</ivy-module>

Propchange: incubator/easyant/core/trunk/example/build-configurations/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/build-configurations/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/example/build-configurations/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/example/build-configurations/src/main/java/org/apache/easyant/example/Example.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/build-configurations/src/main/java/org/apache/easyant/example/Example.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/build-configurations/src/main/java/org/apache/easyant/example/Example.java (added)
+++ incubator/easyant/core/trunk/example/build-configurations/src/main/java/org/apache/easyant/example/Example.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,37 @@
+/* 
+ *  Copyright 2008-2010 the EasyAnt project
+ * 
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership. 
+ * 
+ *  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.
+ */
+package org.apache.easyant.example;
+
+import java.io.IOException;
+import java.util.Properties;
+
+public class Example {
+	public static void main(String[] args) throws IOException {
+		System.out.println(new Example().sayHello("EasyAnt"));
+	}
+
+	/* 
+	 * @param who Who says hello
+	 */
+	public String sayHello(String who) throws IOException {
+		Properties props = new Properties();
+		props.load(Example.class.getResourceAsStream("/main.properties"));
+		return props.getProperty("example") + " " + who + "!";
+	}
+}

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/main/java/org/apache/easyant/example/Example.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/main/java/org/apache/easyant/example/Example.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/main/java/org/apache/easyant/example/Example.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/example/build-configurations/src/main/resources/main.properties
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/build-configurations/src/main/resources/main.properties?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/build-configurations/src/main/resources/main.properties (added)
+++ incubator/easyant/core/trunk/example/build-configurations/src/main/resources/main.properties Thu Feb 17 17:01:07 2011
@@ -0,0 +1,19 @@
+#	 ***************************************************************
+#	 * Copyright 2008-2010 the EasyAnt project
+#	 *
+#	 * See the NOTICE file distributed with this work for additional information 
+#	 * regarding copyright ownership.
+#    * 
+#    * 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.
+#	 ***************************************************************
+example=Hello

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/main/resources/main.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/main/resources/main.properties
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Added: incubator/easyant/core/trunk/example/build-configurations/src/test/java/org/apache/easyant/example/ExampleTest.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/build-configurations/src/test/java/org/apache/easyant/example/ExampleTest.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/build-configurations/src/test/java/org/apache/easyant/example/ExampleTest.java (added)
+++ incubator/easyant/core/trunk/example/build-configurations/src/test/java/org/apache/easyant/example/ExampleTest.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,34 @@
+/* 
+ *  Copyright 2008-2010 the EasyAnt project
+ * 
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership. 
+ * 
+ *  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.
+ */
+package org.apache.easyant.example;
+
+import java.util.Properties;
+
+import junit.framework.TestCase;
+
+public class ExampleTest extends TestCase {
+	public void testExample() throws Exception {
+		assertEquals("Hello EasyAnt!", new Example().sayHello("EasyAnt"));
+	}
+	public void testTestResources() throws Exception {
+		Properties props = new Properties();
+		props.load(Example.class.getResourceAsStream("/test.properties"));
+		assertEquals("Hello Test", props.getProperty("test.example"));
+	}
+}

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/test/java/org/apache/easyant/example/ExampleTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/test/java/org/apache/easyant/example/ExampleTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/test/java/org/apache/easyant/example/ExampleTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/example/build-configurations/src/test/resources/test.properties
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/build-configurations/src/test/resources/test.properties?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/build-configurations/src/test/resources/test.properties (added)
+++ incubator/easyant/core/trunk/example/build-configurations/src/test/resources/test.properties Thu Feb 17 17:01:07 2011
@@ -0,0 +1,19 @@
+#	 ***************************************************************
+#	 * Copyright 2008-2010 the EasyAnt project
+#	 *
+#	 * See the NOTICE file distributed with this work for additional information 
+#	 * regarding copyright ownership.
+#    * 
+#    * 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.
+#	 ***************************************************************
+test.example=Hello Test

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/test/resources/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/build-configurations/src/test/resources/test.properties
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Added: incubator/easyant/core/trunk/example/example-multimodule/example-core/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/example-multimodule/example-core/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/example-multimodule/example-core/module.ivy (added)
+++ incubator/easyant/core/trunk/example/example-multimodule/example-core/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,33 @@
+<!--
+	Copyright 2008-2010 the EasyAnt project
+	
+	See the NOTICE file distributed with this work for additional information 
+	regarding copyright ownership.
+	
+	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.  
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org"> 
+	<info organisation="org.apache.easyant" module="example-core" revision="0.2" status="integration" >
+		<!-- inherit from parent -->
+		<extends organisation="org.apache.easyant" module="example-parent" revision="latest.revision" />
+		<!--
+			This easyant section is equivalent to having a module.ant like this:
+				
+			<project name="org.apache.easyant#standard-java-app"
+				xmlns:ea="antlib:org.apache.easyant">
+				<ea:import organisation="org.apache.easyant.buildtypes" module="build-std-java" revision="0.2"/>
+			</project>				
+		  -->
+		<ea:build module="build-std-java" revision="0.2"/>
+	</info>
+</ivy-module>

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-core/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-core/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-core/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCore.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCore.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCore.java (added)
+++ incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCore.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,25 @@
+/* 
+ *  Copyright 2008-2010 the EasyAnt project
+ * 
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership. 
+ * 
+ *  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.
+ */
+
+
+package org.apache.easyant.example.core;
+
+public interface ExampleCore {
+	String getMessage();
+}

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCore.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCore.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCore.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCoreImpl.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCoreImpl.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCoreImpl.java (added)
+++ incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCoreImpl.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,48 @@
+/* 
+ *  Copyright 2008-2010 the EasyAnt project
+ * 
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership. 
+ * 
+ *  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.
+ */
+
+
+/* 
+ *  Copyright 2008-2010 the EasyAnt project
+ * 
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership. 
+ * 
+ *  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.
+ */
+package org.apache.easyant.example.core;
+
+import java.io.IOException;
+import java.util.Properties;
+
+public class ExampleCoreImpl implements ExampleCore {
+	public String getMessage() {
+		return "Hello World !";
+	}
+}

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCoreImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCoreImpl.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-core/src/main/java/org/apache/easyant/example/core/ExampleCoreImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/module.ivy (added)
+++ incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,44 @@
+<!--
+	Copyright 2008-2010 the EasyAnt project
+	
+	See the NOTICE file distributed with this work for additional information 
+	regarding copyright ownership.
+	
+	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.  
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org"> 
+	<info organisation="org.apache.easyant" module="example-hello-world" revision="0.2" status="integration" >
+		<!--
+			This easyant section is equivalent to having a module.ant like this:
+			
+			<project name="org.apache.easyant#example-hello-world"
+				xmlns:ea="antlib:org.apache.easyant">
+				
+				<property name="run.main.classname" value="org.apache.easyant.example.Example"/>
+			
+				<ea:import organisation="org.apache.easyant.buildtypes" module="build-std-java" revision="0.2"/>
+			</project>				
+		  -->
+		<ea:build module="build-std-java" revision="0.2">
+			<ea:property name="run.main.classname" value="org.apache.easyant.example.Example"/>
+	    </ea:build>
+
+	</info>
+	<configurations>
+		<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf"/>
+		<conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases."/>
+	</configurations>
+	<dependencies>
+		<dependency org="org.apache.easyant" name="example-core" rev="latest.revision" conf="default->default"/>
+	</dependencies>
+</ivy-module>

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/module.ivy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/module.ivy
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/module.ivy
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/src/main/java/org/apache/easyant/example/Example.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/src/main/java/org/apache/easyant/example/Example.java?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/src/main/java/org/apache/easyant/example/Example.java (added)
+++ incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/src/main/java/org/apache/easyant/example/Example.java Thu Feb 17 17:01:07 2011
@@ -0,0 +1,35 @@
+/* 
+ *  Copyright 2008-2010 the EasyAnt project
+ * 
+ *  See the NOTICE file distributed with this work for additional information
+ *  regarding copyright ownership. 
+ * 
+ *  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.
+ */
+package org.apache.easyant.example;
+
+import java.io.IOException;
+import java.util.Properties;
+import org.apache.easyant.example.core.ExampleCore;
+import org.apache.easyant.example.core.ExampleCoreImpl;
+
+public class Example {
+	public static void main(String[] args) throws IOException {
+		System.out.println(new Example().getMessage());
+	}
+
+	public String getMessage() throws IOException {
+		ExampleCore exampleCore = new ExampleCoreImpl();
+		return exampleCore.getMessage();
+	}
+}

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/src/main/java/org/apache/easyant/example/Example.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/src/main/java/org/apache/easyant/example/Example.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/easyant/core/trunk/example/example-multimodule/example-hello-world/src/main/java/org/apache/easyant/example/Example.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message