From b0611b5428e1569837e1a5589a6713e47a37f0a9 Mon Sep 17 00:00:00 2001 From: mkersten Date: Thu, 7 Aug 2003 09:33:29 +0000 Subject: Cleaned up test-generated files. --- ajde/testdata/bug-36071/src/Main.java | 22 ++++++++++++++++ ajde/testdata/bug-36071/src/aspects/Logging.java | 27 -------------------- .../bug-36071/src/test/TestProperties.java | 29 ---------------------- ajde/testdata/bug-36071/src/test/test.props | 1 - 4 files changed, 22 insertions(+), 57 deletions(-) create mode 100644 ajde/testdata/bug-36071/src/Main.java delete mode 100644 ajde/testdata/bug-36071/src/aspects/Logging.java delete mode 100644 ajde/testdata/bug-36071/src/test/TestProperties.java delete mode 100644 ajde/testdata/bug-36071/src/test/test.props (limited to 'ajde/testdata') diff --git a/ajde/testdata/bug-36071/src/Main.java b/ajde/testdata/bug-36071/src/Main.java new file mode 100644 index 000000000..417fc6809 --- /dev/null +++ b/ajde/testdata/bug-36071/src/Main.java @@ -0,0 +1,22 @@ +import java.io.IOException; + +/* + * Created on 30-Jul-03 + * + * To change this generated comment go to + * Window>Preferences>Java>Code Generation>Code and Comments + */ + +/** + * @author websterm + * + * To change this generated comment go to + * Window>Preferences>Java>Code Generation>Code and Comments + */ +public class Main { + + public static void main(String[] args) throws IOException { + String propsName = (args.length > 0)? args[0] : "test.props"; + new test.TestProperties().load(propsName); + } +} diff --git a/ajde/testdata/bug-36071/src/aspects/Logging.java b/ajde/testdata/bug-36071/src/aspects/Logging.java deleted file mode 100644 index 2e8ba485a..000000000 --- a/ajde/testdata/bug-36071/src/aspects/Logging.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Created on 30-Jul-03 - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package aspects; - -/** - * @author websterm - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public aspect Logging { - - pointcut methods () : - execution(* *..*(..)) && !within(Logging); - - before () : methods () { - System.err.println("> " + thisJoinPoint.getSignature().toLongString()); - } - - after () : methods () { - System.err.println("< " + thisJoinPoint.getSignature().toLongString()); - } -} diff --git a/ajde/testdata/bug-36071/src/test/TestProperties.java b/ajde/testdata/bug-36071/src/test/TestProperties.java deleted file mode 100644 index 18139e035..000000000 --- a/ajde/testdata/bug-36071/src/test/TestProperties.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Created on 30-Jul-03 - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package test; - -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -/** - * @author websterm - * - * To change this generated comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class TestProperties { - - public void load (String name) throws IOException { - InputStream in = getClass().getResourceAsStream(name); -// System.out.println("? load() in=" + in); - Properties props = new Properties(); - props.load(in); - in.close(); - props.list(System.out); - } -} diff --git a/ajde/testdata/bug-36071/src/test/test.props b/ajde/testdata/bug-36071/src/test/test.props deleted file mode 100644 index 51e670ac7..000000000 --- a/ajde/testdata/bug-36071/src/test/test.props +++ /dev/null @@ -1 +0,0 @@ -test=test \ No newline at end of file -- cgit v1.2.3