diff --git a/maven-core-integration-tests/src/test/resources/it0063/pom.xml b/maven-core-integration-tests/src/test/resources/it0063/pom.xml new file mode 100644 index 0000000000..5c25f30ae9 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0063/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + org.apache.maven.it + maven-core-it0063 + Test the use of a system scoped dependency to tools.jar. + jar + 1.0 + + + junit + junit + 3.8.1 + test + + + + + + default-tools.jar + + + java.vendor + Sun Microsystems Inc. + + + + + com.sun + tools + 1.4.2 + system + ${java.home}/../lib/tools.jar + + + + + diff --git a/maven-core-integration-tests/src/test/resources/it0063/src/main/java/org/apache/maven/it0001/Person.java b/maven-core-integration-tests/src/test/resources/it0063/src/main/java/org/apache/maven/it0001/Person.java new file mode 100644 index 0000000000..211e8589b8 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0063/src/main/java/org/apache/maven/it0001/Person.java @@ -0,0 +1,18 @@ +package org.apache.maven.it0001; + +import com.sun.tools.javac.Main; + +public class Person +{ + private String name; + + public void setName( String name ) + { + this.name = name; + } + + public String getName() + { + return name; + } +} diff --git a/maven-core-integration-tests/src/test/resources/it0063/src/main/resources/it0001.properties b/maven-core-integration-tests/src/test/resources/it0063/src/main/resources/it0001.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0063/src/main/resources/it0001.properties @@ -0,0 +1 @@ +name = jason diff --git a/maven-core-integration-tests/src/test/resources/it0063/src/test/java/org/apache/maven/it0001/PersonTest.java b/maven-core-integration-tests/src/test/resources/it0063/src/test/java/org/apache/maven/it0001/PersonTest.java new file mode 100644 index 0000000000..80014fa03b --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0063/src/test/java/org/apache/maven/it0001/PersonTest.java @@ -0,0 +1,16 @@ +package org.apache.maven.it0001; + +import junit.framework.TestCase; + +public class PersonTest + extends TestCase +{ + public void testPerson() + { + Person person = new Person(); + + person.setName( "foo" ); + + assertEquals( "foo", person.getName() ); + } +}