From 7e375918ce8089ce856ca4d3a6e4f0246f4e8653 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Thu, 28 Dec 2006 16:03:45 +0000 Subject: [PATCH] tests for errorProperty and updatedProperty of javac git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@490748 13f79535-47bb-0310-9956-ffa450edef68 --- .../taskdefs/javac-dir/bad-src/Bad.java | 22 ++++++++++ .../taskdefs/javac-dir/good-src/Simple.java | 20 +++++++++ src/tests/antunit/taskdefs/javac-test.xml | 42 +++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 src/tests/antunit/taskdefs/javac-dir/bad-src/Bad.java create mode 100644 src/tests/antunit/taskdefs/javac-dir/good-src/Simple.java create mode 100644 src/tests/antunit/taskdefs/javac-test.xml diff --git a/src/tests/antunit/taskdefs/javac-dir/bad-src/Bad.java b/src/tests/antunit/taskdefs/javac-dir/bad-src/Bad.java new file mode 100644 index 000000000..d38692875 --- /dev/null +++ b/src/tests/antunit/taskdefs/javac-dir/bad-src/Bad.java @@ -0,0 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +/** a simple class with a bug */ +public class Simple { + // should get a not-terminated error + String s = "; +} diff --git a/src/tests/antunit/taskdefs/javac-dir/good-src/Simple.java b/src/tests/antunit/taskdefs/javac-dir/good-src/Simple.java new file mode 100644 index 000000000..84b987263 --- /dev/null +++ b/src/tests/antunit/taskdefs/javac-dir/good-src/Simple.java @@ -0,0 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +/** a simple do nothing class */ +public class Simple { +} diff --git a/src/tests/antunit/taskdefs/javac-test.xml b/src/tests/antunit/taskdefs/javac-test.xml new file mode 100644 index 000000000..17dd88e07 --- /dev/null +++ b/src/tests/antunit/taskdefs/javac-test.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +