|
155 | 155 |
|
156 | 156 | <target name="download-ivy" unless="offline">
|
157 | 157 |
|
158 |
| - <mkdir dir="${ivy.jar.dir}"/> |
| 158 | + <mkdir dir="${ivy.jar.dir}" /> |
159 | 159 | <!-- download Ivy from web site so that it can be used even without any special installation -->
|
160 | 160 | <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" /> |
162 | 162 | </target>
|
163 | 163 |
|
164 | 164 | <target name="init-ivy" depends="download-ivy">
|
|
167 | 167 | We will not fail as long as local lib dir exists (it may be empty) and
|
168 | 168 | ivy is in at least one of ant's lib dir or the local lib dir. -->
|
169 | 169 | <path id="ivy.lib.path">
|
170 |
| - <fileset dir="${ivy.jar.dir}" includes="*.jar"/> |
| 170 | + <fileset dir="${ivy.jar.dir}" includes="*.jar" /> |
171 | 171 |
|
172 | 172 | </path>
|
173 | 173 | <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" /> |
175 | 175 | </target>
|
176 | 176 |
|
177 | 177 | <target name="gen-pom" depends="init-ivy">
|
178 | 178 | <ivy:makepom ivyfile="ivy.xml" pomfile="${ant.project.name}-${heros.version}.pom">
|
179 |
| - <!--<mapping conf="default" scope="compile"/>--> |
| 179 | + <mapping conf="default" scope="compile" /> |
180 | 180 | </ivy:makepom>
|
181 | 181 | </target>
|
182 | 182 |
|
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"> |
184 | 184 | <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]" /> |
187 | 187 | </ivy:publish>
|
188 | 188 | </target>
|
189 | 189 |
|
190 | 190 | <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">
|
191 | 191 | <ivy:resolve/>
|
192 | 192 | <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]" /> |
194 | 194 | </ivy:publish>
|
195 | 195 | </target>
|
196 | 196 |
|
|
0 commit comments