Skip to content

Commit

Permalink
added automatic download of dependencies with ivy by calling ant ivy
Browse files Browse the repository at this point in the history
  • Loading branch information
HK committed Dec 19, 2014
1 parent a674fe2 commit e69e757
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<target name="javadoc">
<javadoc sourcepath="src/java"
destdir="build/javadoc"
classpathref="compile-classpath"
packagenames="de.*"
Windowtitle="htmlJgen"
Header="version ${version}">
Expand All @@ -49,4 +50,10 @@
<delete dir="build"/>
</target>

<target name="ivy" xmlns:ivy="antlib:org.apache.ivy.ant">
<ivy:configure settingsId="ivyconf" file="./ivysettings.xml"/>
<ivy:resolve />
<ivy:retrieve pattern="libs/build/[artifact]-[revision].[ext]" />
</target>

</project>
12 changes: 12 additions & 0 deletions ivy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module
version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:e="http://ant.apache.org/ivy/extra"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">

<info organisation="x" module="htmlJgen" revision="1.0.0"/>
<dependencies>
<dependency org="tomcat" name="servlet-api" rev="5.+"/>
</dependencies>
</ivy-module>
8 changes: 8 additions & 0 deletions ivysettings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<ivysettings>
<settings defaultResolver="chain"/>
<resolvers>
<chain name="chain">
<ibiblio name="maven2" m2compatible="true"/>
</chain>
</resolvers>
</ivysettings>

0 comments on commit e69e757

Please sign in to comment.