forked from apache/buildr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test case to show how to get to parent
git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@990389 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Antoine Toulme
committed
Aug 28, 2010
1 parent
00ba748
commit 1493631
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
import org.apache.log4j.Logger; | ||
|
||
public class Foo { | ||
|
||
private static final Logger _logger = Logger.getLogger(Foo.class); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters