equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
3 # |
3 # |
4 # Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved. |
4 # Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. |
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
6 # |
6 # |
7 # This code is free software; you can redistribute it and/or modify it |
7 # This code is free software; you can redistribute it and/or modify it |
8 # under the terms of the GNU General Public License version 2 only, as |
8 # under the terms of the GNU General Public License version 2 only, as |
9 # published by the Free Software Foundation. |
9 # published by the Free Software Foundation. |
38 cat <<EOF > $classname.java.1 |
38 cat <<EOF > $classname.java.1 |
39 public class badscope { |
39 public class badscope { |
40 public static final void main(String args[]) { |
40 public static final void main(String args[]) { |
41 try { |
41 try { |
42 System.out.println("hi!"); // @1 breakpoint |
42 System.out.println("hi!"); // @1 breakpoint |
43 } catch (Exception e) { |
43 } catch (Exception e) { |
44 e.printStackTrace(); |
44 e.printStackTrace(); |
45 } finally { |
45 } finally { |
46 System.out.println("done"); |
46 System.out.println("done"); |
47 } |
47 } |
48 } |
48 } |
49 } |
49 } |
50 EOF |
50 EOF |
51 } |
51 } |
69 TESTSRC=. |
69 TESTSRC=. |
70 fi |
70 fi |
71 |
71 |
72 for ii in . $TESTSRC $TESTSRC/.. ; do |
72 for ii in . $TESTSRC $TESTSRC/.. ; do |
73 if [ -r "$ii/ShellScaffold.sh" ] ; then |
73 if [ -r "$ii/ShellScaffold.sh" ] ; then |
74 . $ii/ShellScaffold.sh |
74 . $ii/ShellScaffold.sh |
75 break |
75 break |
76 fi |
76 fi |
77 done |
77 done |
78 } |
78 } |
79 # You could replace this next line with the contents |
79 # You could replace this next line with the contents |