Peter Donald
c758ec76a2
Remove Execute.getExitValue() as it is not needed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270323 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
2bb0b8b340
Moved Commandline.Argument/Marker to top level classes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270322 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
11adb2a02c
Moved ENvironment.Variable to a top level class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270321 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9c6b288123
Made EnvironmentData.getVariables return a Properties object with all the environment variables contained within it.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270320 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1d677212cc
Removed some unused crufty code and moved native ENvironment manipulation code into new class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270319 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d5ed2401cf
Extract then native Environment manipulation code from Execute class and place it into new class. Refactor it to be simpler to extend and use
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270318 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
a109d318d4
Remove unused import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270317 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1812fea497
Reorder imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270316 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1ef7d3b0cb
Cleaned up file a bit and made it package access.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270315 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8fb5ee4f11
restyled
Removed setAntRun() calls from Execute class
Renamed Environment to EnvironmentData
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270314 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
b8a71bf846
load environment data from new Environment class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270313 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4058f2a97f
restyled
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270312 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5595675827
Rename Environment to EnvironmentData to avoid name conflicts with other classes named Environment
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270311 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
372d4cdf17
Removed unused import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270310 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ea65444fd3
Environment -> EnvironmentData
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270309 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
728071cfac
access project instance via accessor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270308 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5657805883
Remove uneeded import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270307 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
cff2df199d
Vector -> ArrayList
access project instance via accessor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270306 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
92248f472b
Restyled.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270305 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f1d9b9f2e7
Due to enhancement of ScriptCommandLauncher PerlCommandLauncher is no longer needed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270304 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c94f064263
Made it possible for the script to consist of multiple parts so that you could possible do something like
perl bin/antRun.pl
python bin/antRun.py
etc
This resulted in removal of file resolving and pushing that back into the Execute task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270303 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
067939388b
Removed uneccesary imports
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270302 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
39db94a5e8
Move getAntHomeDirectory to the Execute class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270301 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6248105498
Removed unecessary import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270300 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
3d04769940
Restyled.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270299 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
cd665638ab
Add a document describing some of the features required by a Virtual Filesystem
Submitted by: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270298 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
bf8e21b63d
Don't assume everybody will use the login and pwd to my db.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270297 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
539077152a
This testcase might be used to test for various problems
that may arise when calling the <sql> task multiple
times. I tried to make it easy to customize the test
to run it on different databases.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270296 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
f73de6a58c
Make the getLoaderMap static since the cache is static.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270295 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
672481d0ae
Introduce naive caching of drivers. It is only based on the driver
name while doing pair driver/classpath would be better.
I tested it with mssql and it is OK with 1000 calls.
Alternatively it speeds up things significantly. (about 10 times faster for me)
PR: 2971
Submitted by: stephen.wong@everypath.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270294 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
b04ea4a4a3
Test of my first commit.
Fixing one more Javadoc HTML error.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270293 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
0954289e72
fixing doc to match code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270292 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5f6832bd82
Move to using Java2 collections API
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270291 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1ea766b31d
Remove execute as inherited from parent
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270290 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
44ab322883
Encapsulated access to project member variable via getters
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270289 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1b5824a6f6
Cleaning
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270288 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
dff89c5ee2
Make FileUtils static access.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270287 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
35fcf0d678
Kill stringUtils.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270286 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d0ef8f372a
Remove dependency on StringUtils.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270285 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
928698c467
Updated to use the new native command launching infrastructure.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270284 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9a1925ff44
Removed old CommandLauncher infrastructure.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270283 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8085ebe912
Converted the old remaining useful script based CommandLaunchers to new setup. There is no need to extend ProxyCommandLauncher as it did not offer any benefit (because the 2 arg version of Runtime.exec was always called)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270282 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
694b6a391c
Converted the old WinNTCommandLauncher to new setup. There is no need to extend ProxyCommandLauncher as it did not offer any benefit (because the 2 arg version of Runtime.exec was always called)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270281 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6b669be21d
Converted the old MacCommandLauncher to new setup. There is no need to extend ProxyCommandLauncher as it did not offer any benefit (because the 2 arg version of Runtime.exec was always called)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270280 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d0225d0b52
Added a utility class to hold util functions for implementing Launchers.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270279 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5fe0c90529
Add a basic implement of CommandLauncher.
This merges the Ant1.x VM launchers into one class. If working on older JVMs (pre jdk1.3) and try to execute outside the current directory then an exception will be thrown.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270278 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6575f65c84
Add an interface for all CommandLaunchers to implement
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270277 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
768bfa2bc6
If addConfiguredXyz and addXyz (or createXyz) have been present in the
same class, under some conditions, both would be called.
This patch ensures that only the last method returned by the
introspection methods for a given nested element will be used, no
matter which comes last.
Submitted by: Adam Murdoch <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270276 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
184328a605
Ugly to hack to get it compiling clean
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270275 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
2599037075
Remove some newlines to make <pre> content more readable.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270274 13f79535-47bb-0310-9956-ffa450edef68
24 years ago