summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool/jar.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-10-23 18:55:33 (GMT)
committerSteven Knight <knight@baldmt.com>2004-10-23 18:55:33 (GMT)
commit35a89330d1df50811fc6912df0047148b1d98450 (patch)
tree683414a1b9cbe71e95504b794a6439142f58f946 /src/engine/SCons/Tool/jar.py
parent8fc56d4098128552043f581cb50074426a149959 (diff)
downloadSCons-35a89330d1df50811fc6912df0047148b1d98450.zip
SCons-35a89330d1df50811fc6912df0047148b1d98450.tar.gz
SCons-35a89330d1df50811fc6912df0047148b1d98450.tar.bz2
Allow substitution of (Levi Stephen) and other construction variables used by various Tools.
Diffstat (limited to 'src/engine/SCons/Tool/jar.py')
-rw-r--r--src/engine/SCons/Tool/jar.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/SCons/Tool/jar.py b/src/engine/SCons/Tool/jar.py
index 5a74a40..3c5e5f5 100644
--- a/src/engine/SCons/Tool/jar.py
+++ b/src/engine/SCons/Tool/jar.py
@@ -38,17 +38,17 @@ import SCons.Util
def jarSources(target, source, env, for_signature):
"""Only include sources that are not a manifest file."""
- ret = []
+ jarchdir = env.subst('$JARCHDIR')
+ result = []
for src in source:
contents = src.get_contents()
if contents[:16] != "Manifest-Version":
- if env.has_key('JARCHDIR'):
+ if jarchdir:
# If we are changing the dir with -C, then sources should
# be relative to that directory.
- ret.append(src.get_path(src.fs.Dir(env['JARCHDIR'])))
- else:
- ret.append(src)
- return ret
+ src = src.get_path(src.fs.Dir(jarchdir))
+ result.append(src)
+ return result
def jarManifest(target, source, env, for_signature):
"""Look in sources for a manifest file, if any."""