diff --git a/maven-core-it/it0002/.cvsignore b/maven-core-it/it0002/.cvsignore new file mode 100644 index 0000000000..39c914ada7 --- /dev/null +++ b/maven-core-it/it0002/.cvsignore @@ -0,0 +1,9 @@ +*~ +*.log +target +*.ipr +*.iws +dist +target +.classpath +.project diff --git a/maven-core-it/it0002/expected-results.txt b/maven-core-it/it0002/expected-results.txt new file mode 100644 index 0000000000..11591932b5 --- /dev/null +++ b/maven-core-it/it0002/expected-results.txt @@ -0,0 +1,5 @@ +target/classes/org/apache/maven/it0001/Person.class +target/test-classes/org/apache/maven/it0001/PersonTest.class +target/maven-core-it0001-1.0.jar +target/maven-core-it0001-1.0.jar!/it0001.properties +${maven.repo.local}/maven/jars/maven-it-support-1.0.jar diff --git a/maven-core-it/it0002/pom.xml b/maven-core-it/it0002/pom.xml new file mode 100644 index 0000000000..32bd1fa03c --- /dev/null +++ b/maven-core-it/it0002/pom.xml @@ -0,0 +1,18 @@ + + maven + maven-core-it0001 + 1.0 + + + junit + junit + 3.8.1 + test + + + maven + maven-it-support + 1.0 + + + diff --git a/maven-core-it/it0002/prebuild.hook b/maven-core-it/it0002/prebuild.hook new file mode 100755 index 0000000000..4d6984d4d9 --- /dev/null +++ b/maven-core-it/it0002/prebuild.hook @@ -0,0 +1,7 @@ +#!/bin/sh + +repoLocal=`cat $HOME/build.properties | grep "maven.repo.local" | sed 's/^.*= *//'` + +echo "Removing maven-it-support-1.0.jar from the local repository so we can verify its downloading ..." + +rm -f $repoLocal/maven/jars/maven-it-support-1.0.jar > /dev/null 2>&1 diff --git a/maven-core-it/it0002/src/main/java/org/apache/maven/it0001/Person.java b/maven-core-it/it0002/src/main/java/org/apache/maven/it0001/Person.java new file mode 100644 index 0000000000..613e499ae0 --- /dev/null +++ b/maven-core-it/it0002/src/main/java/org/apache/maven/it0001/Person.java @@ -0,0 +1,16 @@ +package org.apache.maven.it0001; + +public class Person +{ + private String name; + + public void setName( String name ) + { + this.name = name; + } + + public String getName() + { + return name; + } +} diff --git a/maven-core-it/it0002/src/main/resources/it0001.properties b/maven-core-it/it0002/src/main/resources/it0001.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-it/it0002/src/main/resources/it0001.properties @@ -0,0 +1 @@ +name = jason diff --git a/maven-core-it/it0002/src/test/java/org/apache/maven/it0001/PersonTest.java b/maven-core-it/it0002/src/test/java/org/apache/maven/it0001/PersonTest.java new file mode 100644 index 0000000000..80014fa03b --- /dev/null +++ b/maven-core-it/it0002/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() ); + } +}