diff options
author | Steven Knight <knight@baldmt.com> | 2006-02-12 19:56:03 +0000 |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2006-02-12 19:56:03 +0000 |
commit | 19563d915729176a6349021295bef4f4f830b15d (patch) | |
tree | 56208f374c81c91b572cd0fc3cf28223ef80a732 /test/Java/JAR.py | |
parent | f44f025c1e789ca6f73f0709149512c08e2459c3 (diff) | |
download | scons-19563d915729176a6349021295bef4f4f830b15d.tar.gz |
Add support for Visual Studio 2005 Professional. Windows portability fixes for various tests. (Baptiste Lepilleur)
Diffstat (limited to 'test/Java/JAR.py')
-rw-r--r-- | test/Java/JAR.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/Java/JAR.py b/test/Java/JAR.py index f0e3b3ad..1344fb17 100644 --- a/test/Java/JAR.py +++ b/test/Java/JAR.py @@ -25,6 +25,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os +import os.path import string import sys import TestSCons @@ -146,8 +147,8 @@ os.system(string.join(sys.argv[1:], " ")) test.write('SConstruct', """ foo = Environment(tools = ['javac', 'jar'], - JAVAC = '%(where_javac)s', - JAR = '%(where_jar)s') + JAVAC = r'%(where_javac)s', + JAR = r'%(where_jar)s') jar = foo.Dictionary('JAR') bar = foo.Copy(JAR = r'%(python)s wrapper.py ' + jar) foo.Java(target = 'classes', source = 'com/sub/foo') @@ -247,8 +248,10 @@ public class Example6 test.run(arguments = '.') +expected_wrapper_out = "wrapper.py %(where_jar)s cf bar.jar classes/com/sub/bar\n" +expected_wrapper_out = string.replace(expected_wrapper_out, '/', os.sep) test.must_match('wrapper.out', - "wrapper.py %(where_jar)s cf bar.jar classes/com/sub/bar\n" % locals()) + expected_wrapper_out % locals()) test.must_exist('foo.jar') test.must_exist('bar.jar') |