Skip to content

Commit c0e0203

Browse files
fixed local ivy resolver
1 parent 03466db commit c0e0203

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

build.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@
155155

156156
<target name="download-ivy" unless="offline">
157157

158-
<mkdir dir="${ivy.jar.dir}"/>
158+
<mkdir dir="${ivy.jar.dir}" />
159159
<!-- download Ivy from web site so that it can be used even without any special installation -->
160160
<get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"
161-
dest="${ivy.jar.file}" usetimestamp="true"/>
161+
dest="${ivy.jar.file}" usetimestamp="true" />
162162
</target>
163163

164164
<target name="init-ivy" depends="download-ivy">
@@ -167,30 +167,30 @@
167167
We will not fail as long as local lib dir exists (it may be empty) and
168168
ivy is in at least one of ant's lib dir or the local lib dir. -->
169169
<path id="ivy.lib.path">
170-
<fileset dir="${ivy.jar.dir}" includes="*.jar"/>
170+
<fileset dir="${ivy.jar.dir}" includes="*.jar" />
171171

172172
</path>
173173
<taskdef resource="org/apache/ivy/ant/antlib.xml"
174-
uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
174+
uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path" />
175175
</target>
176176

177177
<target name="gen-pom" depends="init-ivy">
178178
<ivy:makepom ivyfile="ivy.xml" pomfile="${ant.project.name}-${heros.version}.pom">
179-
<!--<mapping conf="default" scope="compile"/>-->
179+
<mapping conf="default" scope="compile" />
180180
</ivy:makepom>
181181
</target>
182182

183-
<target name="publish-local" depends="init-ivy, jar, classesjar, sourcejar, javadoc">
183+
<target name="publish-local" depends="init-ivy, gen-pom, jar, classesjar, sourcejar, javadoc">
184184
<ivy:resolve/>
185-
<ivy:publish pubrevision="${heros.version}" status="release" resolver="local" overwrite="true" >
186-
<artifacts pattern="[artifact]-[revision].[ext]"/>
185+
<ivy:publish pubrevision="${heros.version}" status="release" resolver="local" overwrite="true">
186+
<artifacts pattern="[artifact]-[revision].[ext]" />
187187
</ivy:publish>
188188
</target>
189189

190190
<target name="publish-local-maven" depends="init-ivy, gen-pom, jar, classesjar, sourcejar, javadoc" description="publish jar/source to maven repo mounted at ~/.m2/repository">
191191
<ivy:resolve/>
192192
<ivy:publish pubrevision="${heros.version}" resolver="local-m2-publish" forcedeliver="true" overwrite="true" publishivy="false">
193-
<artifacts pattern="[artifact]-[revision].[ext]"/>
193+
<artifacts pattern="[artifact]-[revision].[ext]" />
194194
</ivy:publish>
195195
</target>
196196

ivy.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<info organisation="ca.mcgill.sable" module="heros"/>
33
<configurations>
44
<conf name="default" />
5-
<conf name="sources" />
5+
<conf name="sources" />
66
<conf name="javadoc" />
77
</configurations>
88

ivysettings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ivysettings>
2-
<settings defaultResolver="public"/>
3-
<include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
2+
<settings defaultResolver="local"/>
3+
<include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
44
<resolvers>
55
<ibiblio name="local-m2" m2compatible="true" root="file://${user.home}/.m2/repository" changingPattern=".*SNAPSHOT" />
66
<filesystem name="local-m2-publish" m2compatible="true">

0 commit comments

Comments
 (0)