Author: toulmean
Date: Sat Aug 28 16:41:48 2010
New Revision: 990389

URL: http://svn.apache.org/viewvc?rev=990389&view=rev
Log:
test case to show how to get to parent

Added:
    buildr/trunk/tests/compile_with_parent/
    buildr/trunk/tests/compile_with_parent/Buildfile
    buildr/trunk/tests/compile_with_parent/child/
    buildr/trunk/tests/compile_with_parent/child/src/
    buildr/trunk/tests/compile_with_parent/child/src/main/
    buildr/trunk/tests/compile_with_parent/child/src/main/java/
    buildr/trunk/tests/compile_with_parent/child/src/main/java/Foo.java
    buildr/trunk/tests/compile_with_parent/lib/   (with props)
Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/tests/integration_testing.rb

Modified: buildr/trunk/CHANGELOG
URL: 
http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=990389&r1=990388&r2=990389&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Sat Aug 28 16:41:48 2010
@@ -1,6 +1,7 @@
 1.4.2 (pending)
 * Added:  BUILDR-415 Ability to exclude tests from command line
 * Added:  BUILDR-495 Document twitter on Buildr's homepage
+* Added:  Integration test to show how to get ahold of parent project
 * Change: BUILDR-473 Update jruby-openssl dependency version or support a 
range of versions
 * Change: BUILDR-478 Upgrade to net-ssh 2.0.23 and net-sftp 2.0.4 (Shane 
Witbeck)
 * Change: BUILDR-475 Support for long names on tar.gz (updated to minitar 
0.5.3)

Added: buildr/trunk/tests/compile_with_parent/Buildfile
URL: 
http://svn.apache.org/viewvc/buildr/trunk/tests/compile_with_parent/Buildfile?rev=990389&view=auto
==============================================================================
--- buildr/trunk/tests/compile_with_parent/Buildfile (added)
+++ buildr/trunk/tests/compile_with_parent/Buildfile Sat Aug 28 16:41:48 2010
@@ -0,0 +1,18 @@
+
+repositories.remote << "http://repo1.maven.org/maven2";
+
+LOG4J = artifact("log4j:log4j:jar:1.2.16")
+unless File.exist? File.join("lib", File.basename(LOG4J.to_s))
+  LOG4J.invoke
+  cp LOG4J.to_s, "lib"
+end
+
+define "parent" do
+  
+  define "child" do
+    
+    compile.with project.parent.path_to(File.join("lib", 
File.basename(LOG4J.to_s)))
+    
+  end
+end
+  
\ No newline at end of file

Added: buildr/trunk/tests/compile_with_parent/child/src/main/java/Foo.java
URL: 
http://svn.apache.org/viewvc/buildr/trunk/tests/compile_with_parent/child/src/main/java/Foo.java?rev=990389&view=auto
==============================================================================
--- buildr/trunk/tests/compile_with_parent/child/src/main/java/Foo.java (added)
+++ buildr/trunk/tests/compile_with_parent/child/src/main/java/Foo.java Sat Aug 
28 16:41:48 2010
@@ -0,0 +1,7 @@
+
+import org.apache.log4j.Logger;
+
+public class Foo {
+       
+       private static final Logger _logger = Logger.getLogger(Foo.class);
+}
\ No newline at end of file

Propchange: buildr/trunk/tests/compile_with_parent/lib/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Aug 28 16:41:48 2010
@@ -0,0 +1 @@
+log4j-1.2.16.jar

Modified: buildr/trunk/tests/integration_testing.rb
URL: 
http://svn.apache.org/viewvc/buildr/trunk/tests/integration_testing.rb?rev=990389&r1=990388&r2=990389&view=diff
==============================================================================
--- buildr/trunk/tests/integration_testing.rb (original)
+++ buildr/trunk/tests/integration_testing.rb Sat Aug 28 16:41:48 2010
@@ -41,4 +41,5 @@ class Buildr320 < Test::Unit::TestCase
 end
 
 test("JavaSystemProperty", "#{BUILDR} test")
-test("helloWorld", "#{BUILDR} package")
\ No newline at end of file
+test("helloWorld", "#{BUILDR} package")
+test("compile_with_parent", "#{BUILDR} compile")
\ No newline at end of file


Reply via email to