Skip to content

Instantly share code, notes, and snippets.

@rsutphin
Created May 26, 2010 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsutphin/415130 to your computer and use it in GitHub Desktop.
Save rsutphin/415130 to your computer and use it in GitHub Desktop.
Demonstrates ivy4r issues #6 and #4
gems:
- ivy4r
ivy:
settings.file: ivysettings.xml
require 'buildr/ivy_extension'
define 'sample' do
puts "sample ivy module: #{ivy.info['ivy.module']}"
define 'child' do
puts "child ivy module: #{ivy.info['ivy.module']}"
end
end
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="some-org" module="child"/>
</ivy-module>
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="some-org" module="sample"/>
</ivy-module>
<ivysettings>
</ivysettings>
# Output from `buildr help:tasks | head -n7 > out.txt 2>&1`
(in /private/tmp/ivy4r-issue, development)
:: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy_info] :: loading settings :: file = /private/tmp/ivy4r-issue/ivysettings.xml
sample ivy module: sample
:: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy_info] :: loading settings :: file = /private/tmp/ivy4r-issue/ivysettings.xml
child ivy module: sample
@rsutphin
Copy link
Author

Note that the gist UI doesn't show the paths, but if you clone this you'll get the right project structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment